summaryrefslogtreecommitdiff
path: root/gui/handlers.h
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-06-04 11:39:41 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-06-12 20:02:45 +0200
commit9b88f3ce47d090df167263ce2b4b6b430694da72 (patch)
tree3435b273857cc6bd26009767fa701673358d57cb /gui/handlers.h
parent719413cad922e1d34f2ea495bae0165cae53b22f (diff)
[feat] add qt gui
Signed-off-by: kali kaneko (leap communications) <kali@leap.se>
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