KStatusBarJobTracker
#include <KStatusBarJobTracker>
Public Types | |
enum | StatusBarMode { NoInformation = 0x0000 , LabelOnly = 0x0001 , ProgressOnly = 0x0002 } |
typedef QFlags< StatusBarMode > | StatusBarModes |
Public Slots | |
virtual void | description (KJob *job, const QString &title, const QPair< QString, QString > &field1, const QPair< QString, QString > &field2) override |
void | percent (KJob *job, unsigned long percent) override |
void | slotClean (KJob *job) override |
void | speed (KJob *job, unsigned long value) override |
void | totalAmount (KJob *job, KJob::Unit unit, qulonglong amount) override |
Public Slots inherited from KAbstractWidgetJobTracker | |
void | registerJob (KJob *job) override |
void | unregisterJob (KJob *job) override |
Public Slots inherited from KJobTrackerInterface |
Detailed Description
This class implements a job tracker with a widget suited for embedding in a status bar.
Definition at line 22 of file kstatusbarjobtracker.h.
Member Typedef Documentation
◆ StatusBarModes
Stores a combination of StatusBarMode values.
Definition at line 39 of file kstatusbarjobtracker.h.
Member Enumeration Documentation
◆ StatusBarMode
- See also
- StatusBarModes
Enumerator | |
---|---|
NoInformation | Does not show any information. |
LabelOnly | Shows an informative label for job progress. |
ProgressOnly | Shows a progress bar with the job completion. |
Definition at line 30 of file kstatusbarjobtracker.h.
Constructor & Destructor Documentation
◆ KStatusBarJobTracker()
|
explicit |
Creates a new KStatusBarJobTracker.
- Parameters
-
parent the parent of this object and of the widget displaying the job progresses button true to display a stop button allowing to kill the job, false otherwise
Definition at line 23 of file kstatusbarjobtracker.cpp.
◆ ~KStatusBarJobTracker()
|
overridedefault |
Destroys a KStatusBarJobTracker.
Member Function Documentation
◆ description
|
overridevirtualslot |
The following slots are inherited from KJobTrackerInterface.
Definition at line 89 of file kstatusbarjobtracker.cpp.
◆ percent
Definition at line 111 of file kstatusbarjobtracker.cpp.
◆ registerJob()
Register a new job in this tracker.
- Parameters
-
job the job to register
Reimplemented from KJobTrackerInterface.
Definition at line 30 of file kstatusbarjobtracker.cpp.
◆ setStatusBarMode()
void KStatusBarJobTracker::setStatusBarMode | ( | StatusBarModes | statusBarMode | ) |
Sets the mode of the status bar.
- Parameters
-
statusBarMode what information the status bar will show (see StatusBarMode). LabelOnly by default
Definition at line 78 of file kstatusbarjobtracker.cpp.
◆ slotClean
Definition at line 133 of file kstatusbarjobtracker.cpp.
◆ speed
Definition at line 122 of file kstatusbarjobtracker.cpp.
◆ totalAmount
|
overrideslot |
Definition at line 100 of file kstatusbarjobtracker.cpp.
◆ unregisterJob()
Unregister a job from this tracker.
- Parameters
-
job the job to unregister
Reimplemented from KJobTrackerInterface.
Definition at line 46 of file kstatusbarjobtracker.cpp.
◆ widget()
The widget associated to this tracker.
- Returns
- the widget displaying the job progresses
Implements KAbstractWidgetJobTracker.
Definition at line 67 of file kstatusbarjobtracker.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:43:47 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.