From 93f3acd128d6b349efe14e97b12c2703ca4f81f3 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Thu, 26 Apr 2012 01:36:20 +0200 Subject: Moved the core framework to GConf & D-Bus --- sowatchd/daemon.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'sowatchd/daemon.h') 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 -#include #include -#include #include @@ -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 _servers; + ConfigKey* _settings; + QMap _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); }; } -- cgit v1.2.3