4 * Copyright 2012 Samsung Electronics Co., Ltd
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
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_FUNC_ONOFF_H__
21 #define __APP_FUNC_ONOFF_H__
27 #include "mobile_hotspot.h"
28 #include "mh_view_main.h"
29 #include "mh_common_utility.h"
31 int _get_vconf_usb_state(void);
32 void _enabled_cb(tethering_error_e result, tethering_type_e type, bool is_requested, void *user_data);
33 void _disabled_cb(tethering_error_e result, tethering_type_e type, tethering_disabled_cause_e cause, void *user_data);
34 void _connection_changed_cb(tethering_client_h client, bool opened, void *user_data);
35 void _data_usage_cb(tethering_error_e result, unsigned long long received_data, unsigned long long sent_data, void *user_data);
37 int _handle_wifi_onoff_change(mh_appdata_t *ad);
38 int _handle_bt_onoff_change(mh_appdata_t *ad);
39 int _handle_usb_onoff_change(mh_appdata_t *ad);
40 int _turn_off_wifi(mh_appdata_t *ad);
41 int _turn_on_wifi(void);
42 bool _is_wifi_direct_on(void);
43 int _turn_off_wifi_direct(mh_appdata_t *ad);