#include <Elementary.h>
#include <unicode/umachine.h>
#include "worldclock.h"
+#include <system_info.h>
+
+typedef enum {
+ TIZEN_PROFILE_UNKNOWN = 0,
+ TIZEN_PROFILE_MOBILE = 0x1,
+ TIZEN_PROFILE_WEARABLE = 0x2,
+ TIZEN_PROFILE_TV = 0x4,
+ TIZEN_PROFILE_IVI = 0x8,
+ TIZEN_PROFILE_COMMON = 0x10,
+} tizen_profile_t;
+
+extern tizen_profile_t _get_tizen_profile();
+#define _MOBILE (_get_tizen_profile() == TIZEN_PROFILE_MOBILE)
+#define _COMMON (_get_tizen_profile() == TIZEN_PROFILE_COMMON)
/**
* Compare the city name of two cities
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(capi-appfw-application)
+BuildRequires: pkgconfig(capi-system-info)
%description
This is application for configuration time zone of device
notification
libtzplatform-config
capi-appfw-application
+ capi-system-info
)
FOREACH(flag ${pkgs_CFLAGS})
.func.state_get = NULL,
.func.del = NULL,
};
+
#endif
static Elm_Genlist_Item_Class g_ts = {
.func.del = NULL,
};
-
static void _ugview_clear_data(void *data)
{
CLK_FUN_BEG();
}
if (match) {
/* append data to genlist */
+ if(_COMMON)
+ g_ts.item_style = "1line";
+
gli = elm_genlist_item_append(ad->add_genlist, &g_ts, cs, /* item data */
NULL, /* parent */
ELM_GENLIST_ITEM_NONE, _gl_item_selected_cb, /* func */
Wcl_Addlist_Sort_Type index = WCL_SORT_BY_NAME;
for (index = WCL_SORT_BY_NAME; index < WCL_UNKNOW_SORT_TYPE; index++) {
+ if(_COMMON)
+ itc_sort.item_style = "1line";
elm_genlist_item_append(genlist, &itc_sort, (void *)index, NULL,
ELM_GENLIST_ITEM_NONE, _sort_gl_clicked_cb, (void *)ad);
}
static char *_edgePath = NULL;
static char *_localePath = NULL;
+tizen_profile_t _get_tizen_profile()
+{
+ static tizen_profile_t profile = TIZEN_PROFILE_UNKNOWN;
+ if (__builtin_expect(profile != TIZEN_PROFILE_UNKNOWN, 1))
+ return profile;
+
+ char *profileName;
+ system_info_get_platform_string("http://tizen.org/feature/profile", &profileName);
+ switch (*profileName) {
+ case 'm':
+ case 'M':
+ profile = TIZEN_PROFILE_MOBILE;
+ break;
+ case 'w':
+ case 'W':
+ profile = TIZEN_PROFILE_WEARABLE;
+ break;
+ case 't':
+ case 'T':
+ profile = TIZEN_PROFILE_TV;
+ break;
+ case 'i':
+ case 'I':
+ profile = TIZEN_PROFILE_IVI;
+ break;
+ default: // common or unknown ==> ALL ARE COMMON.
+ profile = TIZEN_PROFILE_COMMON;
+ }
+
+ free(profileName);
+ return profile;
+}
+
/**
* Compare the city name of two cities
*