Replaced deprecated Notification API
authorSunil Kumar Behera <sunil.behera@samsung.com>
Wed, 27 Mar 2013 10:44:20 +0000 (16:14 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 10 Apr 2013 11:47:48 +0000 (20:47 +0900)
Change-Id: Ie71a07309b01c04e547c084c3b2956cbe57bfadb

bt-service/CMakeLists.txt
bt-service/bt-service-adapter.c
packaging/bluetooth-frwk.spec

index a9b292e..6a6be0a 100644 (file)
@@ -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")
index cd156e0..9c3c160 100644 (file)
@@ -27,6 +27,7 @@
 #include <status.h>
 #include <syspopup_caller.h>
 #include <aul.h>
+#include <notification.h>
 
 #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);
index 0be0629..aad2eda 100644 (file)
@@ -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