X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Flibhomescreen.hpp;h=0361fa409622cf7368ae422b0f94f571f87a09d4;hb=fbf27649e8b43a716d45c676acdee83292db7bbb;hp=0fed49fa73906191ff568ec6fa0c6133d4ce2d24;hpb=c0146077906057bf97688a617870228eaad0cf54;p=src%2Flibhomescreen.git diff --git a/include/libhomescreen.hpp b/include/libhomescreen.hpp index 0fed49f..0361fa4 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,12 @@ public: Event_HideWindow, Event_ReplyShowWindow, Event_ShowNotification, - Event_ShowInformation + Event_ShowInformation, + Event_AppListChanged, + Event_RegisterShortcut, + 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 +82,8 @@ public: int replyShowWindow(const char* application_id, json_object* json); int showNotification(json_object* json); int showInformation(json_object* json); + int getRunnables(void); + int registerShortcut(json_object* json); private: