X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhs-config.cpp;fp=src%2Fhs-config.cpp;h=df45e42a1bb185792dff96a7888ffc88e1e34ad8;hb=fa01549aba442decaf7c6d5b655da2d15d1a32ed;hp=c0d6942a622d016afc99d92ffe3e7840c1ffd43f;hpb=868898485c76ad5b0140e6528ba04c08878ea3ce;p=apps%2Fagl-service-homescreen.git diff --git a/src/hs-config.cpp b/src/hs-config.cpp index c0d6942..df45e42 100644 --- a/src/hs-config.cpp +++ b/src/hs-config.cpp @@ -25,6 +25,7 @@ const std::array HS_Config::keys_recover_type = { // based on const std::string HS_Config::lastmode_json = "lastmode.json"; const std::string HS_Config::key_appid = "appid"; const std::string HS_Config::key_visibility = "visibility"; +const std::string HS_Config::key_after = "after"; std::string HS_Config::root_dir = ""; /** @@ -145,6 +146,12 @@ std::vector HS_Config::getRecoverAppInfo(struct json_ob else { info.visibility = false; } + if(json_object_object_get_ex(info_obj, key_after.c_str(), &value_obj)) { + info.after = json_object_get_string(value_obj); + } + else { + info.after.clear(); + } v_app_info.push_back(info); }