agl-compositor: Conversion to agl-compositor
[apps/homescreen.git] / homescreen / src / homescreenhandler.h
index c18d7a0..3d939ce 100644 (file)
 #define HOMESCREENHANDLER_H
 
 #include <QObject>
+
 #include <libhomescreen.hpp>
+
+#include "shell.h"
 #include <string>
 
 using namespace std;
@@ -27,12 +30,12 @@ class HomescreenHandler : public QObject
 {
     Q_OBJECT
 public:
-    explicit HomescreenHandler(QObject *parent = 0);
+    explicit HomescreenHandler(Shell *aglShell, QObject *parent = 0);
     ~HomescreenHandler();
 
     void init(int port, const char* token);
 
-    Q_INVOKABLE void tapShortcut(QString application_name);
+    Q_INVOKABLE void tapShortcut(QString application_id);
 
     void onRep(struct json_object* reply_contents);
     void onEv(const string& event, struct json_object* event_contents);
@@ -40,8 +43,13 @@ public:
     static void* myThis;
     static void onRep_static(struct json_object* reply_contents);
     static void onEv_static(const string& event, struct json_object* event_contents);
+
+signals:
+    void showNotification(QString application_id, QString icon_path, QString text);
+    void showInformation(QString info);
 private:
     LibHomeScreen *mp_hs;
+    Shell *aglShell;
 };
 
 #endif // HOMESCREENHANDLER_H