diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-18 04:26:20 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-09-18 04:26:20 +0200 |
commit | c42d5abff1f5f51facc169dd593725d819c4c868 (patch) | |
tree | 9aa8bdef88bf89561c7726948541a1ba3906b81e /sowatchd/daemon.h | |
parent | f225345d4de3b198a557fe3566f9630163e76d51 (diff) | |
download | sowatch-c42d5abff1f5f51facc169dd593725d819c4c868.tar.gz sowatch-c42d5abff1f5f51facc169dd593725d819c4c868.zip |
separation into lib and plugins complete
Diffstat (limited to 'sowatchd/daemon.h')
-rw-r--r-- | sowatchd/daemon.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sowatchd/daemon.h b/sowatchd/daemon.h new file mode 100644 index 0000000..9346a41 --- /dev/null +++ b/sowatchd/daemon.h @@ -0,0 +1,30 @@ +#ifndef WATCHDAEMON_H +#define WATCHDAEMON_H + +#include <QtCore/QObject> +#include <QtCore/QList> +#include <QtCore/QMap> + +#include <sowatch.h> + +namespace sowatch +{ + +class Daemon : public QObject +{ + Q_OBJECT +public: + explicit Daemon(QObject *parent = 0); + +protected: + QMap<QString, WatchPluginInterface*> _drivers; + QList<Watch*> _watches; + + void loadDrivers(); + void loadWatches(); + void loadWatchlets(); +}; + +} + +#endif // WATCHDAEMON_H |