#include <bluetooth.h>
#include <bluetooth_internal.h>
#include <bundle_internal.h>
+#include <system_info.h>
bt_share_appdata_t *app_state = NULL;
bt_share_appdata_t app_data = {0,};
+tizen_profile_t _get_tizen_profile()
+{
+ static tizen_profile_t profile = _PROFILE_UNKNOWN;
+ char *profileName = NULL;
+
+ if (__builtin_expect(profile != _PROFILE_UNKNOWN, 1))
+ return profile;
+
+ system_info_get_platform_string("http://tizen.org/feature/profile", &profileName);
+ if (!profileName)
+ return _PROFILE_UNKNOWN;
+
+ switch (*profileName) {
+ case 'm':
+ case 'M':
+ profile = _PROFILE_MOBILE;
+ break;
+ case 'w':
+ case 'W':
+ profile = _PROFILE_WEARABLE;
+ break;
+ case 't':
+ case 'T':
+ profile = _PROFILE_TV;
+ break;
+ case 'i':
+ case 'I':
+ if (!strncasecmp(profileName, "ivi", 3))
+ profile = _PROFILE_IVI;
+ else if (!strncasecmp(profileName, "iot", 3))
+ profile = _PROFILE_IOT;
+ else
+ profile = _PROFILE_COMMON;
+ break;
+ default: // common or unknown ==> ALL ARE COMMON.
+ profile = _PROFILE_COMMON;
+ }
+ free(profileName);
+
+ return profile;
+}
+
static void __bt_lang_changed_cb(app_event_info_h event_info, void *data)
{
DBG("+");
ERR("Error in setting layout file");
#endif
icon = elm_progressbar_add(obj);
- elm_object_style_set(icon, "process_medium");
+
+ if (TIZEN_COMMON)
+ elm_object_style_set(icon, "process_small");
+ else
+ elm_object_style_set(icon, "process_medium");
+
evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, 0.5);
evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_progressbar_pulse(icon, TRUE);
return icon;
} else if (info->tr_status == BT_TRANSFER_PENDING) {
icon = elm_progressbar_add(obj);
- elm_object_style_set(icon, "process_medium");
+
+ if (TIZEN_COMMON)
+ elm_object_style_set(icon, "process_small");
+ else
+ elm_object_style_set(icon, "process_medium");
+
evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, 0.5);
evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_progressbar_pulse(icon, TRUE);
retv_if(ad->transfer_info == NULL, NULL);
- if (!strcmp(part, BT_SHARE_ITEM_PART_DEVICE_NAME_TITLE)) {
+ if (!strcmp(part, BT_SHARE_ITEM_PART_DEVICE_NAME_TITLE) ||
+ !strcmp(part, BT_SHARE_ITEM_PART_DEVICE_NAME_TITLE_COMMON)) {
return g_strdup(BT_STR_DEVICENAME);
- } else if (!strcmp(part, BT_SHARE_ITEM_PART_DEVICE_NAME)) {
+ } else if (!strcmp(part, BT_SHARE_ITEM_PART_DEVICE_NAME) ||
+ !strcmp(part, BT_SHARE_ITEM_PART_DEVICE_NAME_COMMON)) {
bt_share_transfer_data_t *transfer_info = ad->transfer_info;
DBG_SECURE("Device : %s", transfer_info->device_name);
if (ad->bt_status == BT_ADAPTER_ENABLED) {
elm_genlist_homogeneous_set(genlist, EINA_TRUE);
ad->tr_device_itc = elm_genlist_item_class_new();
if (ad->tr_device_itc) {
- ad->tr_device_itc->item_style = "type1";
+ if (TIZEN_COMMON)
+ ad->tr_device_itc->item_style = "2line";
+ else
+ ad->tr_device_itc->item_style = "type1";
+
ad->tr_device_itc->func.text_get = __bt_tr_device_label_get;
ad->tr_device_itc->func.content_get = NULL;
ad->tr_device_itc->func.state_get = NULL;