Engines
tasksengine.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 #ifndef TASKSENGINE_H
00020 #define TASKSENGINE_H
00021
00022
00023 #include <QObject>
00024 #include <QString>
00025 #include <QList>
00026
00027
00028 #include <plasma/dataengine.h>
00029 #include <taskmanager/taskmanager.h>
00030
00031 using TaskManager::StartupPtr;
00032 using TaskManager::TaskPtr;
00033
00037 class TasksEngine : public Plasma::DataEngine
00038 {
00039 Q_OBJECT
00040
00041 public:
00042 TasksEngine( QObject* parent, const QVariantList& args);
00043
00044 protected:
00045 virtual void init();
00046
00047 private slots:
00048 void taskChanged();
00049 void taskAdded(TaskPtr task);
00050 void taskRemoved(TaskPtr task);
00051
00052 private:
00053 void connectTask(TaskPtr task);
00054 void setDataForTask(TaskPtr task);
00055 };
00056
00057 K_EXPORT_PLASMA_DATAENGINE(tasks, TasksEngine)
00058
00059 #endif