2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef __SETTING_ABOUT_H__
19 #define __SETTING_ABOUT_H__
22 #include <appcore-efl.h>
23 #include <Elementary.h>
26 #include <glib-object.h>
28 #include <ui-gadget.h>
29 #include <ui-gadget-module.h>
31 #include <iniparser.h>
33 #include <setting-common-draw-widget.h>
34 #include <setting-common-view.h>
36 #define MAX_DISPLAY_STR_LEN_ON_PHONE_INFO 256
39 #define SETTING_ABOUT_PROGRESSBAR_TIMEOUT 10
40 #define SETTING_ABOUT_MOBILE_AP_TURNED_OFF "Wi-Fi hotspot will be turned off if Device name is changed."
42 #define SETTING_ABOUT_MY_NUMBERS_LEN 5
43 #define SETTING_ABOUT_WIFI_MAC_STR_LEN 17
45 typedef struct _SettingAboutUG SettingAboutUG;
48 * Setting About UG context
49 * all UG function has void* as an agument. this is casted back to SettingAboutUG
50 * and the functions access app context.
52 struct _SettingAboutUG {
55 Elm_Genlist_Item_Class itc_1text;
56 Elm_Genlist_Item_Class itc_1icon;
57 Elm_Genlist_Item_Class itc_2text_2;
58 Elm_Genlist_Item_Class itc_seperator;
59 Elm_Genlist_Item_Class itc_group_item;
60 Elm_Genlist_Item_Class itc_2text_3_parent;
61 Elm_Genlist_Item_Class itc_1icon_1text_sub;
62 Elm_Genlist_Item_Class itc_help_style;
64 /* add more variables here (move your appdata to here) */
66 Evas_Object *win_main_layout;
69 struct ui_gadget *ug_loading;
71 Evas_Object *navi_bar;
75 Ecore_Timer *update_timer;
76 Setting_GenGroupItem_Data *item_dev_name;
77 Setting_GenGroupItem_Data *item_data_cpu;
78 Setting_GenGroupItem_Data *item_data_battery;
80 Evas_Object *progress_bar;
82 char *my_numbers[SETTING_ABOUT_MY_NUMBERS_LEN];
83 int my_number_sel_idx;
84 bool popup_showed_flag; /** if popup has been showed, do not show again*/
87 extern setting_view setting_view_about_main;
88 extern setting_view setting_view_about_licences;
89 void setting_about_layout_ug_cb(struct ui_gadget *ug, enum ug_mode mode,
92 #endif /* __SETTING_ABOUT_H__ */