4 * Copyright 2012-2013 Samsung Electronics Co., Ltd
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
10 * http://floralicense.org/license
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.
20 #ifndef __APP_MH_VIEW_MAIN_H__
21 #define __APP_MH_VIEW_MAIN_H__
27 #include "mobile_hotspot.h"
28 #include "mh_func_onoff.h"
29 #include "mh_common_utility.h"
30 #include "mh_view_wifi_setup.h"
32 #define MH_UPDATE_INTERVAL 5 /* 5 Sec */
34 #define MH_MB (MH_KB * MH_KB)
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);