apply FSL(Flora Software License)
[apps/core/preloaded/settings.git] / setting-about / include / setting-about.h
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   *
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
7   *
8   *     http://www.tizenopensource.org/license
9   *
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.
15   */
16
17
18 #ifndef __SETTING_ABOUT_H__
19 #define __SETTING_ABOUT_H__
20
21 #include <stdio.h>
22 #include <appcore-efl.h>
23 #include <Elementary.h>
24 #include <ITapiSim.h>
25
26 #include <glib-object.h>
27
28 #include <ui-gadget.h>
29 #include <ui-gadget-module.h>
30 #include <bundle.h>
31 #include <iniparser.h>
32
33 #include <setting-common-draw-widget.h>
34 #include <setting-common-view.h>
35
36 #define MAX_DISPLAY_STR_LEN_ON_PHONE_INFO       256
37 #define BT_MAC_LEN                              14
38
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."
41
42 #define SETTING_ABOUT_MY_NUMBERS_LEN 5
43 #define SETTING_ABOUT_WIFI_MAC_STR_LEN 17
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         struct ui_gadget *ug;
54
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;
63
64         /* add more variables here (move your appdata to here) */
65         Evas *evas;
66         Evas_Object *win_main_layout;
67         Evas_Object *win_get;
68
69         struct ui_gadget *ug_loading;
70
71         Evas_Object *navi_bar;
72         Evas_Object *ly_main;
73         Evas_Object *genlsit;
74
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;
79         Evas_Object *popup;
80         Evas_Object *progress_bar;
81         bool empty_flag;
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*/
85 };
86
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,
90                                   void *priv);
91
92 #endif                          /* __SETTING_ABOUT_H__ */