summaryrefslogtreecommitdiff
path: root/sowatchd/daemon.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-04-26 01:36:20 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-04-26 01:36:20 +0200
commit93f3acd128d6b349efe14e97b12c2703ca4f81f3 (patch)
tree937f3de2307444f0c28d6d21f26f1580e789b074 /sowatchd/daemon.h
parent1375a26b135547fdd8e07db62acf8116a8482560 (diff)
downloadsowatch-93f3acd128d6b349efe14e97b12c2703ca4f81f3.tar.gz
sowatch-93f3acd128d6b349efe14e97b12c2703ca4f81f3.zip
Moved the core framework to GConf & D-Bus
Diffstat (limited to 'sowatchd/daemon.h')
-rw-r--r--sowatchd/daemon.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/sowatchd/daemon.h b/sowatchd/daemon.h
index 249f525..ba62585 100644
--- a/sowatchd/daemon.h
+++ b/sowatchd/daemon.h
@@ -2,9 +2,7 @@
#define WATCHDAEMON_H
#include <QtCore/QObject>
-#include <QtCore/QList>
#include <QtCore/QMap>
-#include <QtCore/QSettings>
#include <sowatch.h>
@@ -17,12 +15,21 @@ class Daemon : public QObject
public:
explicit Daemon(QObject *parent = 0);
-protected:
+ Q_INVOKABLE QString getWatchStatus(const QString& name);
+
+public slots:
+ void terminate();
+
+private:
Registry* _registry;
- QList<WatchServer*> _servers;
+ ConfigKey* _settings;
+ QMap<QString, WatchServer*> _servers;
+
+ void startWatch(const QString& name);
+ void stopWatch(const QString& name);
- void initWatches();
- void initWatch(Watch* watch, QSettings& settings);
+private slots:
+ void settingsChanged(const QString& subkey);
};
}