diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-06-03 14:47:27 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-06-03 17:41:21 +0800 |
commit | 3f110d22406e836a7fa8878b00d4b1784ae31a55 (patch) | |
tree | 07cfe8c7abaaca1b16045d98e54c5619ca2ba301 /src/hs-client.cpp | |
parent | 6721f3fbd9d3e5de3b41ce1859ae6034da474a8d (diff) |
merge vui
Change-Id: I64a1bb68ea3e2b772a40eb78d316c54f8ed25de8
Diffstat (limited to 'src/hs-client.cpp')
-rw-r--r-- | src/hs-client.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/hs-client.cpp b/src/hs-client.cpp index e8f0f7b..bff9141 100644 --- a/src/hs-client.cpp +++ b/src/hs-client.cpp @@ -60,7 +60,6 @@ std::list<std::pair<std::string, std::string>> HS_Client::shortcut_list; */ HS_Client::HS_Client(afb_req_t request, std::string id) : my_id(id) { - AFB_DEBUG("called."); my_event = afb_api_make_event(request->api, id.c_str()); } @@ -76,7 +75,6 @@ HS_Client::HS_Client(afb_req_t request, std::string id) : my_id(id) */ HS_Client::~HS_Client() { - AFB_DEBUG("called."); afb_event_unref(my_event); } @@ -172,7 +170,6 @@ int HS_Client::on_screen_reply(afb_req_t request) */ int HS_Client::subscribe(afb_req_t request) { - AFB_DEBUG(" called."); int ret = 0; const char *value = afb_req_value(request, _event); if(value) { @@ -214,7 +211,6 @@ int HS_Client::subscribe(afb_req_t request) */ int HS_Client::unsubscribe(afb_req_t request) { - AFB_DEBUG(" called."); int ret = 0; const char *value = afb_req_value(request, _event); if(value) { @@ -281,7 +277,6 @@ int HS_Client::showWindow(afb_req_t request) */ int HS_Client::hideWindow(afb_req_t request) { - AFB_DEBUG(" called."); std::string req_appid = std::move(get_application_id(request)); if(req_appid.empty()) { AFB_WARNING("can't get application identifier"); @@ -340,7 +335,6 @@ int HS_Client::replyShowWindow(afb_req_t request) */ int HS_Client::showNotification(afb_req_t request) { - AFB_DEBUG(" called."); int ret = 0; const char *value = afb_req_value(request, _text); if(value) { @@ -388,7 +382,6 @@ int HS_Client::showNotification(afb_req_t request) */ int HS_Client::showInformation(afb_req_t request) { - AFB_DEBUG(" called."); int ret = 0; const char *value = afb_req_value(request, _info); if(value) { @@ -547,7 +540,6 @@ bool HS_Client::isSupportEvent(const char* event) */ int HS_Client::handleRequest(afb_req_t request, const char *verb) { - AFB_DEBUG("called."); if((strcasecmp(verb, "subscribe") && strcasecmp(verb, "unsubscribe")) && !checkEvent(verb)) return 0; @@ -577,7 +569,7 @@ int HS_Client::pushEvent(const char *event, struct json_object *param) if(!checkEvent(event)) return 0; - AFB_INFO("called, event=%s.",event); + AFB_INFO("called, event=%s.", event); struct json_object* push_obj = json_object_new_object(); hs_add_object_to_json_object_str( push_obj, 4, _application_id, my_id.c_str(), _type, event); if(param != nullptr) |