New winset change is applied and some bugs are fixed
[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 MH_UPDATE_INTERVAL      5       /* 5 Sec */
33 #define MH_KB                   (1000)
34 #define MH_MB                   (MH_KB * MH_KB)
35
36 #define MH_DEVICE_LIST_NO_NAME  "No name"
37 #define MH_DEFAULT_DEVICE_NAME  "No name"
38
39 #define MH_CONNECTED_DEVICE_WILL_BE_DISCONNECTED        "Connected device will be disconnected"
40 #define MH_CONSUMES_MORE_BATTERY_POWER                  "Tethering consumes more battery power and increases your data usage. Continue?"
41
42 void ap_update_data_onoff(void *data);
43 void ap_update_data_device(mh_appdata_t *ad);
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 void ap_draw_contents(mh_appdata_t *ad);
48 void ap_callback_del(mh_appdata_t *ad);
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);
53
54 #ifdef __cplusplus
55 }
56 #endif
57 #endif