X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhs-client.h;h=ac4d0049bb8e2dc21725c9b1f7b6dcad3c09b960;hb=25299ef60fa4df5f590ff364cff004e90376a4bf;hp=5b384b11b45e7e708f77af66be1f33514a300155;hpb=256c66de221e748638c7cb0193bfe52ed312be93;p=apps%2Fagl-service-homescreen.git diff --git a/src/hs-client.h b/src/hs-client.h index 5b384b1..ac4d004 100644 --- a/src/hs-client.h +++ b/src/hs-client.h @@ -46,18 +46,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);