KUiServerJobTracker Class

The interface to implement to track the progresses of a job. Use KUiServerV2JobTracker. More...

Header: #include <KUiServerJobTracker>
CMake: find_package(KF6 REQUIRED COMPONENTS JobWidgets)
target_link_libraries(mytarget PRIVATE KF6::JobWidgets)
Inherits: KJobTrackerInterface
Status: Deprecated since 6.17

This class is deprecated since 6.17. We strongly advise against using it in new code.

Public Functions

KUiServerJobTracker(QObject *parent = nullptr)

Reimplemented Public Functions

virtual void registerJob(KJob *job) override
virtual void unregisterJob(KJob *job) override

Protected Slots

virtual void description(KJob *job, const QString &title, const QPair<QString, QString> &field1, const QPair<QString, QString> &field2) override
virtual void finished(KJob *job) override
virtual void infoMessage(KJob *job, const QString &message) override
virtual void percent(KJob *job, unsigned long percent) override
virtual void processedAmount(KJob *job, KJob::Unit unit, qulonglong amount) override
virtual void resumed(KJob *job) override
virtual void speed(KJob *job, unsigned long value) override
virtual void suspended(KJob *job) override
virtual void totalAmount(KJob *job, KJob::Unit unit, qulonglong amount) override

Detailed Description

Member Function Documentation

[explicit] KUiServerJobTracker::KUiServerJobTracker(QObject *parent = nullptr)

Creates a new KJobTrackerInterface

parent the parent object

[override virtual protected slot] void KUiServerJobTracker::description(KJob *job, const QString &title, const QPair<QString, QString> &field1, const QPair<QString, QString> &field2)

[override virtual protected slot] void KUiServerJobTracker::finished(KJob *job)

[override virtual protected slot] void KUiServerJobTracker::infoMessage(KJob *job, const QString &message)

[override virtual protected slot] void KUiServerJobTracker::percent(KJob *job, unsigned long percent)

[override virtual protected slot] void KUiServerJobTracker::processedAmount(KJob *job, KJob::Unit unit, qulonglong amount)

[override virtual] void KUiServerJobTracker::registerJob(KJob *job)

Reimplements: KJobTrackerInterface::registerJob(KJob *job).

Register a new job in this tracker.

job the job to register

[override virtual protected slot] void KUiServerJobTracker::resumed(KJob *job)

[override virtual protected slot] void KUiServerJobTracker::speed(KJob *job, unsigned long value)

[override virtual protected slot] void KUiServerJobTracker::suspended(KJob *job)

[override virtual protected slot] void KUiServerJobTracker::totalAmount(KJob *job, KJob::Unit unit, qulonglong amount)

[override virtual] void KUiServerJobTracker::unregisterJob(KJob *job)

Reimplements: KJobTrackerInterface::unregisterJob(KJob *job).

Unregister a job from this tracker.

job the job to unregister