From: Sunwook Bae Date: Fri, 22 Mar 2013 08:45:46 +0000 (+0900) Subject: Update to use GetClientApplicationId() X-Git-Tag: 2.1b_release~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=daeb608aef99a40fb9553f9ca37aa81d3ebd237c;p=framework%2Fosp%2Fappwidget-service.git Update to use GetClientApplicationId() Change-Id: Ic9e9e465e9db7c46f413bb6231b6d4f6255a4dc3 Signed-off-by: Sunwook Bae --- diff --git a/src/FShell_AppWidgetManagerService.cpp b/src/FShell_AppWidgetManagerService.cpp index e52a2ee..26a3c05 100644 --- a/src/FShell_AppWidgetManagerService.cpp +++ b/src/FShell_AppWidgetManagerService.cpp @@ -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()); } diff --git a/src/FShell_AppWidgetManagerStub.cpp b/src/FShell_AppWidgetManagerStub.cpp index 9a2f5c0..793f4e4 100644 --- a/src/FShell_AppWidgetManagerStub.cpp +++ b/src/FShell_AppWidgetManagerStub.cpp @@ -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); }