From db6a5d9a60991feda5dc5c628f1e377b71bec5a1 Mon Sep 17 00:00:00 2001 From: Young Ik Cho Date: Thu, 20 Dec 2012 09:10:06 +0900 Subject: [PATCH] proper install check Change-Id: I4a7de2cc37f70e82ff3f76167e020f55358b8ef9 Signed-off-by: Young Ik Cho --- src/core/FShell_NotificationManagerImpl.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/FShell_NotificationManagerImpl.cpp b/src/core/FShell_NotificationManagerImpl.cpp index 50a9045..2712c53 100644 --- a/src/core/FShell_NotificationManagerImpl.cpp +++ b/src/core/FShell_NotificationManagerImpl.cpp @@ -36,13 +36,14 @@ #include #include #include "FApp_AppInfo.h" -#include "FApp_Aul.h" +#include "FAppPkg_PackageManagerImpl.h" #include "FApp_AppArg.h" #include "FShell_NotificationManagerImpl.h" #include "FShell_NotificationManagerProxy.h" using namespace Tizen::Base; using namespace Tizen::App; +using namespace Tizen::App::Package; using namespace Tizen::Shell; extern "C" int service_create_request(bundle *data, service_h *service); @@ -270,7 +271,7 @@ _NotificationManagerImpl::NotifyImpl(const AppId& appId, const String& messageTe memset(buffer, 0, 256); - bool b = _Aul::IsInstalled(appId); + bool b = _PackageManagerImpl::IsAppInstalled(appId); SysTryReturnResult(NID_APP, b == true, E_APP_NOT_INSTALLED, "The application %ls is not installed", appId.GetPointer()); @@ -581,7 +582,7 @@ _NotificationManagerImpl::Notify(const String& messageText, int badgeNumber, con int _NotificationManagerImpl::GetBadgeNumber(const AppId& appId) const { - bool b = _Aul::IsInstalled(appId); + bool b = _PackageManagerImpl::IsAppInstalled(appId); SysTryReturn(NID_APP, b == true, -1, E_OBJ_NOT_FOUND, "[E_OBJ_NOT_FOUND] The application %ls is not installed", appId.GetPointer()); -- 2.7.4