summaryrefslogtreecommitdiff
path: root/sowatchd/daemon.h
diff options
context:
space:
mode:
Diffstat (limited to 'sowatchd/daemon.h')
-rw-r--r--sowatchd/daemon.h30
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