KJobWidgets 5.109.0
|
This class implements a job tracker with a widget suited for use as a progress dialog. More...
#include <KWidgetJobTracker>
Public Slots | |
void | registerJob (KJob *job) override |
Register a new job in this tracker. | |
void | unregisterJob (KJob *job) override |
Unregister a job from this tracker. | |
![]() | |
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 | |
KWidgetJobTracker (QWidget *parent=nullptr) | |
Creates a new KWidgetJobTracker. | |
~KWidgetJobTracker () override | |
Destroys a KWidgetJobTracker. | |
bool | keepOpen (KJob *job) const |
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. | |
Protected Slots | |
virtual void | description (KJob *job, const QString &title, const QPair< QString, QString > &field1, const QPair< QString, QString > &field2) override |
void | infoMessage (KJob *job, const QString &plain, const QString &rich) override |
The following slots are inherited from KJobTrackerInterface. | |
void | percent (KJob *job, unsigned long percent) override |
void | processedAmount (KJob *job, KJob::Unit unit, qulonglong amount) override |
void | resumed (KJob *job) override |
void | slotClean (KJob *job) override |
void | speed (KJob *job, unsigned long value) override |
void | suspended (KJob *job) override |
void | totalAmount (KJob *job, KJob::Unit unit, qulonglong amount) override |
![]() | |
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. | |
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. | |
![]() | |
__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 use as a progress dialog.
|
explicit |
Creates a new KWidgetJobTracker.
parent | the parent of this object and of the widget displaying the job progresses |
|
override |
Destroys a KWidgetJobTracker.
|
overrideprotectedslot |
The following slots are inherited from KJobTrackerInterface.
|
overrideslot |
Register a new job in this tracker.
job | the job to register |
|
overrideslot |
Unregister a job from this tracker.
job | the job to unregister |
|
overridevirtual |
The widget associated to this tracker.
job | the job that is assigned the widget we want to get |
Implements KAbstractWidgetJobTracker.