Applets
dbusjobprotocol.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 DBUSJOBPROTOCOL_H
00021 #define DBUSJOBPROTOCOL_H
00022
00023 #include "../../core/protocol.h"
00024
00025 #include <plasma/dataengine.h>
00026
00027
00028 namespace SystemTray
00029 {
00030
00031 class DBusJob;
00032
00033 class DBusJobProtocol : public Protocol
00034 {
00035 Q_OBJECT
00036
00037 public:
00038 DBusJobProtocol(QObject *parent);
00039 ~DBusJobProtocol();
00040 void init();
00041
00042 private slots:
00043 void prepareJob(const QString &source);
00044 void dataUpdated(const QString &source, const Plasma::DataEngine::Data &data);
00045 void removeJob(const QString &source);
00046
00047 void suspend(const QString &source);
00048 void resume(const QString &source);
00049 void stop(const QString &source);
00050
00051 private:
00052 Plasma::DataEngine *m_engine;
00053 QHash<QString, DBusJob*> m_jobs;
00054 };
00055
00056 }
00057
00058
00059 #endif