[ug-mobile-ap] Remove dead code
[apps/native/ug-mobile-ap.git] / include / mh_common_utility.h
1 /*
2 * ug-mobile-ap
3 *
4 * Copyright 2012  Samsung Electronics Co., Ltd
5
6 * Licensed under the Flora License, Version 1.1 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9
10 * http://www.tizenopensource.org/license
11
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20 #ifndef __APP_MH_COMMON_UTILITY_H_
21 #define __APP_MH_COMMON_UTILITY_H_
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 #include "mobile_hotspot.h"
28 #include "mh_view_main.h"
29
30 #define QP_SIGNAL_PROGRESS_ON   "progress_on"
31 #define QP_SIGNAL_PROGRESS_OFF  "progress_off"
32 #define QP_SIGNAL_PROGRESS_RESET        "progress_reset"
33
34 /* Genlist new style for Tizen 2.4 */
35 #define MH_GENLIST_1LINE_TEXT_STYLE "type1"
36 #define MH_GENLIST_1LINE_TEXT_ICON_STYLE "type1"
37 #define MH_GENLIST_2LINE_TOP_TEXT_STYLE "type1"
38 #define MH_GENLIST_2LINE_TOP_TEXT_ICON_STYLE "type1"
39 #define MH_GENLIST_2LINE_BOTTOM_TEXT_STYLE "type2"
40 #define MH_GENLIST_2LINE_BOTTOM_TEXT_ICON_STYLE "type2"
41 #define MH_GENLIST_MULTILINE_TEXT_STYLE "multiline"
42 #define MH_GENLIST_GROUP_INDEX_STYLE "group_index"
43 #define MH_GENLIST_FULL_CONTENT_STYLE "full"
44
45 Evas_Object *_create_progressbar(Evas_Object *parent, const char *style);
46 Evas_Object *_create_bg(Evas_Object *parent, const char *style);
47 Evas_Object *_create_win_layout(mh_appdata_t *ad);
48 Evas_Object *_create_naviframe(Evas_Object *parent);
49 Evas_Object *_create_button(Evas_Object *parent, const char *text, const char *part,
50                 Evas_Smart_Cb func, void *user_data);
51 void _handle_usb_status_change(keynode_t *key, void *data);
52 int _get_vconf_hotspot_mode(void);
53 Eina_Bool _get_no_of_connected_device(mh_appdata_t *ad, int *no, tethering_type_e type);
54
55 void _append_list_client_handle(mh_appdata_t *ad, tethering_client_h client);
56 void _release_list_client_handle(mh_appdata_t *ad);
57 void _delete_list_client_handle(mh_appdata_t *ad, const char *mac_addr);
58 int _get_list_clients_count(mh_appdata_t *ad);
59 void _get_list_clients_informations(mh_appdata_t *ad);
60 void _free_genlist_item(Elm_Object_Item **item);
61 void _free_genlist_itc(Elm_Genlist_Item_Class **itc);
62 int _get_sim_state(void);
63 connection_cellular_state_e _get_cellular_state(void);
64 int _get_checkbox_status(tethering_type_e type);
65 bool _set_checkbox_status(tethering_type_e type, int value);
66 void _device_name_changed_cb(keynode_t *key, void *data);
67 bool _set_vconf_prev_wifi_state(bool value);
68 bool _get_vconf_prev_wifi_state();
69 void _handle_network_cellular_state_changed_cb(keynode_t *key, void *data);
70 void _handle_mobileap_syspopup_popup_response(keynode_t *key, void *data);
71
72 #ifdef TIZEN_FEATURE_EMULATOR
73 time_t _get_emul_timestamp(tethering_type_e);
74 void __update_emul_clients_genlist(mh_appdata_t *ad);
75 #endif
76
77 #ifdef __cplusplus
78 }
79 #endif
80 #endif