aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs-apprecover.cpp
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-04-24 19:22:44 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-04-24 19:22:44 +0800
commit4cb1ba39335aa2a2d2e08481acd72a3682adaefe (patch)
tree0652fc574d098cb904db455ae6522e23a354b102 /src/hs-apprecover.cpp
parent95c8f8ac2526acc5f7467704532ea235532b1876 (diff)
send showWindow event when app start over
Change-Id: I2ced5f48f0c377cdc4261b5bb19ac6f9c40760ea
Diffstat (limited to 'src/hs-apprecover.cpp')
-rw-r--r--src/hs-apprecover.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/hs-apprecover.cpp b/src/hs-apprecover.cpp
index cedf751..5ccd039 100644
--- a/src/hs-apprecover.cpp
+++ b/src/hs-apprecover.cpp
@@ -115,13 +115,15 @@ void HS_AppRecover::startRecovery(afb_api_t api, recover_map &map)
* - appid : application id liked "dashboard"
*
* #### Return
- * None
+ * false : not recover app
+ * true : recover app
*
*/
-void HS_AppRecover::registerRecoveredApp(const std::string &appid)
+bool HS_AppRecover::registerRecoveredApp(const std::string &appid)
{
+ bool ret = false;
if(m_recovering_set.empty()) {
- return;
+ return ret;
}
auto it = m_recovering_set.find(appid);
@@ -132,7 +134,9 @@ void HS_AppRecover::registerRecoveredApp(const std::string &appid)
&& ip->second.visibility) {
HS_ClientManager::instance()->pushEvent("showWindow", nullptr, appid);
}
+ ret = true;
}
+ return ret;
}
/**