#include "bt-share-ui-widget.h"
#define BT_ADDRESS_LENGTH_MAX 6
-#define DBUS_CORE_APPS_PATH "/Org/Tizen/Coreapps/home/raise"
-#define DBUS_CORE_APPS_INTERFACE "org.tizen.coreapps.home.raise"
-#define DBUS_CORE_APPS_MEMBER "homeraise"
static gboolean opc_launched_session;
DBG("-");
}
-static void __handle_home_key_signal(void *data, DBusMessage *msg)
-{
- const char *member;
-
- retm_if(data == NULL, "Invalid argument: data is NULL");
- retm_if(msg == NULL, "Invalid argument: msg is NULL");
-
- member = dbus_message_get_member(msg);
- retm_if(member == NULL, "member value is NULL");
-
- if (dbus_message_get_type(msg) != DBUS_MESSAGE_TYPE_SIGNAL)
- return;
-
- if (!dbus_message_has_interface(msg, DBUS_CORE_APPS_INTERFACE) ||
- !dbus_message_has_path(msg, DBUS_CORE_APPS_PATH))
- return;
-
- DBG("Received signal : %s", member);
-
- if (strcasecmp(member, DBUS_CORE_APPS_MEMBER) == 0)
- _bt_terminate_app();
-}
-
static void __bt_add_tr_data_list(bt_share_appdata_t *ad, int transfer_type)
{
GSList *list = NULL;
retm_if(sh == NULL, "Disconnected Event register failed\n");
ad->server_disconnected_sh = sh;
- sh = e_dbus_signal_handler_add(conn,
- NULL,
- DBUS_CORE_APPS_PATH,
- DBUS_CORE_APPS_INTERFACE,
- DBUS_CORE_APPS_MEMBER,
- __handle_home_key_signal, ad);
- retm_if(sh == NULL, "Connect Event register failed");
- ad->app_core_sh = sh;
-
ad->dbus_conn = conn;
return;
e_dbus_signal_handler_del(ad->dbus_conn, ad->update_sh);
ad->update_sh = NULL;
}
- if (ad->app_core_sh) {
- e_dbus_signal_handler_del(ad->dbus_conn, ad->app_core_sh);
- ad->app_core_sh = NULL;
- }
+
return;
}