-/**
- * check register application
- *
- * #### Parameters
- * - api : the api
- * - appid : register application's id
- *
- * #### Return
- * true : checked
- * false : not checked
- *
- */
-bool HS_ClientManager::checkRegisterApp(afb_api_t api, const std::string &appid)
-{
- bool ret = true;
- auto &ip = listener_list[_listen_all];
- if(!ip.empty()) {
- for(auto &it : ip) {
- it->notify(api, appid);
- }
- }
- else if(startup_appid == appid) {
- startup_appid.clear();
- struct json_object* json_param = json_object_new_object();
- json_object_object_add(json_param, _area, json_object_new_string(startup_area.c_str()));
- pushEvent("showWindow", json_param, appid);
- startup_area.clear();
- }
- else {
- ret = false;
- }
- return ret;
-}
-