Update to use GetClientApplicationId()
authorSunwook Bae <sunwook45.bae@samsung.com>
Fri, 22 Mar 2013 08:45:46 +0000 (17:45 +0900)
committerSunwook Bae <sunwook45.bae@samsung.com>
Fri, 22 Mar 2013 08:45:46 +0000 (17:45 +0900)
Change-Id: Ic9e9e465e9db7c46f413bb6231b6d4f6255a4dc3
Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>
src/FShell_AppWidgetManagerService.cpp
src/FShell_AppWidgetManagerStub.cpp

index e52a2ee..26a3c05 100644 (file)
@@ -186,7 +186,7 @@ void
 AppWidgetManagerService::OnIpcClientConnected(const _IpcServer& server, int clientId)
 {
        //SysLog(NID_APP, "(clientId:%d)\n", clientId);
-       String fullAppId = server.GetClientAppId() + "." + server.GetClientAppExecutableName();
+       String fullAppId = server.GetClientApplicationId();
        SysLog(NID_APP, "(%ls)\n", fullAppId.GetPointer());
 //     this->SetClientIds(fullAppId, clientId);//Todo
 
@@ -195,7 +195,7 @@ AppWidgetManagerService::OnIpcClientConnected(const _IpcServer& server, int clie
 void
 AppWidgetManagerService::OnIpcClientDisconnected(const _IpcServer& server, int clientId)
 {
-       String fullAppId = server.GetClientAppId() + "." + server.GetClientAppExecutableName();
+       String fullAppId = server.GetClientApplicationId();
        SysLog(NID_APP, "(%ls)\n", fullAppId.GetPointer());
        this->SetClientIds(fullAppId, -1);
 }
@@ -532,7 +532,7 @@ AppWidgetManagerService::RequestSharedMemoryId(const Tizen::App::AppId& appId, c
 
        if(pAppWidgetContext->HasValidClientId() == false)
        {
-               String fullAppId = __pIpcServer->GetClientAppId() + "." + __pIpcServer->GetClientAppExecutableName();
+               String fullAppId = __pIpcServer->GetClientApplicationId();
                this->SetClientIds(fullAppId, __pIpcServer->GetClientId());
        }
 
@@ -553,7 +553,7 @@ AppWidgetManagerService::RequestSharedMemoryIdForPD(const Tizen::App::AppId& app
 
        if(pPd->HasValidClientId() == false)
        {
-               String fullAppId = __pIpcServer->GetClientAppId() + "." + __pIpcServer->GetClientAppExecutableName();
+               String fullAppId = __pIpcServer->GetClientApplicationId();
                pPd->SetClientId(__pIpcServer->GetClientId());
        }
 
index 9a2f5c0..793f4e4 100644 (file)
@@ -188,7 +188,7 @@ _AppWidgetManagerStub::SendTouchEventForPD(const int clientId, const String& ins
 void
 _AppWidgetManagerStub::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, "(appId:%ls, clientId:%d)\n", server.GetClientApplicationId().GetPointer(), server.GetClientId());
 
        SysAssertf(__pIpcServer, "__pIpcServer is null!");
 
@@ -226,7 +226,7 @@ _AppWidgetManagerStub::OnIpcClientConnected(const _IpcServer& server, int client
 void
 _AppWidgetManagerStub::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, "(appId:%ls, clientId:%d)\n", server.GetClientApplicationId().GetPointer(), clientId);
 }