summaryrefslogtreecommitdiffstats
path: root/homescreen/src/homescreenhandler.h
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2017-09-29 21:00:25 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2017-10-02 17:07:46 +0900
commit381755e4686a08e766316aaf40e8fdfa202d48d4 (patch)
tree52cdc8421fec6f467f35489c04336c4e69a72727 /homescreen/src/homescreenhandler.h
parentd32141ad4cdff0c53194b90c54dc92324cd0c31c (diff)
Add homescreen-2017eel_4.99.1eel/4.99.14.99.1
Add new homescreen-2017 with agl-service-windowmanaeger-2017 and agl-service-homescreen-2017. About this information see JIRA SPEC-871. [PatchSet2] Use aglwgt make package. Delete homescreensimulator and sampleapptimedate beacuse not use them. Change-Id: I402134d0386e76b2127ca95b9b0b48c1721b4086 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'homescreen/src/homescreenhandler.h')
-rw-r--r--homescreen/src/homescreenhandler.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/homescreen/src/homescreenhandler.h b/homescreen/src/homescreenhandler.h
new file mode 100644
index 0000000..55d14fd
--- /dev/null
+++ b/homescreen/src/homescreenhandler.h
@@ -0,0 +1,34 @@
+#ifndef HOMESCREENHANDLER_H
+#define HOMESCREENHANDLER_H
+
+#include <QObject>
+#include <libhomescreen.hpp>
+#include <string>
+
+using namespace std;
+
+class HomescreenHandler : public QObject
+{
+ Q_OBJECT
+public:
+ explicit HomescreenHandler(QObject *parent = 0);
+ ~HomescreenHandler();
+
+ void init(int port, const char* token);
+
+ Q_INVOKABLE void tapShortcut(QString application_name);
+
+ void onRep(struct json_object* reply_contents);
+ void onEv(const string& event, struct json_object* event_contents);
+
+ 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 homeButton();
+
+private:
+ LibHomeScreen *mp_hs;
+};
+
+#endif // HOMESCREENHANDLER_H