proper install check
authorYoung Ik Cho <youngik.cho@samsung.com>
Thu, 20 Dec 2012 00:10:06 +0000 (09:10 +0900)
committerYoung Ik Cho <youngik.cho@samsung.com>
Thu, 20 Dec 2012 00:11:18 +0000 (09:11 +0900)
Change-Id: I4a7de2cc37f70e82ff3f76167e020f55358b8ef9
Signed-off-by: Young Ik Cho <youngik.cho@samsung.com>
src/core/FShell_NotificationManagerImpl.cpp

index 50a9045..2712c53 100644 (file)
 #include <FBaseInternalTypes.h>
 #include <FBase_StringConverter.h>
 #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());