#include <string.h>
#include <malloc.h>
#include <stacktrim.h>
+
+#if defined(LIBNOTIFY_SUPPORT)
+#include "bt-popup.h"
+#elif defined(LIBNOTIFICATION_SUPPORT)
+#include "bt-service-agent-notification.h"
+#else
#include <syspopup_caller.h>
+#endif
+
#include <vconf.h>
#include <bundle_internal.h>
retv_if(user_data == NULL, FALSE);
++retry_count;
-
- ret = syspopup_launch("bt-syspopup", b);
+#if defined(LIBNOTIFY_SUPPORT)
+ ret = notify_launch(b);
+#elif defined(LIBNOTIFICATION_SUPPORT)
+ ret = notification_launch(b);
+#else
+ ret = syspopup_launch("bt-syspopup", b);
+#endif
if (ret < 0) {
BT_ERR("Sorry! Can't launch popup, ret=%d, Re-try[%d] time..",
ret, retry_count);
bundle_add(b, "event-type", event_str);
+#if !defined(LIBNOTIFY_SUPPORT) && !defined(LIBNOTIFICATION_SUPPORT)
ret = syspopup_launch("bt-syspopup", b);
+#endif
if (0 > ret) {
BT_ERR("Popup launch failed...retry %d", ret);
static gboolean __pairing_cancel_request(GapAgentPrivate *agent, const char *address)
{
BT_DBG("On Going Pairing is cancelled by remote\n");
-
+#if !defined(LIBNOTIFY_SUPPORT) && !defined(LIBNOTIFICATION_SUPPORT)
syspopup_destroy_all();
+#endif
__bt_agent_release_memory();
gap_agent_reply_authorize(agent, GAP_AGENT_CANCEL, NULL);
+#if !defined(LIBNOTIFY_SUPPORT) && !defined(LIBNOTIFICATION_SUPPORT)
syspopup_destroy_all();
+#endif
__bt_agent_release_memory();