KDEUI
KWidgetJobTracker Class Reference
This class implements a job tracker with a widget suited for use as a progress dialog. More...
#include <kwidgetjobtracker.h>

Public Slots | |
virtual void | registerJob (KJob *job) |
virtual void | unregisterJob (KJob *job) |
Public Member Functions | |
bool | keepOpen (KJob *job) const |
KWidgetJobTracker (QWidget *parent=0) | |
virtual QWidget * | widget (KJob *job) |
virtual | ~KWidgetJobTracker () |
Protected Slots | |
virtual void | description (KJob *job, const QString &title, const QPair< QString, QString > &field1, const QPair< QString, QString > &field2) |
virtual void | infoMessage (KJob *job, const QString &plain, const QString &rich) |
virtual void | percent (KJob *job, unsigned long percent) |
virtual void | processedAmount (KJob *job, KJob::Unit unit, qulonglong amount) |
virtual void | resumed (KJob *job) |
virtual void | slotClean (KJob *job) |
virtual void | speed (KJob *job, unsigned long value) |
virtual void | suspended (KJob *job) |
virtual void | totalAmount (KJob *job, KJob::Unit unit, qulonglong amount) |
Detailed Description
This class implements a job tracker with a widget suited for use as a progress dialog.
Definition at line 31 of file kwidgetjobtracker.h.
Constructor & Destructor Documentation
KWidgetJobTracker::KWidgetJobTracker | ( | QWidget * | parent = 0 |
) |
Creates a new KWidgetJobTracker.
- Parameters:
-
parent the parent of this object and of the widget displaying the job progresses
Definition at line 64 of file kwidgetjobtracker.cpp.
KWidgetJobTracker::~KWidgetJobTracker | ( | ) | [virtual] |
Destroys a KWidgetJobTracker.
Definition at line 69 of file kwidgetjobtracker.cpp.
Member Function Documentation
void KWidgetJobTracker::description | ( | KJob * | job, | |
const QString & | title, | |||
const QPair< QString, QString > & | field1, | |||
const QPair< QString, QString > & | field2 | |||
) | [protected, virtual, slot] |
Reimplemented from KJobTrackerInterface.
Definition at line 125 of file kwidgetjobtracker.cpp.
void KWidgetJobTracker::infoMessage | ( | KJob * | job, | |
const QString & | plain, | |||
const QString & | rich | |||
) | [protected, virtual, slot] |
The following slots are inherited from KJobTrackerInterface.
Reimplemented from KJobTrackerInterface.
Definition at line 115 of file kwidgetjobtracker.cpp.
Definition at line 105 of file kwidgetjobtracker.cpp.
void KWidgetJobTracker::percent | ( | KJob * | job, | |
unsigned long | percent | |||
) | [protected, virtual, slot] |
Reimplemented from KJobTrackerInterface.
Definition at line 157 of file kwidgetjobtracker.cpp.
void KWidgetJobTracker::processedAmount | ( | KJob * | job, | |
KJob::Unit | unit, | |||
qulonglong | amount | |||
) | [protected, virtual, slot] |
Reimplemented from KJobTrackerInterface.
Definition at line 147 of file kwidgetjobtracker.cpp.
void KWidgetJobTracker::registerJob | ( | KJob * | job | ) | [virtual, slot] |
Register a new job in this tracker.
- Parameters:
-
job the job to register
Reimplemented from KAbstractWidgetJobTracker.
Definition at line 79 of file kwidgetjobtracker.cpp.
void KWidgetJobTracker::resumed | ( | KJob * | job | ) | [protected, virtual, slot] |
Reimplemented from KJobTrackerInterface.
Definition at line 197 of file kwidgetjobtracker.cpp.
void KWidgetJobTracker::slotClean | ( | KJob * | job | ) | [protected, virtual, slot] |
This method is called when the widget should be cleaned (after job is finished).
redefine this for custom behavior.
- Parameters:
-
job The job that is being cleaned
Reimplemented from KAbstractWidgetJobTracker.
Definition at line 177 of file kwidgetjobtracker.cpp.
void KWidgetJobTracker::speed | ( | KJob * | job, | |
unsigned long | value | |||
) | [protected, virtual, slot] |
Reimplemented from KJobTrackerInterface.
Definition at line 167 of file kwidgetjobtracker.cpp.
void KWidgetJobTracker::suspended | ( | KJob * | job | ) | [protected, virtual, slot] |
Reimplemented from KJobTrackerInterface.
Definition at line 187 of file kwidgetjobtracker.cpp.
void KWidgetJobTracker::totalAmount | ( | KJob * | job, | |
KJob::Unit | unit, | |||
qulonglong | amount | |||
) | [protected, virtual, slot] |
Reimplemented from KJobTrackerInterface.
Definition at line 137 of file kwidgetjobtracker.cpp.
void KWidgetJobTracker::unregisterJob | ( | KJob * | job | ) | [virtual, slot] |
Unregister a job from this tracker.
- Parameters:
-
job the job to unregister
Reimplemented from KAbstractWidgetJobTracker.
Definition at line 92 of file kwidgetjobtracker.cpp.
The widget associated to this tracker.
- Parameters:
-
job the job that is assigned the widget we want to get
- Returns:
- the widget displaying the job progresses
Implements KAbstractWidgetJobTracker.
Definition at line 74 of file kwidgetjobtracker.cpp.
The documentation for this class was generated from the following files: