#include <aul/aul.h>
#include <bundle.h>
#include <content/mime_type.h>
+#include <appinfo.h>
#include <FBaseInteger.h>
#include <FBaseObject.h>
using namespace Tizen::Base::Utility;
using namespace Tizen::Io;
-namespace Tizen { namespace App
-{
-
-const wchar_t TIZEN_OPERATION_PICK[] = L"http://tizen.org/appcontrol/operation/pick";
-const wchar_t SELECTOR_NOTI_KEY[] = L"__APP_SVC_CALLER_NOTI__";
-const int _MAX_PACKAGE_ID_LENGTH = 10;
-
-_InProcessInfo::~_InProcessInfo(void)
+namespace
{
- delete pLib;
+const char SELECTOR_NOTI_KEY[] = "__APP_SVC_CALLER_NOTI__";
}
-_LaunchInfo::~_LaunchInfo(void)
+namespace Tizen { namespace App
{
- delete pArg;
-}
+const wchar_t TIZEN_OPERATION_PICK[] = L"http://tizen.org/appcontrol/operation/pick";
_AppControlManager::_AppControlManager(void)
if (req >= 0)
{
pArg->UpdateRequestId(req);
- _AppMessageImpl::AddData(kb, SELECTOR_NOTI_KEY, _AppInfo::GetApplicationId());
+ appsvc_add_data(kb, SELECTOR_NOTI_KEY, appinfo_get_appid());
}
if (_AppImpl::GetInstance() != null)
}
// clear outstanding ongoing notification
- const AppId& appId = _AppInfo::GetApplicationId();
- std::unique_ptr<char[]> pAppId(_StringConverter::CopyToCharArrayN(appId));
- notification_delete_all_by_type(pAppId.get(), NOTIFICATION_TYPE_ONGOING);
+ notification_delete_all_by_type(appinfo_get_appid(), NOTIFICATION_TYPE_ONGOING);
return r;
}
return;
}
- const String& appId = _AppInfo::GetApplicationId();
+ const char* pAppId = appinfo_get_appid();
const char* p = appsvc_get_operation(arg.GetBundle());
String operationId = (p) ? String(p) : TIZEN_OPERATION_MAIN;
operationId = TIZEN_OPERATION_MAIN;
}
- SysLog(NID_APP, "AppControl (%ls, %ls).", appId.GetPointer(), operationId.GetPointer());
+ SysLog(NID_APP, "AppControl (%s, %ls).", pAppId, operationId.GetPointer());
String uri;
String mime;
pAppControlProviderEventListener->OnAppControlRequestReceived(reqId, operationId, pUri, pMime, pMap.get());
- SysLog(NID_APP, "AppControl (%ls, %ls) invocation finished.", appId.GetPointer(), operationId.GetPointer());
+ SysLog(NID_APP, "AppControl (%s, %ls) invocation finished.", pAppId, operationId.GetPointer());
}
#include <notification/notification.h>
#include <appfw/app.h>
#include <appfw/app_ui_notification.h>
+#include <appinfo.h>
#include <FBaseSysLog.h>
#include <FAppNotificationManager.h>
{
unsigned int count = 0;
- const AppId appId = _AppInfo::GetApplicationId();
-
- std::unique_ptr<char[]> pAppId(_StringConverter::CopyToCharArrayN(appId));
-
- badge_error_e badgeError = badge_get_count(pAppId.get(), &count);
+ badge_error_e badgeError = badge_get_count(appinfo_get_appid(), &count);
if (badgeError == BADGE_ERROR_NONE)
{
if (badgeNumber >= 0)
{
- const AppId appId = _AppInfo::GetApplicationId();
- std::unique_ptr<char[]> pAppId(_StringConverter::CopyToCharArrayN(appId));
- badge_error_e badgeError = badge_set_count(pAppId.get(), badgeNumber);
+ badge_error_e badgeError = badge_set_count(appinfo_get_appid(), badgeNumber);
SysTryLog(NID_APP, badgeError == BADGE_ERROR_NONE, "badge_set_count failed(%d).", badgeError);
}
#include <limits.h>
+#include <FBaseRt_LibraryImpl.h>
+
#include "FApp_RequestManagerT.h"
#include "FApp_LaunchInfo.h"
#include "FApp_AppArg.h"
+using namespace Tizen::Base::Runtime;
+
namespace Tizen { namespace App
{
delete pArg;
}
+_InProcessInfo::~_InProcessInfo(void)
+{
+ delete pLib;
+}
+
+_LaunchInfo::~_LaunchInfo(void)
+{
+ delete pArg;
+}
+
template<typename T>
_RequestManagerT<T>::_RequestManagerT(void)