From: Sunil Kumar Behera Date: Wed, 27 Mar 2013 10:44:20 +0000 (+0530) Subject: Replaced deprecated Notification API X-Git-Tag: 2.1b_release~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1723d805b77f64fbf156e59a7f56e8c8de04956;p=framework%2Fconnectivity%2Fbluetooth-frwk.git Replaced deprecated Notification API Change-Id: Ie71a07309b01c04e547c084c3b2956cbe57bfadb --- diff --git a/bt-service/CMakeLists.txt b/bt-service/CMakeLists.txt index a9b292e..6a6be0a 100644 --- a/bt-service/CMakeLists.txt +++ b/bt-service/CMakeLists.txt @@ -35,7 +35,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include) INCLUDE(FindPkgConfig) pkg_check_modules(service_pkgs REQUIRED vconf aul vconf syspopup-caller dbus-glib-1 capi-network-tethering -libprivilege-control status alarm-service) +libprivilege-control status alarm-service notification) FOREACH(flag ${service_pkgs_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag} -Wall") diff --git a/bt-service/bt-service-adapter.c b/bt-service/bt-service-adapter.c index cd156e0..9c3c160 100644 --- a/bt-service/bt-service-adapter.c +++ b/bt-service/bt-service-adapter.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "alarm.h" @@ -580,7 +581,7 @@ gboolean __bt_enable_timeout_cb(gpointer user_data) __bt_set_disabled(BLUETOOTH_ERROR_TIMEOUT); /* Display notification */ - status_message_post(BT_STR_NOT_SUPPORT); + notification_status_message_post(BT_STR_NOT_SUPPORT); _bt_terminate_service(NULL); @@ -629,7 +630,7 @@ int _bt_enable_adapter(void) } /* Display notification */ - status_message_post(BT_STR_NOT_SUPPORT); + notification_status_message_post(BT_STR_NOT_SUPPORT); /* Terminate myself */ g_idle_add((GSourceFunc)_bt_terminate_service, NULL); diff --git a/packaging/bluetooth-frwk.spec b/packaging/bluetooth-frwk.spec index 0be0629..aad2eda 100644 --- a/packaging/bluetooth-frwk.spec +++ b/packaging/bluetooth-frwk.spec @@ -21,6 +21,7 @@ BuildRequires: pkgconfig(capi-network-tethering) BuildRequires: pkgconfig(libprivilege-control) BuildRequires: pkgconfig(status) BuildRequires: pkgconfig(alarm-service) +BuildRequires: pkgconfig(notification) BuildRequires: cmake Requires(post): vconf