Update for license
[apps/native/ug-mobile-ap.git] / include / mh_view_main.h
1 /*
2 * ug-mobile-ap
3 *
4 * Copyright 2012-2013  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://floralicense.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 void ap_update_data_onoff(void *data);
37 void ap_update_data_device(mh_appdata_t *ad);
38 Eina_Bool ap_update_data_packet_usage(mh_appdata_t *ad);
39 void _start_update_data_packet_usage(mh_appdata_t *ad);
40 void _stop_update_data_packet_usage(mh_appdata_t *ad);
41 void ap_draw_contents(mh_appdata_t *ad);
42 void ap_callback_del(mh_appdata_t *ad);
43 void _update_wifi_item(mh_appdata_t *ad, int wifi_state);
44 void _update_bt_item(mh_appdata_t *ad, int bt_state);
45 void _update_usb_item(mh_appdata_t *ad, int usb_state);
46 void _update_main_view(mh_appdata_t *ad);
47
48 #ifdef __cplusplus
49 }
50 #endif
51 #endif