KDECore
kjobtrackerinterface.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KJOBTRACKERINTERFACE_H
00021 #define KJOBTRACKERINTERFACE_H
00022
00023 #include <kdecore_export.h>
00024 #include <kjob.h>
00025
00026 #include <QtCore/QObject>
00027 #include <QtCore/QPair>
00028
00032 class KDECORE_EXPORT KJobTrackerInterface : public QObject
00033 {
00034 Q_OBJECT
00035
00036 public:
00042 KJobTrackerInterface(QObject *parent=0);
00043
00047 virtual ~KJobTrackerInterface();
00048
00049 public Q_SLOTS:
00055 virtual void registerJob(KJob *job);
00056
00062 virtual void unregisterJob(KJob *job);
00063
00064 protected Q_SLOTS:
00071 virtual void finished(KJob *job);
00072
00078 virtual void suspended(KJob *job);
00079
00085 virtual void resumed(KJob *job);
00086
00100 virtual void description(KJob *job, const QString &title,
00101 const QPair<QString, QString> &field1,
00102 const QPair<QString, QString> &field2);
00103
00112 virtual void infoMessage(KJob *job, const QString &plain, const QString &rich);
00113
00121 virtual void warning(KJob *job, const QString &plain, const QString &rich);
00122
00132 virtual void totalAmount(KJob *job, KJob::Unit unit, qulonglong amount);
00133
00143 virtual void processedAmount(KJob *job, KJob::Unit unit, qulonglong amount);
00144
00152 virtual void percent(KJob *job, unsigned long percent);
00153
00160 virtual void speed(KJob *job, unsigned long value);
00161
00162 private:
00163 class Private;
00164 Private *const d;
00165 };
00166
00167 #endif