KJobWidgets 5.109.0
|
This class implements a job tracker with a widget suited for embedding in a status bar. More...
#include <KStatusBarJobTracker>
Public Types | |
enum | StatusBarMode { NoInformation = 0x0000 , LabelOnly = 0x0001 , ProgressOnly = 0x0002 } |
typedef QFlags< StatusBarMode > | StatusBarModes |
Stores a combination of #StatusBarMode values. | |
Public Slots | |
virtual void | description (KJob *job, const QString &title, const QPair< QString, QString > &field1, const QPair< QString, QString > &field2) override |
The following slots are inherited from KJobTrackerInterface. | |
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 |
![]() | |
void | registerJob (KJob *job) override |
Register a new job in this tracker. | |
void | unregisterJob (KJob *job) override |
Unregister a job from this tracker. | |
Public Member Functions | |
KStatusBarJobTracker (QWidget *parent=nullptr, bool button=true) | |
Creates a new KStatusBarJobTracker. | |
~KStatusBarJobTracker () override | |
Destroys a KStatusBarJobTracker. | |
void | registerJob (KJob *job) override |
Register a new job in this tracker. | |
void | setStatusBarMode (StatusBarModes statusBarMode) |
Sets the mode of the status bar. | |
void | unregisterJob (KJob *job) override |
Unregister a job from this tracker. | |
QWidget * | widget (KJob *job) override |
The widget associated to this tracker. | |
![]() | |
KAbstractWidgetJobTracker (QWidget *parent=nullptr) | |
Creates a new KAbstractWidgetJobTracker. | |
~KAbstractWidgetJobTracker () override | |
Destroys a KAbstractWidgetJobTracker. | |
bool | autoDelete (KJob *job) const |
Checks whether the dialog should be deleted or cleaned. | |
void | setAutoDelete (KJob *job, bool autoDelete) |
This controls whether the dialog should be deleted or only cleaned when the KJob is finished (or canceled). | |
void | setStopOnClose (KJob *job, bool stopOnClose) |
This controls whether the job should be canceled if the dialog is closed. | |
bool | stopOnClose (KJob *job) const |
Checks whether the job will be killed when the dialog is closed. | |
virtual QWidget * | widget (KJob *job)=0 |
The widget associated to this tracker. | |
Additional Inherited Members | |
![]() | |
void | resume (KJob *job) |
Emitted when the user resumed the operation. | |
void | stopped (KJob *job) |
Emitted when the user aborted the operation. | |
void | suspend (KJob *job) |
Emitted when the user suspended the operation. | |
![]() | |
void | finished (KJob *job) override |
Called when a job is finished, in any case. | |
virtual void | slotClean (KJob *job) |
This method is called when the widget should be cleaned (after job is finished). | |
virtual void | slotResume (KJob *job) |
This method should be called for pause/resume Connect this to the progress widgets buttons etc. | |
virtual void | slotStop (KJob *job) |
This method should be called for correct cancellation of IO operation Connect this to the progress widgets buttons etc. | |
virtual void | slotSuspend (KJob *job) |
This method should be called for pause/resume Connect this to the progress widgets buttons etc. | |
![]() | |
__attribute__ ((visibility("hidden"))) explicit KAbstractWidgetJobTracker(KAbstractWidgetJobTrackerPrivate &dd | |
![]() | |
std::unique_ptr< KAbstractWidgetJobTrackerPrivate > const | d |
QWidget * | parent = nullptr) |
This class implements a job tracker with a widget suited for embedding in a status bar.
typedef QFlags< StatusBarMode > KStatusBarJobTracker::StatusBarModes |
Stores a combination of #StatusBarMode values.
|
explicit |
Creates a new KStatusBarJobTracker.
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 |
|
override |
Destroys a KStatusBarJobTracker.
|
overridevirtualslot |
The following slots are inherited from KJobTrackerInterface.
|
override |
Register a new job in this tracker.
job | the job to register |
void KStatusBarJobTracker::setStatusBarMode | ( | StatusBarModes | statusBarMode | ) |
Sets the mode of the status bar.
statusBarMode | what information the status bar will show (see StatusBarMode). LabelOnly by default |
|
override |
Unregister a job from this tracker.
job | the job to unregister |
|
overridevirtual |
The widget associated to this tracker.
Implements KAbstractWidgetJobTracker.