diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-01-21 18:07:29 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-01-23 20:48:25 +0800 |
commit | e5d2527df6b684b38f57e35db970f4b8210f81a4 (patch) | |
tree | 81f9e5283f02064dfa96acc8008155253cdabe05 /include/libhomescreen.hpp | |
parent | c0146077906057bf97688a617870228eaad0cf54 (diff) |
add applistchanged event & delete area definationsandbox/wangzhiqiang/dbus_ws
Change-Id: I3c58712a2e4f080cc75387f94d3d91bb3cba6629
Diffstat (limited to 'include/libhomescreen.hpp')
-rw-r--r-- | include/libhomescreen.hpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/include/libhomescreen.hpp b/include/libhomescreen.hpp index 0fed49f..b9f5e75 100644 --- a/include/libhomescreen.hpp +++ b/include/libhomescreen.hpp @@ -40,6 +40,7 @@ public: using handler_func = std::function<void(json_object*)>; enum EventType { + Event_Min, Event_ShowWindow = 1, Event_TapShortcut = 1, Event_OnScreenMessage, @@ -47,19 +48,11 @@ public: Event_HideWindow, Event_ReplyShowWindow, Event_ShowNotification, - Event_ShowInformation + Event_ShowInformation, + Event_AppListChanged, + Event_Max }; - /* Key for json obejct */ - const char *_keyParameter = "parameter"; - const char *_keyArea = "area"; - - /* display area */ - const char *_areaNormal = "normal"; - const char *_areaFullScreen = "fullscreen"; - const char *_areaSplitMain = "split.main"; - const char *_areaSplitSub = "split.sub"; - static const std::vector<std::string> api_list; static const std::vector<std::string> event_list; @@ -87,6 +80,7 @@ public: int replyShowWindow(const char* application_id, json_object* json); int showNotification(json_object* json); int showInformation(json_object* json); + int getRunnables(void); private: |