--- /dev/null
+#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