Added qml plugin exposing QProcess functionality.
[quick-widgets] / appeventlistener.hpp
1 #ifndef APPEVENTLISTENER_HPP\r
2 #define APPEVENTLISTENER_HPP\r
3 \r
4 #include <QObject>\r
5 \r
6 #define APP_MESSAGE_ADDWIDGET "Add widget"\r
7 #define APP_MESSAGE_CLOSE "Close"\r
8 \r
9 class AppEventListener : public QObject\r
10 {\r
11     Q_OBJECT\r
12 \r
13 private:\r
14     explicit AppEventListener(QObject *parent = 0);\r
15 \r
16 public:\r
17     static AppEventListener *instance();\r
18 \r
19 public slots:\r
20     void receiveMessage(const QString& message);\r
21 \r
22 };\r
23 \r
24 #endif // APPEVENTLISTENER_HPP\r