From 44290c49e08fe52d6e3ed80720473577131090f4 Mon Sep 17 00:00:00 2001 From: wang_zhiqiang Date: Wed, 20 Feb 2019 13:42:43 +0800 Subject: Start app and get runnables list by homescreen 1.add getRunnables interface. 2.add Event_AppListChanged event. 3.delete area defination in libhomescreen.hpp Bug-AGL: SPEC-2188 Change-Id: I8344067ecadc09e917610eb0a6e191924106f012 Signed-off-by: wang_zhiqiang --- include/libhomescreen.hpp | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/libhomescreen.hpp b/include/libhomescreen.hpp index 0fed49f..e51e01c 100644 --- a/include/libhomescreen.hpp +++ b/include/libhomescreen.hpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2017 TOYOTA MOTOR CORPORATION + * Copyright (c) 2018,2019 TOYOTA MOTOR CORPORATION * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,6 +41,7 @@ public: using handler_func = std::function; enum EventType { + Event_Min, Event_ShowWindow = 1, Event_TapShortcut = 1, Event_OnScreenMessage, @@ -47,19 +49,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 api_list; static const std::vector event_list; @@ -87,6 +81,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: -- cgit 1.2.3-korg