22 #ifndef DOWNLOADTRACKER_H 23 #define DOWNLOADTRACKER_H 25 #include <interface/downloadtrackeradaptor.h> 28 #include <QDBusObjectPath> 30 class DownloadTracker :
public QObject
33 Q_DISABLE_COPY(DownloadTracker)
34 Q_PROPERTY(QString service READ service WRITE setService NOTIFY serviceChanged)
35 Q_PROPERTY(QString dbusPath READ dbusPath WRITE setDbusPath NOTIFY dbusPathChanged)
36 Q_PROPERTY(
bool serviceReady READ isServiceReady NOTIFY serviceReadyChanged)
39 explicit DownloadTracker(QObject *parent = 0);
41 QString service() const;
42 QString dbusPath() const;
43 bool isServiceReady() const;
45 void setDbusPath(const QString& path);
46 void setService(const QString& service);
49 void serviceChanged(const QString &service);
50 void dbusPathChanged(const QString &dbusPath);
51 void serviceReadyChanged(const
bool serviceReady);
53 void canceled(
bool success);
54 void error(const QString &error);
55 void finished(const QString &path);
56 void paused(
bool success);
57 void processing(const QString &path);
58 void progress(qulonglong received, qulonglong total);
59 void resumed(
bool success);
60 void started(
bool success);
65 DownloadTrackerAdaptor* m_adaptor;
70 #endif // DOWNLOADTRACKER_H