summaryrefslogtreecommitdiffstats
path: root/src/hs-client.cpp
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-10-30 19:12:18 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-10-30 19:12:18 +0800
commitd58138e0ceb19b3f201ec5e6e7126015db2cfead (patch)
tree837dae23643724e2d0c5ca28b1d9720411b7bf44 /src/hs-client.cpp
parent789ecb879cc529400b290eb9750fd1f9298fc690 (diff)
Improve HS_ClientManager and fix issue
1.No longer operate HS_Client in homescreen.cpp,move to HS_ClientManager class. 2.In hs_client.cpp,afb_event_push return the count of clients that received the event, not push event result, in tap_shortcut/on_screen_message/on_screen_reply directly return zero. Bug-AGL: SPEC-1764 Change-Id: Ief17d3fe3a9c80937fbda05d1c158eeed3924a75 Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Diffstat (limited to 'src/hs-client.cpp')
-rw-r--r--src/hs-client.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/hs-client.cpp b/src/hs-client.cpp
index 9fc9b61..c683c66 100644
--- a/src/hs-client.cpp
+++ b/src/hs-client.cpp
@@ -71,7 +71,8 @@ int HS_Client::tap_shortcut(const char* appname)
struct json_object* push_obj = json_object_new_object();
hs_add_object_to_json_object_str( push_obj, 4, _application_name, appname,
_type, __FUNCTION__);
- return afb_event_push(my_event, push_obj);
+ afb_event_push(my_event, push_obj);
+ return 0;
}
/**
@@ -93,7 +94,8 @@ int HS_Client::on_screen_message(afb_req_t request, const char* message)
struct json_object* push_obj = json_object_new_object();
hs_add_object_to_json_object_str( push_obj, 4, _display_message, message,
_type, __FUNCTION__);
- return afb_event_push(my_event, push_obj);
+ afb_event_push(my_event, push_obj);
+ return 0;
}
/**
@@ -115,7 +117,8 @@ int HS_Client::on_screen_reply(afb_req_t request, const char* message)
struct json_object* push_obj = json_object_new_object();
hs_add_object_to_json_object_str( push_obj, 4, _reply_message, message,
_type, __FUNCTION__);
- return afb_event_push(my_event, push_obj);
+ afb_event_push(my_event, push_obj);
+ return 0;
}
/**