char tmp[BT_GLOBALIZATION_STR_LENGTH] = { 0 };
char *name = NULL;
char *markup_text = NULL;
+ char *stms_str = NULL;
if (info->file_path == NULL) {
ERR("Invalid data");
elm_object_part_text_set(popup, "title,text", BT_STR_SENT_FILES);
char file_size_str[BT_FILE_SIZE_STR] = { 0 };
- snprintf(msg, sizeof(msg), BT_STR_TO_S, info->dev_name);
+ stms_str = BT_STR_TO_S;
+ snprintf(msg, sizeof(msg), stms_str, info->dev_name);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
name = strrchr(info->file_path, '/');
else
name = info->file_path;
- snprintf(tmp, sizeof(tmp), BT_STR_FILE_S, name);
+ stms_str = BT_STR_FILE_S;
+ snprintf(tmp, sizeof(tmp), stms_str, name);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
snprintf(file_size_str, sizeof(file_size_str),
"%dKB", info->size / 1024);
- snprintf(tmp, sizeof(tmp), BT_STR_FILE_SIZE_S, file_size_str);
+ stms_str = BT_STR_FILE_SIZE_S;
+ snprintf(tmp, sizeof(tmp), stms_str, file_size_str);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
markup_text = elm_entry_utf8_to_markup(msg);
elm_object_part_text_set(popup, "title,text", BT_STR_RECEIVED_FILES);
char file_size_str[BT_FILE_SIZE_STR] = { 0 };
- snprintf(msg, sizeof(msg), BT_STR_FROM_S, info->dev_name);
+ stms_str = BT_STR_FROM_S;
+ snprintf(msg, sizeof(msg), stms_str, info->dev_name);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
name = strrchr(info->file_path, '/');
else
name = info->file_path;
- snprintf(tmp, sizeof(tmp), BT_STR_FILE_S, name);
+ stms_str = BT_STR_FILE_S;
+ snprintf(tmp, sizeof(tmp), stms_str, name);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
snprintf(file_size_str, sizeof(file_size_str),
"%dKB", info->size / 1024);
- snprintf(tmp, sizeof(tmp), BT_STR_FILE_SIZE_S, file_size_str);
+ stms_str = BT_STR_FILE_SIZE_S;
+ snprintf(tmp, sizeof(tmp), stms_str, file_size_str);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
markup_text = elm_entry_utf8_to_markup(msg);
g_strlcat(msg, BT_STR_FILE_NOT_RECV, BT_GLOBALIZATION_STR_LENGTH);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
- snprintf(tmp, sizeof(tmp), BT_STR_FILE_S, info->file_path);
+ stms_str = BT_STR_FILE_S;
+ snprintf(tmp, sizeof(tmp), stms_str, info->file_path);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
markup_text = elm_entry_utf8_to_markup(msg);
g_strlcat(msg, BT_STR_FILE_NOT_EXIST, BT_GLOBALIZATION_STR_LENGTH);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
- snprintf(tmp, sizeof(tmp), BT_STR_FILE_S, info->file_path);
+ stms_str = BT_STR_FILE_S;
+ snprintf(tmp, sizeof(tmp), stms_str, info->file_path);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
markup_text = elm_entry_utf8_to_markup(msg);
} else if (type == BT_FT_RETRY_POPUP) {
elm_object_part_text_set(popup, "title,text", BT_STR_UNABLE_TO_SEND_FILES);
- snprintf(msg, sizeof(msg), BT_STR_SEND_FAIL_TO_S, info->dev_name);
+ stms_str = BT_STR_SEND_FAIL_TO_S;
+ snprintf(msg, sizeof(msg), stms_str, info->dev_name);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
name = strrchr(info->file_path, '/');
else
name = info->file_path;
- snprintf(tmp, sizeof(tmp), BT_STR_FILE_S, name);
+ stms_str = BT_STR_FILE_S;
+ snprintf(tmp, sizeof(tmp), stms_str, name);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
markup_text = elm_entry_utf8_to_markup(msg);
char tmp[BT_GLOBALIZATION_STR_LENGTH] = { 0 };
char *name = NULL;
char *markup_text = NULL;
+ char *stms_str = NULL;
Evas_Object *btn1 = NULL;
if (ad->ft_type == BT_FT_SENT_POPUP) {
elm_object_part_text_set(ad->ft_popup, "title,text", BT_STR_SENT_FILES);
char file_size_str[BT_FILE_SIZE_STR] = { 0 };
- snprintf(msg, sizeof(msg), BT_STR_FROM_S, ad->ft_info->dev_name);
+ stms_str = BT_STR_FROM_S;
+ snprintf(msg, sizeof(msg), stms_str, ad->ft_info->dev_name);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
name = strrchr(ad->ft_info->file_path, '/');
else
name = ad->ft_info->file_path;
- snprintf(tmp, sizeof(tmp), BT_STR_FILE_S, name);
+ stms_str = BT_STR_FILE_S;
+ snprintf(tmp, sizeof(tmp), stms_str, name);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
snprintf(file_size_str, sizeof(file_size_str),
"%dKB", ad->ft_info->size / 1024);
- snprintf(tmp, sizeof(tmp), BT_STR_FILE_SIZE_S, file_size_str);
+ stms_str = BT_STR_FILE_SIZE_S;
+ snprintf(tmp, sizeof(tmp), stms_str, file_size_str);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
markup_text = elm_entry_utf8_to_markup(msg);
elm_object_part_text_set(ad->ft_popup, "title,text", BT_STR_RECEIVED_FILES);
char file_size_str[BT_FILE_SIZE_STR] = { 0 };
- snprintf(msg, sizeof(msg), BT_STR_FROM_S, ad->ft_info->dev_name);
+ stms_str = BT_STR_FROM_S;
+ snprintf(msg, sizeof(msg), stms_str, ad->ft_info->dev_name);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
name = strrchr(ad->ft_info->file_path, '/');
else
name = ad->ft_info->file_path;
- snprintf(tmp, sizeof(tmp), BT_STR_FILE_S, name);
+ stms_str = BT_STR_FILE_S;
+ snprintf(tmp, sizeof(tmp), stms_str, name);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
snprintf(file_size_str, sizeof(file_size_str),
"%dKB", ad->ft_info->size / 1024);
- snprintf(tmp, sizeof(tmp), BT_STR_FILE_SIZE_S, file_size_str);
+ stms_str = BT_STR_FILE_SIZE_S;
+ snprintf(tmp, sizeof(tmp), stms_str, file_size_str);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
markup_text = elm_entry_utf8_to_markup(msg);
g_strlcat(msg, BT_STR_FILE_NOT_RECV, BT_GLOBALIZATION_STR_LENGTH);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
- snprintf(tmp, sizeof(tmp), BT_STR_FILE_S, ad->ft_info->file_path);
+ stms_str = BT_STR_FILE_S;
+ snprintf(tmp, sizeof(tmp), stms_str, ad->ft_info->file_path);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
- snprintf(tmp, sizeof(tmp), BT_STR_FAIL_S, BT_STR_TR_CANCELLED);
+ stms_str = BT_STR_FAIL_S;
+ snprintf(tmp, sizeof(tmp), stms_str, BT_STR_TR_CANCELLED);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
markup_text = elm_entry_utf8_to_markup(msg);
g_strlcat(msg, BT_STR_FILE_NOT_EXIST, BT_GLOBALIZATION_STR_LENGTH);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
- snprintf(tmp, sizeof(tmp), BT_STR_FILE_S, ad->ft_info->file_path);
+ stms_str = BT_STR_FILE_S;
+ snprintf(tmp, sizeof(tmp), stms_str, ad->ft_info->file_path);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
markup_text = elm_entry_utf8_to_markup(msg);
} else if (ad->ft_type == BT_FT_RETRY_POPUP) {
elm_object_part_text_set(ad->ft_popup, "title,text", BT_STR_UNABLE_TO_SEND_FILES);
- snprintf(msg, sizeof(msg), BT_STR_SEND_FAIL_TO_S, ad->ft_info->dev_name);
+ stms_str = BT_STR_SEND_FAIL_TO_S;
+ snprintf(msg, sizeof(msg), stms_str, ad->ft_info->dev_name);
g_strlcat(msg, NEW_LINE, BT_GLOBALIZATION_STR_LENGTH);
name = strrchr(ad->ft_info->file_path, '/');
else
name = ad->ft_info->file_path;
- snprintf(tmp, sizeof(tmp), BT_STR_FILE_S, name);
+ stms_str = BT_STR_FILE_S;
+ snprintf(tmp, sizeof(tmp), stms_str, name);
g_strlcat(msg, tmp, BT_GLOBALIZATION_STR_LENGTH);
markup_text = elm_entry_utf8_to_markup(msg);
#include <app_extension.h>
#endif
#include <notification_list.h>
+#include <notification_internal.h>
#include "applog.h"
#include "bt-share-ui-view.h"
Evas_Object *_bt_create_win(const char *name)
{
Evas_Object *eo = NULL;
- int w;
- int h;
#if 0
eo = (Evas_Object *)app_get_preinitialized_window(name);
if (!db)
return;
- table = ad->tr_type ? BT_DB_INBOUND : BT_DB_OUTBOUND;
+ table = ad->tr_type ? BT_TR_INBOUND : BT_TR_OUTBOUND;
bt_share_remove_all_tr_data(db, table);
bt_share_close_db(db);
notification_get_list(NOTIFICATION_TYPE_NOTI, -1, &list_head);
list_traverse = list_head;
- if (ad->tr_type == BT_DB_INBOUND)
+ if (ad->tr_type == BT_TR_INBOUND)
opp_role = "bluetooth-share-opp-server";
else
opp_role = "bluetooth-share-opp-client";
notification_list_h list_head = NULL;
notification_list_h list_traverse = NULL;
char *app_id = NULL;
+ char *stms_str = NULL;
info = (bt_tr_data_t *)data;
- DBG("Transfer type: %s", ad->tr_type == BT_DB_INBOUND ? "Receive" : "Sent");
+ DBG("Transfer type: %s", ad->tr_type == BT_TR_INBOUND ? "Receive" : "Sent");
db = bt_share_open_db();
if (!db)
return;
- if (ad->tr_type == BT_DB_INBOUND)
+ if (ad->tr_type == BT_TR_INBOUND)
opp_role = "bluetooth-share-opp-server";
else
opp_role = "bluetooth-share-opp-client";
notification_delete_by_priv_id(app_id, NOTIFICATION_TYPE_NOTI, priv_id);
} else {
char str[BT_GLOBALIZATION_STR_LENGTH] = { 0 };
- if (success == 1)
- snprintf(str, sizeof(str), BT_STR_TR_1FILE_COPIED_STATUS, fail);
- else
- snprintf(str, sizeof(str), BT_STR_TR_COPIED_STATUS,
+ if (success == 1) {
+ stms_str = BT_STR_TR_1FILE_COPIED_STATUS;
+ snprintf(str, sizeof(str), stms_str, fail);
+ } else {
+ stms_str = BT_STR_TR_COPIED_STATUS;
+ snprintf(str, sizeof(str), stms_str,
success, fail);
+ }
notification_set_content(noti, str, NULL);
notification_update(noti);
}else {
genlist = __bt_add_tr_data_genlist(ad->tr_view, ad);
- retvm_if (genlist == NULL, -1, "genlist is NULL!");
+ retm_if (genlist == NULL, "genlist is NULL!");
if (ad->tr_genlist) {
DBG("Clear the previous genlist");
FN_END;
}
-static void __bt_clear_btn_del_cb(void *data)
+void __bt_clear_btn_del_cb(void *data, Evas_Object *obj, void *event_info)
{
FN_START;
bt_share_appdata_t *ad = NULL;