update license verison number 1.0 -> 1.1
[apps/home/settings.git] / setting-about / include / setting-about.h
1 /*
2  * setting
3  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Flora License, Version 1.1 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://floralicense.org/license/
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 #ifndef __SETTING_ABOUT_H__
18 #define __SETTING_ABOUT_H__
19
20 #include <stdio.h>
21 #include <Elementary.h>
22 #include <ITapiSim.h>
23
24 #include <glib-object.h>
25
26 // #include <mobileap_lib.h>
27
28 #include <setting-common-draw-widget.h>
29 #include <setting-common-view.h>
30
31 #include <TapiUtility.h>
32 #include <tapi_common.h>
33 #include <ITapiSim.h>
34
35 #define MAX_DISPLAY_STR_LEN_ON_PHONE_INFO       256
36
37 #define SETTING_ABOUT_PROGRESSBAR_TIMEOUT 10
38 //#define SETTING_ABOUT_MOBILE_AP_TURNED_OFF "Mobile hotspot will be turned off."
39 #define SETTING_ABOUT_MOBILE_AP_TURNED_OFF "Wi-Fi hotspot will be turned off if Device name is changed."
40
41 #define SETTING_ABOUT_MY_NUMBERS_LEN 3
42 #define SETTING_ABOUT_WIFI_MAC_STR_LEN 17
43 #define SETTING_ABOUT_DEFAULT_DEVICE_NAME       "Tizen"
44
45 typedef struct _SettingAboutUG SettingAboutUG;
46
47 /**
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.
51  */
52 struct _SettingAboutUG {
53         ui_gadget_h ug;
54         TapiHandle *handle;
55         bool tapi_responsed;
56         bool pause_flag;
57
58         setting_view *view_to_load;
59
60         Elm_Genlist_Item_Class itc_1text;
61         Elm_Genlist_Item_Class itc_2text_2;
62         Elm_Genlist_Item_Class itc_seperator;
63         Elm_Genlist_Item_Class itc_group_item;
64         Elm_Genlist_Item_Class itc_2text_3_parent;
65         Elm_Genlist_Item_Class itc_1icon_1text_sub;
66         Elm_Genlist_Item_Class itc_help_style;
67
68         /* add more variables here (move your appdata to here) */
69         Evas *evas;
70         Evas_Object *win_main_layout;
71         Evas_Object *win_get;
72
73         ui_gadget_h ug_loading;
74
75         Evas_Object *navi_bar;
76         Evas_Object *ly_main;
77         Evas_Object *genlsit;
78         Elm_Object_Item *navi_item;
79
80         Ecore_Timer *update_timer;
81         Setting_GenGroupItem_Data *item_dev_name;
82         Setting_GenGroupItem_Data *item_data_cpu;
83         Setting_GenGroupItem_Data *item_data_battery;
84         Setting_GenGroupItem_Data *item_data_bt;
85         Setting_GenGroupItem_Data *item_data_wifi;
86         Evas_Object *popup;
87         bool empty_flag;
88         //char *my_numbers[SETTING_ABOUT_MY_NUMBERS_LEN];
89         TelSimMsisdnList_t my_numbers;
90         bool popup_showed_flag; /** if popup has been showed, do not show again*/
91 };
92
93 extern setting_view setting_view_about_main;
94 extern int setting_about_generate_genlist(void *data);
95 void setting_about_layout_ug_cb(ui_gadget_h ug, enum ug_mode mode, void *priv);
96 void setting_about_main_exp_cb(void *data, Evas_Object *obj, void *event_info);
97
98 #endif                          /* __SETTING_ABOUT_H__ */