summaryrefslogtreecommitdiff
path: root/gui/handlers.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/handlers.h')
-rw-r--r--gui/handlers.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/gui/handlers.h b/gui/handlers.h
new file mode 100644
index 0000000..0a8782d
--- /dev/null
+++ b/gui/handlers.h
@@ -0,0 +1,39 @@
+#ifndef HANDLERS_H
+#define HANDLERS_H
+
+#include <QDebug>
+#include <QObject>
+#include "qjsonmodel.h"
+
+class QJsonWatch : public QObject {
+
+ Q_OBJECT
+
+ QJsonModel *model;
+
+public:
+
+signals:
+
+ void jsonChanged(QString json);
+
+};
+
+class Backend : public QObject {
+
+ Q_OBJECT
+
+public:
+ explicit Backend(QObject *parent = 0);
+
+signals:
+ void quitDone();
+
+public slots:
+ void switchOn();
+ void switchOff();
+ void unblock();
+ void quit();
+};
+
+#endif // HANDLERS_H