81bb5fb2beb48f4c924f6b4f4371aa7c036e8a4c
[apps/native/ug-mobile-ap.git] / include / mh_func_onoff.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_FUNC_ONOFF_H__
21 #define __APP_FUNC_ONOFF_H__
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 #include "mobile_hotspot.h"
28 #include "mh_view_main.h"
29 #include "mh_common_utility.h"
30
31 void _enabled_cb(tethering_error_e result, tethering_type_e type, bool is_requested, void *user_data);
32 void _disabled_cb(tethering_error_e result, tethering_type_e type, tethering_disabled_cause_e cause, void *user_data);
33 void _connection_changed_cb(tethering_client_h client, bool opened, void *user_data);
34 void _data_usage_cb(tethering_error_e result, unsigned long long received_data, unsigned long long sent_data, void *user_data);
35
36 int _handle_wifi_onoff_change(mh_appdata_t *ad);
37 int _handle_bt_onoff_change(mh_appdata_t *ad);
38 int _handle_usb_onoff_change(mh_appdata_t *ad);
39 int _turn_off_wifi(mh_appdata_t *ad);
40 int _turn_on_wifi(void);
41 bool _is_wifi_direct_on(void);
42 int _turn_off_wifi_direct(mh_appdata_t *ad);
43
44 #ifdef __cplusplus
45 }
46 #endif
47 #endif