Initial upload
[quick-widgets] / appeventlistener.hpp
diff --git a/appeventlistener.hpp b/appeventlistener.hpp
new file mode 100644 (file)
index 0000000..9b5e76e
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef APPEVENTLISTENER_HPP\r
+#define APPEVENTLISTENER_HPP\r
+\r
+#include <QObject>\r
+\r
+#define APP_MESSAGE_ADDWIDGET "Add widget"\r
+#define APP_MESSAGE_CLOSE "Close"\r
+\r
+class AppEventListener : public QObject\r
+{\r
+    Q_OBJECT\r
+\r
+private:\r
+    explicit AppEventListener(QObject *parent = 0);\r
+\r
+public:\r
+    static AppEventListener *instance();\r
+\r
+public slots:\r
+    void receiveMessage(const QString& message);\r
+\r
+};\r
+\r
+#endif // APPEVENTLISTENER_HPP\r