• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kio
 

kio/kio

  • KIO
  • StatusbarProgress
Public Slots | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
KIO::StatusbarProgress Class Reference

#include <statusbarprogress.h>

Inheritance diagram for KIO::StatusbarProgress:
KIO::ProgressBase

List of all members.

Public Slots

virtual void slotClean ()
virtual void slotTotalSize (KIO::Job *job, KIO::filesize_t size)
virtual void slotPercent (KIO::Job *job, unsigned long percent)
virtual void slotSpeed (KIO::Job *job, unsigned long speed)

Public Member Functions

 StatusbarProgress (TQWidget *parent, bool button=true)
void setJob (KIO::Job *job)

Protected Types

enum  Mode { None, Label, Progress }

Protected Member Functions

void setMode ()
virtual bool eventFilter (TQObject *, TQEvent *)
virtual void virtual_hook (int id, void *data)

Protected Attributes

KProgress * m_pProgressBar
TQLabel * m_pLabel
TQPushButton * m_pButton
KIO::filesize_t m_iTotalSize
uint mode
bool m_bShowButton
TQBoxLayout * box
TQWidgetStack * stack

Detailed Description

This is a special IO progress widget.

Similarly to DefaultProgress, it's purpose is to show a progress of the IO operation.

Instead of creating a separate window, this is only a widget that can be easily embedded in a statusbar.

Usage of StatusbarProgress is little different. This dialog will be a part of some application.

 // create a dialog
 StatusbarProgress *statusProgress;
 statusProgress = new StatusbarProgress( statusBar() );
 statusBar()->insertWidget( statusProgress, statusProgress->width() , 0 );
 ...
 // create job and connect it to the progress
 CopyJob* job = KIO::copy(...);
 statusProgress->setJob( job );
 ...

IO progress widget for embedding in a statusbar.

Author:
Matej Koss <koss@miesto.sk>

Definition at line 60 of file statusbarprogress.h.


Constructor & Destructor Documentation

KIO::StatusbarProgress::StatusbarProgress ( TQWidget *  parent,
bool  button = true 
)

Creates a new StatusbarProgress.

Parameters:
parentthe parent of this widget
buttontrue to add an abort button. The button will be connected to ProgressBase::slotStop()

Definition at line 35 of file statusbarprogress.cpp.


Member Function Documentation

void KIO::StatusbarProgress::setJob ( KIO::Job *  job)

Sets the job to monitor.

Parameters:
jobthe job to monitor

Reimplemented from KIO::ProgressBase.

Definition at line 74 of file statusbarprogress.cpp.

void KIO::StatusbarProgress::slotClean ( ) [virtual, slot]

This method is called when the widget should be cleaned (after job is finished).

redefine this for custom behavior.

Reimplemented from KIO::ProgressBase.

Definition at line 111 of file statusbarprogress.cpp.

void KIO::StatusbarProgress::slotPercent ( KIO::Job *  job,
unsigned long  percent 
) [virtual, slot]

Called to set the percentage.

Parameters:
jobthe KIO::Job
percentthe percentage

Reimplemented from KIO::ProgressBase.

Definition at line 125 of file statusbarprogress.cpp.

void KIO::StatusbarProgress::slotSpeed ( KIO::Job *  job,
unsigned long  speed 
) [virtual, slot]

Called to set the speed.

Parameters:
jobthe KIO::Job
speedthe speed in bytes/second

Reimplemented from KIO::ProgressBase.

Definition at line 130 of file statusbarprogress.cpp.

void KIO::StatusbarProgress::slotTotalSize ( KIO::Job *  job,
KIO::filesize_t  size 
) [virtual, slot]

Called to set the total size.

Parameters:
jobthe KIO::Job
sizethe total size in bytes

Reimplemented from KIO::ProgressBase.

Definition at line 121 of file statusbarprogress.cpp.


The documentation for this class was generated from the following files:
  • statusbarprogress.h
  • statusbarprogress.cpp

kio/kio

Skip menu "kio/kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kio/kio

Skip menu "kio/kio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kio by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |