X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhs-client.h;fp=src%2Fhs-client.h;h=985ecf1edad7f66338cbe9d561ef989a5d9dd2eb;hb=724716d4fba8550efa549ff0ae60c1afedfa7c1d;hp=cbf2f33ff9a7c7baaae5f66928baf064b07441cb;hpb=bfaca7514c709e818aa9f7eaa7ebb590e5166733;p=apps%2Fagl-service-homescreen.git diff --git a/src/hs-client.h b/src/hs-client.h index cbf2f33..985ecf1 100644 --- a/src/hs-client.h +++ b/src/hs-client.h @@ -20,6 +20,7 @@ #include #include #include +#include #include "hs-helper.h" @@ -45,18 +46,21 @@ private: int unsubscribe(afb_req_t request); int showNotification(afb_req_t request); int showInformation(afb_req_t request); + int registerShortcut(afb_req_t request); + int updateShortcut(afb_req_t request); typedef int (HS_Client::*func_handler)(afb_req_t); static const std::unordered_map func_list; bool checkEvent(const char* event); bool isSupportEvent(const char* event); + void pushUpdateShortcutEvent(void); private: std::string my_id; afb_event_t my_event; bool subscription = false; std::unordered_set event_list; - + static std::list> shortcut_list; }; #endif // HOMESCREEN_CLIENT_H \ No newline at end of file