+
+result
+_AppControlProviderManagerImpl::SendAppControlResultPrimitive(RequestId reqId, _AppArg& arg, int ret)
+{
+ static bool firstRequestSent = false;
+
+ if (reqId == 0 && firstRequestSent)
+ {
+ SysLog(NID_APP, "Sent main AppControl request already.");
+
+ return E_SUCCESS;
+ }
+ else
+ {
+ if (reqId == 0)
+ {
+ firstRequestSent = true;
+ }
+
+ const bool isService = _AppInfo::GetAppType() & _APP_TYPE_SERVICE_APP;
+
+ //resArg.Print();
+ result r = _Aul::SendResult(arg.GetBundle(), static_cast<appsvc_result_val>(ret), _AppInfo::IsSubMode(), isService);
+ SysLog(NID_APP, "Sent AppControl event for %d.", reqId);
+
+ return r;
+ }
+}
+
+