diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-06-06 15:42:08 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-06-06 15:42:08 +0900 |
commit | c9d1e97c13b0a2b78b9413d2a0914a49f1e389ec (patch) | |
tree | 5b48c810cbc16f45ff28217f6df25b89b6175ba6 /include/libhomescreen.hpp | |
parent | fbf27649e8b43a716d45c676acdee83292db7bbb (diff) |
add vui event
Diffstat (limited to 'include/libhomescreen.hpp')
-rw-r--r-- | include/libhomescreen.hpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/libhomescreen.hpp b/include/libhomescreen.hpp index 0361fa4..bdfeb4b 100644 --- a/include/libhomescreen.hpp +++ b/include/libhomescreen.hpp @@ -51,7 +51,12 @@ public: Event_ShowNotification, Event_ShowInformation, Event_AppListChanged, - Event_RegisterShortcut, + Event_RegisterShortcut, + Event_UpdateShortcut, + Event_SetDestination, + Event_CancelDestination, + Event_StartNavigation, + Event_StopNavigation, Event_Max }; @@ -66,6 +71,7 @@ public: int onScreenReply(const char* reply_message); void set_event_handler(enum EventType et, handler_func f); + void publishSubscription(void); void registerCallback( void (*event_cb)(const std::string& event, struct json_object* event_contents), @@ -83,11 +89,12 @@ public: int showNotification(json_object* json); int showInformation(json_object* json); int getRunnables(void); - int registerShortcut(json_object* json); - + int registerShortcut(const char* application_id, json_object* json); + int updateShortcut(const char* application_id, 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); |