Use api methods instead of dbus calling 30/77230/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 29 Jun 2016 06:30:57 +0000 (15:30 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 29 Jun 2016 06:33:12 +0000 (15:33 +0900)
Change-Id: Ia4bc5fd3d8f290f2cb65efbeab057710fc314bfa
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
data/org.tizen.bt-syspopup.xml
src/bt-syspopup-m.c

index ab3f893..db6aa7c 100644 (file)
@@ -9,5 +9,7 @@
        </ui-application>
        <privileges>
                <privilege>http://tizen.org/privilege/window.priority.set</privilege>
+        <privilege>http://tizen.org/privilege/bluetooth</privilege>
+        <privilege>http://tizen.org/privilege/bluetooth.admin</privilege>
        </privileges>
 </manifest>
index e0a74e5..3e62e09 100644 (file)
@@ -31,6 +31,7 @@
 #include <E_DBus.h>
 #include <aul.h>
 #include <bluetooth.h>
+#include <bluetooth_internal.h>
 #include <feedback.h>
 #include "bt-syspopup-m.h"
 #include <notification.h>
@@ -677,13 +678,19 @@ static void __bluetooth_passkey_confirm_cb(void *data,
        const char *event = elm_object_text_get(obj);
 
        if (!g_strcmp0(event, BT_STR_CONFIRM)) {
+#if 0
                dbus_g_proxy_call_no_reply(ad->agent_proxy, "ReplyConfirmation",
                                           G_TYPE_UINT, BT_AGENT_ACCEPT,
                                           G_TYPE_INVALID, G_TYPE_INVALID);
+#endif
+               bt_passkey_confirmation_reply(true);
        } else {
+#if 0
                dbus_g_proxy_call_no_reply(ad->agent_proxy, "ReplyConfirmation",
                                           G_TYPE_UINT, BT_AGENT_CANCEL,
                                           G_TYPE_INVALID, G_TYPE_INVALID);
+#endif
+               bt_passkey_confirmation_reply(false);
        }
 
        evas_object_del(obj);