Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(capi-appfw-application)
-BuildRequires: pkgconfig(capi-appfw-app-manager)
-BuildRequires: pkgconfig(capi-appfw-package-manager)
BuildRequires: pkgconfig(capi-content-mime-type)
BuildRequires: pkgconfig(capi-network-serial)
BuildRequires: pkgconfig(capi-system-device)
BuildRequires: pkgconfig(capi-system-power)
BuildRequires: pkgconfig(capi-system-runtime-info)
BuildRequires: pkgconfig(capi-system-system-settings)
-BuildRequires: pkgconfig(capi-system-media-key)
BuildRequires: pkgconfig(capi-network-bluetooth)
BuildRequires: pkgconfig(capi-telephony-sim)
BuildRequires: pkgconfig(capi-network-tethering)
BuildRequires: pkgconfig(efreet)
BuildRequires: pkgconfig(ethumb)
BuildRequires: pkgconfig(icu-i18n)
-BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libpcre)
BuildRequires: pkgconfig(libssl)
BuildRequires: pkgconfig(libsoup-2.4)
-BuildRequires: pkgconfig(libwbxml2)
+BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(message-port)
BuildRequires: pkgconfig(minizip)
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(security-server)
# runtime requires
-Requires: capi-appfw-app-manager
-Requires: capi-appfw-application
+Requires: capi-appfw-application
Requires: capi-appfw-package-manager
Requires: capi-content-mime-type
Requires: capi-network-serial
Requires: %{name} = %{version}-%{release}
Requires: boost-devel
Requires: pkgconfig(pkgmgr-info)
-Requires: pkgconfig(capi-appfw-app-manager)
%description devel
The App Framework library of OSP (DEV)
Summary: osp app framework internel (Internal)
Group: TO_BE/FILLED_IN
Requires: %{name} = %{version}-%{release}
-Requires: pkgconfig(capi-appfw-app-manager)
%description internal-devel
The App Framework library of OSP (Internal-DEV)
%{_libdir}/osp/debug/libosp-appfw.so*
%{_libdir}/osp-server/debug/libosp-appfw-server.so*
%{_libdir}/osp-server/debug/libosp-system-server.so*
-
haptic
heynoti
icu-i18n
- libcurl
libpcre
libsoup-2.4
- libwbxml2
+ libxml-2.0
message-port
minizip
notification
vconf
zlib
tapi
- capi-appfw-app-manager
capi-appfw-application
- capi-appfw-package-manager
capi-content-mime-type
capi-network-serial
capi-system-runtime-info
capi-system-device
capi-system-power
capi-system-system-settings
- capi-system-media-key
- capi-network-bluetooth
capi-system-info
security-server
)
FOREACH(flag ${pkgs_CFLAGS})
- SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag} -Wall -Wno-unused")
ENDFOREACH(flag)
#include <aul/aul.h>
#include <bundle.h>
-#include <app_manager.h>
#include <FBaseInteger.h>
#include <FBaseObject.h>
#include <aul.h>
#include <bundle.h>
#include <appsvc/appsvc.h>
-#include <app_manager.h>
#include <heynoti.h>
#include <FBaseObject.h>
bool
_Aul::IsRunning(const String& appId)
{
- bool isRunning = false;
- std::unique_ptr<char[]> pSlpPackageName(_StringConverter::CopyToCharArrayN(appId));
+ std::unique_ptr<char[]> pPackageId(_StringConverter::CopyToCharArrayN(appId));
- app_manager_is_running(pSlpPackageName.get(), &isRunning);
+ const bool isRunning = (aul_app_is_running(pPackageId.get()) > 0);
SysLog(NID_APP, "'%ls' %s running now.", appId.GetPointer(), (isRunning) ? "is" : "is NOT");
return isRunning;
*/
#include <unique_ptr.h>
+
#include <appsvc/appsvc.h>
#include <bundle.h>
#include <notification/notification.h>
#include <appfw/app.h>
-#include <appfw/app_manager.h>
#include <appfw/app_ui_notification.h>
#include <FBaseSysLog.h>
String iconPath;
char* pMsg = null;
char* pIcon = null;
- char* pDefaultIconPath = NULL;
- char* pName = NULL;
+ char* pName = null;
ui_notification_h core = NULL;
char buffer[256];
bundle* pKb = NULL;
snprintf(buffer, 256, "%ls", appId.GetPointer());
pPackageAppInfo = _PackageManagerImpl::GetInstance()->GetPackageAppInfoN(appId);
- iconPath = _PackageAppInfoImpl::GetInstance(pPackageAppInfo)->GetAppNotificationIconPath();
-
- if (!iconPath.IsEmpty() && File::IsFileExist(iconPath))
+ if (pPackageAppInfo)
{
- pIcon = _StringConverter::CopyToCharArrayN(iconPath);
- r = ConvertNotificationResult(ui_notification_set_icon(core, pIcon));
- SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification set icon failed.", GetErrorMessage(r));
+ iconPath = pPackageAppInfo->GetAppNotificationIconPath();
+
+ if (!iconPath.IsEmpty() && File::IsFileExist(iconPath))
+ {
+ pIcon = _StringConverter::CopyToCharArrayN(iconPath);
+ r = ConvertNotificationResult(ui_notification_set_icon(core, pIcon));
+ SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification set icon failed.", GetErrorMessage(r));
+ }
+ else
+ {
+ iconPath = pPackageAppInfo->GetAppMenuIconPath();
+ pIcon = _StringConverter::CopyToCharArrayN(iconPath);
+ r = ConvertNotificationResult(ui_notification_set_icon(core, pIcon));
+ SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set icon path failed.", GetErrorMessage(r));
+ }
+
+ const String& displayName = pPackageAppInfo->GetAppDisplayName();
+ pName = _StringConverter::CopyToCharArrayN(displayName);
+
+ r = ConvertNotificationResult(ui_notification_set_title(core, pName));
+ SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification set title failed.", GetErrorMessage(r));
}
else
{
- app_manager_get_app_icon_path(buffer, &pDefaultIconPath);
- r = ConvertNotificationResult(ui_notification_set_icon(core, pDefaultIconPath));
- SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set icon path failed.", GetErrorMessage(r));
+ SysLog(NID_APP, "No packageInfo found for %ls", appId.GetPointer());
}
- app_manager_get_app_name(buffer, &pName);
- r = ConvertNotificationResult(ui_notification_set_title(core, pName));
- SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification set title failed.", GetErrorMessage(r));
r = arg.Construct(launchArguments);
SysTryCatch(NID_APP, !IsFailed(r), , r, "[%s] Propagating.", GetErrorMessage(r));
delete pPackageAppInfo;
delete[] pMsg;
delete[] pIcon;
- if (pDefaultIconPath)
- {
- free(pDefaultIconPath);
- }
+ delete[] pName;
+
if (core)
{
ui_notification_destroy(core);
}
- if (pName)
- {
- free(pName);
- }
service_destroy(svc);
return r;
}
#include <typeinfo>
#include <unique_ptr.h>
-#include <package_manager.h>
-
#include <message-port.h>
#include <FBaseSysLog.h>
glib-2.0
heynoti
pkgmgr-info
- capi-appfw-app-manager
)
FOREACH(flag ${server_pkgs_CFLAGS})
ENDFOREACH(flag)
## SET EXTRA COMPILER FLAGS
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fPIC -Wall" )
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fPIC -Wall -Wno-unused")
## SET C COMPILER FLAGS
SET(CMAKE_C_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
#include <aul.h>
#include <bundle.h>
#include <appsvc/appsvc.h>
-#include <app_manager.h>
#include <heynoti.h>
#include <FBaseObject.h>
_AulServer::IsRunning(const AppId& appId, const String& exeName)
{
char slpPackageName[MAX_SLP_PACKAGE_ID] = {0, };
- bool isRunning = false;
_PackageManagerImpl* pPackageManagerImpl = _PackageManagerImpl::GetInstance();
SysTryReturn(NID_APP, pPackageManagerImpl != null, false, E_INVALID_STATE, "[E_INVALID_STATE] Invalid package instance.");
pPackageManagerImpl->GetPackageName(appId, &exeName, slpPackageName, MAX_SLP_PACKAGE_ID);
- app_manager_is_running(slpPackageName, &isRunning);
+ const bool isRunning = (aul_app_is_running(slpPackageName) > 0);
- SysLog(NID_APP, "'%s' %s running now.", slpPackageName, (isRunning == true) ? "is" : "is NOT");
+ SysLog(NID_APP, "'%s' %s running now.", slpPackageName, (isRunning) ? "is" : "is NOT");
return isRunning;
}
bool
_AulServer::IsRunning(const String& packageName)
{
- bool isRunning = false;
- std::unique_ptr<char[]> pSlpPackageName(_StringConverter::CopyToCharArrayN(packageName));
+ std::unique_ptr<char[]> pPackageId(_StringConverter::CopyToCharArrayN(packageName));
- app_manager_is_running(pSlpPackageName.get(), &isRunning);
+ const bool isRunning = (aul_app_is_running(pPackageId.get()) > 0);
SysLog(NID_APP, "'%ls' %s running now.", packageName.GetPointer(), (isRunning) ? "is" : "is NOT");
return isRunning;
capi-network-tethering
capi-system-device
capi-system-info
- capi-system-media-key
capi-system-runtime-info
capi-system-system-settings
capi-telephony-sim
ENDFOREACH(flag)
## SET EXTRA COMPILER FLAGS
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fPIC -Wall" )
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fPIC -Wall -Wno-unused")
## SET C COMPILER FLAGS
SET(CMAKE_C_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")