diff options
author | tiansen <tian_sen@dl.cn.nexty-ele.com> | 2018-11-02 20:40:38 +0800 |
---|---|---|
committer | tiansen <tian_sen@dl.cn.nexty-ele.com> | 2018-11-02 20:40:38 +0800 |
commit | 26e3a508eb0bec7a59dbcef0251233df42781963 (patch) | |
tree | 2649f1ec185c5173cbbb5e07275649d1dbbe0100 /homescreen/src/homescreenhandler.h | |
parent | 33d31b5bac3c8c9105d43d6566174f39ef7a4ea4 (diff) |
verticalsandbox/tiansen/vertical
Diffstat (limited to 'homescreen/src/homescreenhandler.h')
-rw-r--r-- | homescreen/src/homescreenhandler.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/homescreen/src/homescreenhandler.h b/homescreen/src/homescreenhandler.h index c18d7a0..539d380 100644 --- a/homescreen/src/homescreenhandler.h +++ b/homescreen/src/homescreenhandler.h @@ -32,7 +32,9 @@ public: void init(int port, const char* token); - Q_INVOKABLE void tapShortcut(QString application_name); + Q_INVOKABLE void tapShortcut(QString application_name, bool is_full); + Q_INVOKABLE QString getCurrentApplication(); + void setCurrentApplication(QString application_name); void onRep(struct json_object* reply_contents); void onEv(const string& event, struct json_object* event_contents); @@ -40,8 +42,14 @@ 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 notification(QString id, QString icon, QString text); + void information(QString text); + private: LibHomeScreen *mp_hs; + QString current_applciation; }; #endif // HOMESCREENHANDLER_H |