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)
{
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.");
// [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)
{
__launchManager.RemoveItem(req);
}
+int
+_AppControlManager::GetLaunchRequestCount(void)
+{
+ return __launchManager.GetCount();
+}
result
_AppControlManager::RegisterRequest(service_s* service, int& req, _AppHandler& handler)