Plasma
appsengine.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 <Plasma/DataEngine>
00024 #include <Plasma/Service>
00025
00026 #include <KService>
00027 #include <KServiceGroup>
00028
00044 class AppsEngine : public Plasma::DataEngine
00045 {
00046
00047 Q_OBJECT
00048
00049 public:
00050 AppsEngine(QObject *parent, const QVariantList &args);
00051 ~AppsEngine();
00052 Plasma::Service *serviceForSource(const QString &name);
00053
00054 protected:
00055 virtual void init();
00056
00057 private slots:
00058
00059 private:
00060 friend class AppSource;
00061 void addGroup(KServiceGroup::Ptr group);
00062 void addApp(KService::Ptr app);
00063 };
00064
00065 #endif // TASKSENGINE_H