Update _IpcServer APIs tizen_2.1 submit/tizen_2.1/20130514.054122
authorSunwook Bae <sunwook45.bae@samsung.com>
Mon, 29 Apr 2013 05:59:46 +0000 (14:59 +0900)
committerSunwook Bae <sunwook45.bae@samsung.com>
Mon, 29 Apr 2013 05:59:46 +0000 (14:59 +0900)
Change-Id: I255dad04478aaaf1fe622e5d33d6488f85d211ef
Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>
src/FApp_PackageManagerStub.cpp
src/FUi_UiManagerStub.cpp

index 4acf358..3128fa5 100755 (executable)
@@ -99,7 +99,7 @@ _PackageManagerStub::OnInstallPackage(const PackageId& packageId, const String&
 {
        SysLog(NID_APP, "kujaesung _PackageManagerStub::OnInstallPackage \n");
        //SysTryReturnVoidResult(NID_APP, __pPackageManagerImpl != null, E_INVALID_STATE, "Invalid package manager state.");
-       //*pRes = _AccessController::CheckSystemPrivilege(__pIpcServer->GetClientAppId(), _PRV_PACKAGEMANAGER_INSTALL);
+       //*pRes = _AccessController::CheckSystemPrivilege(__pIpcServer->GetClientPackageId(), _PRV_PACKAGEMANAGER_INSTALL);
        //SysTryReturnVoidResult(NID_APP, !IsFailed(*pRes), *pRes = E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
        //String appId;
        //*pRes = __pPackageManagerImpl->InstallPackage(packageId, packagePath, (IPackageInstallationResponseListener*)listener);
@@ -110,7 +110,7 @@ _PackageManagerStub::OnUninstallPackage(const PackageId& packageId, int listener
 {
        SysLog(NID_APP, "kujaesung _PackageManagerStub::OnUninstallPackage \n");
        //SysTryReturnVoidResult(NID_APP, __pPackageManagerImpl != null, E_INVALID_STATE, "Invalid package manager state.");
-       //*pRes = _AccessController::CheckSystemPrivilege(__pIpcServer->GetClientAppId(), _PRV_PACKAGEMANAGER_INSTALL);
+       //*pRes = _AccessController::CheckSystemPrivilege(__pIpcServer->GetClientPackageId(), _PRV_PACKAGEMANAGER_INSTALL);
        //SysTryReturnVoidResult(NID_APP, !IsFailed(*pRes), *pRes = E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
        //*pRes = __pPackageManagerImpl->UninstallPackage(packageId, (IPackageUninstallationResponseListener*)listener);
 }
@@ -118,7 +118,7 @@ _PackageManagerStub::OnUninstallPackage(const PackageId& packageId, int listener
 void
 _PackageManagerStub::OnIpcRequestReceived(_IpcServer& server, const IPC::Message& message)
 {
-       SysLog(NID_APP, "(appId:%ls, pid:%d, clientId:%d)\n", server.GetClientAppId().GetPointer(), server.GetClientProcessId(), server.GetClientId());
+       SysLog(NID_APP, "(pkgId:%ls, clientId:%d)\n", server.GetClientPackageId().GetPointer(), server.GetClientId());
 
        IPC_BEGIN_MESSAGE_MAP(_PackageManagerStub, message)
                IPC_MESSAGE_HANDLER_EX(PackageManager_InstallPackage, &server, OnInstallPackage)
@@ -147,7 +147,7 @@ _PackageManagerStub::OnIpcClientConnected(const _IpcServer& server, int clientId
 void
 _PackageManagerStub::OnIpcClientDisconnected(const _IpcServer&server, int clientId)
 {
-       SysLog(NID_APP, "(appId:%ls, pid:%d, clientId:%d)\n", server.GetClientAppId().GetPointer(), server.GetClientProcessId(), clientId);
+       SysLog(NID_APP, "(pkgId:%ls, clientId:%d)\n", server.GetClientPackageId().GetPointer(), clientId);
 }
 
 }}
index 4ebd5ee..2849af7 100644 (file)
@@ -88,7 +88,7 @@ _UiManagerStub::StartIpcServer(void)
 bool
 _UiManagerStub::OnSetZOrderGroup(unsigned int window, int windowZOrderGroup, result* pResult)
 {
-       *pResult = _AccessController::CheckSystemPrivilege(__pIpcServer->GetClientAppId(), _PRV_UIMANAGER);
+       *pResult = _AccessController::CheckSystemPrivilege(__pIpcServer->GetClientPackageId(), _PRV_UIMANAGER);
        SysTryReturn(NID_UI, *pResult == E_SUCCESS, true, *pResult, "[%s] Propagating.", GetErrorMessage(*pResult));
 
        Ecore_X_Window win = (Ecore_X_Window)window;