BuildRequires: pkgconfig(devman_haptic)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(bluetooth-api)
+BuildRequires: pkgconfig(feedback)
BuildRequires: sysman-internal-devel
BuildRequires: edje-tools
%build
+export CFLAGS+=" -fpie -fvisibility=hidden"
+export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
cmake . -DCMAKE_INSTALL_PREFIX=%{_appdir}/org.tizen.bt-syspopup
make %{?jobs:-j%jobs}
#include <E_DBus.h>
#include <aul.h>
#include <bluetooth-api.h>
+#include <feedback.h>
#include "bt-syspopup.h"
}
}
+static void __bluetooth_notify_event(void)
+{
+ int result;
+
+ BT_DBG("Notify event");
+
+ result = feedback_initialize();
+ if (result != FEEDBACK_ERROR_NONE) {
+ BT_ERR("feedback_initialize error : %d", result);
+ return;
+ }
+
+ result = feedback_play(FEEDBACK_PATTERN_GENERAL);
+ BT_DBG("ret value : %d", result);
+
+ result = feedback_deinitialize();
+ if (result != FEEDBACK_ERROR_NONE) {
+ BT_DBG("feedback_initialize error : %d", result);
+ return;
+ }
+}
+
static void __bluetooth_parse_event(struct bt_popup_appdata *ad, const char *event_type)
{
if (!strcasecmp(event_type, "pin-request"))
case BT_EVENT_PASSKEY_REQUEST:
dbus_g_proxy_call_no_reply(ad->agent_proxy,
- "ReplyPassKey",
+ "ReplyPasskey",
G_TYPE_UINT, BT_AGENT_CANCEL,
G_TYPE_STRING, "", G_TYPE_INVALID,
G_TYPE_INVALID);
G_TYPE_INVALID);
} else {
dbus_g_proxy_call_no_reply(ad->agent_proxy,
- "ReplyPassKey",
+ "ReplyPasskey",
G_TYPE_UINT, BT_AGENT_ACCEPT,
G_TYPE_STRING,
convert_input_text,
G_TYPE_INVALID);
} else {
dbus_g_proxy_call_no_reply(ad->agent_proxy,
- "ReplyPassKey",
+ "ReplyPasskey",
G_TYPE_UINT, BT_AGENT_CANCEL,
G_TYPE_STRING, "",
G_TYPE_INVALID,
{
struct bt_popup_appdata *ad = data;
+ __bluetooth_ime_hide();
+
if (ad->conn) {
dbus_g_connection_unref(ad->conn);
ad->conn = NULL;
if (ret != 0)
__bluetooth_remove_all_event(ad);
+ __bluetooth_notify_event();
+
/* Change LCD brightness */
ret = pm_change_state(LCD_NORMAL);
if (ret != 0)
return 0;
}
-int main(int argc, char *argv[])
+EXPORT int main(int argc, char *argv[])
{
struct bt_popup_appdata ad;
struct appcore_ops ops = {