fix code cleanup with file property change
[platform/framework/native/appfw.git] / src / app / FApp_AppControlManager.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 626a97e..3d48a30
@@ -83,7 +83,6 @@ namespace Tizen { namespace App
 const wchar_t TIZEN_OPERATION_PICK[] = L"http://tizen.org/appcontrol/operation/pick";
 const wchar_t SELECTOR_NOTI_KEY[] = L"__APP_SVC_CALLER_NOTI__";
 const int _MAX_PACKAGE_ID_LENGTH = 10;
-const int _MAX_DATA_ARGUMENT_LENGTH = 32768; // 32KB
 
 _InProcessInfo::~_InProcessInfo(void)
 {
@@ -312,9 +311,6 @@ LaunchResultCb(bundle* b, int request_code, appsvc_result_val res, void* data)
        result r = pAppArg->Construct(b);
        SysTryCatch(NID_APP, !IsFailed(r), , r, "[%s] AppControl event argument creation failure.", GetErrorMessage(r));
 
-       // save callee appId ASAP
-       pAppArg->SaveCalleeAppId();
-
        pArg = new (std::nothrow) _AppControlEventArg(request_code, pAppArg, res);
        SysTryCatch(NID_APP, pArg != null, r = E_OUT_OF_MEMORY, r, "[E_OUT_OF_MEMORY] AppControl event argument creation failure.");
 
@@ -501,14 +497,6 @@ _AppControlManager::LaunchApp(const AppId& appId, _AppArg* pArg, int req)
        // [INFO] Ugly solution for submode support
        pArg->UpdateAppId(tempId);
        kb = pArg->GetBundle();
-
-       bundle_raw* dataBuf = null;
-       int dataLen = 0;
-       int res = bundle_encode(kb, &dataBuf, &dataLen);
-       bundle_free_encoded_rawdata(&dataBuf);
-       SysTryReturnResult(NID_APP, res == 0, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] The memory is insufficient.");
-       SysTryReturnResult(NID_APP, dataLen <= _MAX_DATA_ARGUMENT_LENGTH, E_MAX_EXCEEDED,
-                       "The data length (%d) exceeds the maximum limit.", dataLen);
        
        pid = appsvc_run_service(kb, req, LaunchResultCb, this);
        if (pid > 0)
@@ -728,6 +716,11 @@ _AppControlManager::RemoveLaunchRequest(int req)
 {
        __launchManager.RemoveItem(req);
 }
+int
+_AppControlManager::GetLaunchRequestCount(void)
+{
+       return __launchManager.GetCount();
+}
 
 result
 _AppControlManager::RegisterRequest(service_s* service, int& req, _AppHandler& handler)