Update to handle the FG/BG on AppControl response callback
[platform/framework/native/appfw.git] / src / app / FApp_AppArg.cpp
index 3f79949..a85fdeb 100644 (file)
@@ -77,8 +77,7 @@ static const char BUNDLE_KEY_PREFIX_SERVICE[] = "__APP_SVC_";
 static const char BUNDLE_KEY_PREFIX_OSP[] = "__OSP_";
 static const char BUNDLE_KEY_PREFIX_UG[] = "__UG_";
 
-static const char OSP_K_SUBMODE_CALLEE[] = "__OSP_SUB_CALLEE__";
-static const char OSP_K_SERVICE_CALLEE[] = "__OSP_SERVICE_CALLEE__";
+static const char OSP_K_RAISE_MODE[] = "__OSP_RAISE_MODE__";
 
 
 _AppArg::_AppArg(void)
@@ -1045,35 +1044,19 @@ _AppArg::UpdateKeyValue(bundle* pBundle, const char* pKey, const String& value)
 
 
 void
-_AppArg::UpdateSubMode(bundle* pBundle)
+_AppArg::UpdateRaiseMode(bundle* pBundle)
 {
-       appsvc_add_data(pBundle, OSP_K_SUBMODE_CALLEE, "1");
+       appsvc_add_data(pBundle, OSP_K_RAISE_MODE, "1");
 }
 
 
 bool
-_AppArg::IsSubMode(bundle* pBundle)
+_AppArg::IsRaiseMode(bundle* pBundle)
 {
-       const char* p = appsvc_get_data(pBundle, OSP_K_SUBMODE_CALLEE);
+       const char* p = appsvc_get_data(pBundle, OSP_K_RAISE_MODE);
        return (p && (strncmp(p, "1", sizeof(char)) == 0));
 }
 
-
-void
-_AppArg::UpdateServiceApp(bundle* pBundle)
-{
-       appsvc_add_data(pBundle, OSP_K_SERVICE_CALLEE, "1");
-}
-
-
-bool
-_AppArg::IsServiceApp(bundle* pBundle)
-{
-       const char* p = appsvc_get_data(pBundle, OSP_K_SERVICE_CALLEE);
-       return (p && (strncmp(p, "1", sizeof(char)) == 0));
-}
-
-
 int
 _AppArg::GetRequestIdFromBundle(bundle* pBundle)
 {