diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-05-25 10:47:36 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-05-25 10:47:36 +0800 |
commit | edde653b1e4735618242811bd4af8b34ae2f9053 (patch) | |
tree | c6e4f78faefeb3d32a33ed3c03fbfe59d1db2012 /include/libhomescreen.hpp | |
parent | ddd0edd5b9e56264bedc19ad7887150c51bb3071 (diff) |
add register/update shortcut
Change-Id: If0f4095ce405fb89831cec7e18dfa63aec78717b
Diffstat (limited to 'include/libhomescreen.hpp')
-rw-r--r-- | include/libhomescreen.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libhomescreen.hpp b/include/libhomescreen.hpp index 32a9121..4abb8b2 100644 --- a/include/libhomescreen.hpp +++ b/include/libhomescreen.hpp @@ -51,6 +51,8 @@ public: Event_ShowNotification, Event_ShowInformation, Event_AppListChanged, + Event_RegisterShortcut, + Event_UpdateShortcut, Event_Max }; @@ -83,10 +85,12 @@ public: int showNotification(json_object* json); int showInformation(json_object* json); int getRunnables(void); - + int registerShortcut(json_object* json); + int updateShortcut(json_object* json); private: int initialize_websocket(); + int getEventType(const char *event); void (*onEvent)(const std::string& event, struct json_object* event_contents); void (*onReply)(struct json_object* reply); |