634ce9676d3460dbae69281b49d4157937a48979
[apps/native/ug-mobile-ap.git] / include / mh_view_main.h
1 /*
2 * ug-mobile-ap
3 *
4 * Copyright 2012  Samsung Electronics Co., Ltd
5
6 * Licensed under the Flora License, Version 1.0 (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_VIEW_MAIN_H__
21 #define __APP_MH_VIEW_MAIN_H__
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 #include "mobile_hotspot.h"
28 #include "mh_func_onoff.h"
29 #include "mh_common_utility.h"
30 #include "mh_view_wifi_setup.h"
31
32 #define PKGNAME "ug-setting-mobileap-efl"
33
34 #define MH_UPDATE_INTERVAL      5       /* 5 Sec */
35 #define MH_KB                   (1000LLU)
36 #define MH_MB                   (MH_KB * MH_KB)
37 #define FILE_PATH_OF_EDC "/usr/apps/ug-setting-mobileap-efl/res/edje/ug-setting-mobileap-efl/tethering.edj"
38 #define PS_RECHECK_INTERVAL             500
39 #define PS_RECHECK_COUNT_MAX    5
40
41 void ap_update_data_device(mh_appdata_t *ad);
42
43 #ifdef TETHERING_DATA_USAGE_SUPPORT
44 Eina_Bool ap_update_data_packet_usage(mh_appdata_t *ad);
45 void _start_update_data_packet_usage(mh_appdata_t *ad);
46 void _stop_update_data_packet_usage(mh_appdata_t *ad);
47 #endif
48
49 void _update_wifi_item(mh_appdata_t *ad, int wifi_state);
50 void _update_bt_item(mh_appdata_t *ad, int bt_state);
51 void _update_usb_item(mh_appdata_t *ad, int usb_state);
52 void _update_main_view(mh_appdata_t *ad, tethering_type_e type);
53 void _start_update_device_conn_time(mh_appdata_t *ad);
54 void _stop_update_device_conn_time(mh_appdata_t *ad);
55 void _main_draw_contents(mh_appdata_t *ad);
56 void _main_callback_del(mh_appdata_t *ad);
57 void _main_free_genlist_itc(mh_appdata_t *ad);
58 void _select_connected_dev(void *data, Evas_Object *obj, void *event_info);
59 void _genlist_update_device_item(mh_appdata_t *ad);
60 void _update_conn_clients(mh_appdata_t *ad);
61 void _create_connected_client_view(mh_appdata_t *ad);
62
63 #ifdef __cplusplus
64 }
65 #endif
66 #endif