X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=appeventlistener.hpp;fp=appeventlistener.hpp;h=9b5e76ef214366f9883ea748fdbd4063aeaa992d;hb=dfed50eedc532f1136575c876c46a7eb104a37e5;hp=0000000000000000000000000000000000000000;hpb=811ce53d2a7d3d73625c8eceb3b57e7a84d2d87c;p=quick-widgets diff --git a/appeventlistener.hpp b/appeventlistener.hpp new file mode 100644 index 0000000..9b5e76e --- /dev/null +++ b/appeventlistener.hpp @@ -0,0 +1,24 @@ +#ifndef APPEVENTLISTENER_HPP +#define APPEVENTLISTENER_HPP + +#include + +#define APP_MESSAGE_ADDWIDGET "Add widget" +#define APP_MESSAGE_CLOSE "Close" + +class AppEventListener : public QObject +{ + Q_OBJECT + +private: + explicit AppEventListener(QObject *parent = 0); + +public: + static AppEventListener *instance(); + +public slots: + void receiveMessage(const QString& message); + +}; + +#endif // APPEVENTLISTENER_HPP