if (ad->popup) {
if (ad->event_type == BT_EVENT_PIN_REQUEST ||
ad->event_type == BT_EVENT_PASSKEY_CONFIRM_REQUEST){
- if (ad->rotation == APP_DEVICE_ORIENTATION_0 ||
- ad->rotation == APP_DEVICE_ORIENTATION_180)
+ if (ad->rotation == BT_ROTATE_0 ||
+ ad->rotation == BT_ROTATE_180)
elm_layout_file_set(elm_object_content_get(ad->popup),
CUSTOM_POPUP_PATH, "passwd_popup");
else
{
FN_START;
retvm_if(!ad, PLAYER_ERROR_INVALID_PARAMETER, "invalid parameter");
- int result;
char *path = NULL;
player_state_e state = PLAYER_STATE_NONE;
sound_stream_info_h *stream_info = &ad->stream_info;
ecore_job_add(__bluetooth_player_start_job_cb, ad);
FN_END;
+ return ret;
}
static void __bluetooth_parse_event(struct bt_popup_appdata *ad, const char *event_type)
struct bt_popup_appdata *ad = (struct bt_popup_appdata *)data;
char *input_text = NULL;
char *convert_input_text = NULL;
- char *output_text = NULL;
int text_length = 0;
input_text = (char *)elm_entry_entry_get(obj);
static void __bluetooth_keyback_auth_cb(void *data,
Evas *e, Evas_Object *obj, void *event_info)
{
+#if 0
Evas_Event_Key_Down *ev = event_info;
struct bt_popup_appdata *ad = data;
DBusMessage *msg = NULL;
int response = BT_AGENT_REJECT;
+#endif
BT_DBG("Keyboard event callback function is called + ");
Evas *e, Evas_Object *obj, void *event_info)
{
Evas_Event_Key_Down *ev = event_info;
+#if 0
struct bt_popup_appdata *ad = data;
+#endif
BT_DBG("Keyboard event callback function is called %s+ ", ev->keyname);
#if 0
Evas *e, Evas_Object *obj, void *event_info)
{
FN_START;
+#if 0
Evas_Event_Key_Down *ev = event_info;
struct bt_popup_appdata *ad = data;
int response = BT_AGENT_CANCEL;
char *input_text = NULL;
char *convert_input_text = NULL;
-#if 0
if (!strcmp(ev->keyname, KEY_BACK)) {
if (ad == NULL)
return;
Evas_Object *entry = NULL;
Evas_Object *layout = NULL;
- Evas_Object *button = NULL;
struct bt_popup_appdata *ad = data;
static Elm_Entry_Filter_Limit_Size limit_filter_data;
(void *data, Evas_Object *obj, void *event_info))
{
FN_START;
- Evas_Object *conformant = NULL;
- Evas_Object *content = NULL;
Evas_Object *layout = NULL;
Evas_Object *passpopup = NULL;
- Evas_Object *label = NULL;
- Evas_Object *entry = NULL;
- Evas_Object *check = NULL;
Evas_Object *l_button = NULL;
Evas_Object *r_button = NULL;
- Ecore_IMF_Context *imf_context;
- static Elm_Entry_Filter_Limit_Size limit_filter_data;
Evas_Object *genlist = NULL;
Elm_Object_Item *git = NULL;
char *btn2_text, void (*func) (void *data,
Evas_Object *obj, void *event_info))
{
- char temp_str[BT_TITLE_STR_MAX_LEN + BT_TEXT_EXTRA_LEN] = { 0 };
Evas_Object *layout = NULL;
Evas_Object *btn1 = NULL;
Evas_Object *btn2 = NULL;
evas_object_del(obj);
}
-static void
-__bluetooth_popup_timeout_cb(void *data, Evas_Object *obj, void *event_info)
-{
- FN_START;
- if(obj)
- evas_object_del(obj);
-}
-
static void __bluetooth_draw_toast_popup(struct bt_popup_appdata *ad, char *toast_text)
{
FN_START;
"%s", BT_STR_BLUETOOTH_PAIRING_REQUEST);
snprintf(text, BT_GLOBALIZATION_STR_LENGTH,
- BT_STR_ENTER_THE_PIN_TO_PAIR, conv_str);
+ "%s%s", BT_STR_ENTER_THE_PIN_TO_PAIR, conv_str);
if (conv_str)
free(conv_str);
if (device_name && passkey) {
snprintf(view_title, BT_TITLE_STR_MAX_LEN,
- BT_STR_CONFIRM_PASSKEY_PS_TO_PAIR_WITH_PS,
+ "%s%s%s", BT_STR_CONFIRM_PASSKEY_PS_TO_PAIR_WITH_PS,
passkey, device_name);
BT_INFO("title: %s", view_title);
"%s", BT_STR_BLUETOOTH_PAIRING_REQUEST);
snprintf(text, BT_GLOBALIZATION_STR_LENGTH,
- BT_STR_ENTER_THE_PIN_TO_PAIR, conv_str);
+ "%s%s", BT_STR_ENTER_THE_PIN_TO_PAIR, conv_str);
if (conv_str)
free(conv_str);
if (device_name && passkey) {
snprintf(view_title, BT_TITLE_STR_MAX_LEN,
- BT_STR_ENTER_PS_ON_PS_TO_PAIR, passkey, device_name);
+ "%s%s%s", BT_STR_ENTER_PS_ON_PS_TO_PAIR, passkey, device_name);
BT_INFO("title: %s", view_title);
conv_str = elm_entry_utf8_to_markup(device_name);
snprintf(view_title, BT_TITLE_STR_MAX_LEN,
- BT_STR_ALLOW_PS_TO_CONNECT_Q, conv_str);
+ "%s%s", BT_STR_ALLOW_PS_TO_CONNECT_Q, conv_str);
if (conv_str)
free(conv_str);
if (device_name) {
snprintf(view_title, BT_TITLE_STR_MAX_LEN,
- BT_STR_RECEIVE_PS_FROM_PS_Q, file, device_name);
+ "%s%s%s", BT_STR_RECEIVE_PS_FROM_PS_Q, file, device_name);
}
__bluetooth_draw_popup(ad, BT_STR_RECEIVE_FILE, view_title, BT_STR_CANCEL, BT_STR_OK,
BT_ERR("bundle_get_str() is failed : %d\n", ret);
snprintf(view_title, BT_TITLE_STR_MAX_LEN,
- BT_STR_OVERWRITE_FILE_Q, file);
+ "%s%s", BT_STR_OVERWRITE_FILE_Q, file);
__bluetooth_draw_popup(ad, BT_STR_RECEIVE_FILE, view_title,
BT_STR_CANCEL, BT_STR_OK,
if (device_name && passkey) {
snprintf(view_title, BT_TITLE_STR_MAX_LEN,
- BT_STR_ENTER_PS_ON_PS_TO_PAIR, passkey, device_name);
+ "%s%s%s", BT_STR_ENTER_PS_ON_PS_TO_PAIR, passkey, device_name);
BT_INFO("title: %s", view_title);
if (device_name) {
snprintf(view_title, BT_TITLE_STR_MAX_LEN,
- BT_STR_WANTS_TO_SEND_YOU_A_FILE, device_name);
+ "%s%s", BT_STR_WANTS_TO_SEND_YOU_A_FILE, device_name);
}
__bluetooth_draw_popup(ad, BT_STR_RECEIVE_FILE,
#ifdef TIZEN_REDWOOD
snprintf(view_title, BT_TITLE_STR_MAX_LEN,
- BT_STR_ALLOW_PS_PHONEBOOK_ACCESS_Q, conv_str);
+ "%s%s", BT_STR_ALLOW_PS_PHONEBOOK_ACCESS_Q, conv_str);
#else
snprintf(view_title, BT_TITLE_STR_MAX_LEN,
- BT_STR_PS_CONTACT_REQUEST, conv_str);
+ "%s%s", BT_STR_PS_CONTACT_REQUEST, conv_str);
#endif
if (conv_str)
#ifdef TIZEN_REDWOOD
snprintf(view_title, BT_TITLE_STR_MAX_LEN,
- BT_STR_ALLOW_PS_TO_ACCESS_MESSAGES_Q, conv_str);
+ "%s%s", BT_STR_ALLOW_PS_TO_ACCESS_MESSAGES_Q, conv_str);
#else
snprintf(view_title, BT_TITLE_STR_MAX_LEN,
- BT_STR_PS_MESSAGE_REQUEST, conv_str);
+ "%s%s", BT_STR_PS_MESSAGE_REQUEST, conv_str);
#endif
if (conv_str)
if (device_name)
conv_str = elm_entry_utf8_to_markup(device_name);
snprintf(view_title, BT_TITLE_STR_MAX_LEN,
- BT_STR_UNABLE_TO_PAIR, conv_str);
+ "%s%s", BT_STR_UNABLE_TO_PAIR, conv_str);
if (conv_str)
free(conv_str);
if (device_name)
conv_str = elm_entry_utf8_to_markup(device_name);
snprintf(text, BT_GLOBALIZATION_STR_LENGTH,
- BT_STR_UNABLE_TO_PAIR, conv_str);
+ "%s%s", BT_STR_UNABLE_TO_PAIR, conv_str);
if (conv_str)
free(conv_str);
DBusGConnection *conn = NULL;
GError *err = NULL;
+#if 0
g_type_init();
+#endif
conn = dbus_g_bus_get(DBUS_BUS_SYSTEM, &err);
{
retm_if(NULL == key, "key is NULL");
retm_if(NULL == data, "data is NULL");
+#if 0
struct bt_popup_appdata *ad = data;
-
char *vconf_name = vconf_keynode_get_name(key);
-// if (!g_strcmp0(vconf_name, VCONFKEY_IDLE_LOCK_STATE) &&
-// ad->popup)
-// __bluetooth_set_win_level(ad->popup);
+ if (!g_strcmp0(vconf_name, VCONFKEY_IDLE_LOCK_STATE) &&
+ ad->popup)
+ __bluetooth_set_win_level(ad->popup);
+#endif
}
static bool __bluetooth_create(void *data)