X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhs-client.h;h=cbf2f33ff9a7c7baaae5f66928baf064b07441cb;hb=refs%2Ftags%2Flamprey_12.1.20;hp=5b384b11b45e7e708f77af66be1f33514a300155;hpb=53ae85dc62875fc92f1d24e25359beda8787826d;p=apps%2Fagl-service-homescreen.git diff --git a/src/hs-client.h b/src/hs-client.h index 5b384b1..cbf2f33 100644 --- a/src/hs-client.h +++ b/src/hs-client.h @@ -32,6 +32,7 @@ public: ~HS_Client(); int handleRequest(afb_req_t request, const char *verb); + int pushEvent(const char *event, struct json_object *param); private: int tap_shortcut(afb_req_t request); @@ -46,18 +47,7 @@ private: int showInformation(afb_req_t request); typedef int (HS_Client::*func_handler)(afb_req_t); - const std::unordered_map func_list { - {"tap_shortcut", &HS_Client::tap_shortcut}, - {"showWindow", &HS_Client::showWindow}, - {"hideWindow", &HS_Client::hideWindow}, - {"replyShowWindow", &HS_Client::replyShowWindow}, - {"on_screen_message", &HS_Client::on_screen_message}, - {"on_screen_reply", &HS_Client::on_screen_reply}, - {"subscribe", &HS_Client::subscribe}, - {"unsubscribe", &HS_Client::unsubscribe}, - {"showNotification", &HS_Client::showNotification}, - {"showInformation", &HS_Client::showInformation} - }; + static const std::unordered_map func_list; bool checkEvent(const char* event); bool isSupportEvent(const char* event);