4b01f3a81ed15a883914891621210e1fbe55aef1
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / include / bt-mdm.h
1 /*
2  * Bluetooth-frwk
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
7  *               Girishashok Joshi <girish.joshi@samsung.com>
8  *               Chanyeol Park <chanyeol.park@samsung.com>
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  *              http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */
23
24
25 #ifndef _BT_MDM_H_
26 #define _BT_MDM_H_
27
28 #include <sys/types.h>
29 #include <glib.h>
30 #include <mdm.h>
31 #include "bluetooth-api.h"
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37 typedef enum {
38         BT_MDM_NO_SERVICE,
39         BT_MDM_ALLOWED,
40         BT_MDM_RESTRICTED
41 } bt_mdm_status_e;
42
43 int _bt_launch_mdm_popup(char *mode);
44
45 bt_mdm_status_e _bt_check_mdm_handsfree_only(void);
46
47 #ifdef MDM_PHASE_2
48
49 bt_mdm_status_e _bt_check_mdm_pairing_restriction(void);
50
51 bt_mdm_status_e _bt_check_mdm_transfer_restriction(void);
52
53 bt_mdm_status_e _bt_check_mdm_hsp_restriction(void);
54
55 bt_mdm_status_e _bt_check_mdm_a2dp_restriction(void);
56
57 bt_mdm_status_e _bt_check_mdm_avrcp_restriction(void);
58
59 bt_mdm_status_e _bt_check_mdm_spp_restriction(void);
60
61 bt_mdm_status_e _bt_check_mdm_blacklist_devices(const bluetooth_device_address_t *address);
62
63 bt_mdm_status_e _bt_check_mdm_blacklist_uuid(char *uuid);
64 #endif
65
66 #ifdef __cplusplus
67 }
68 #endif /* __cplusplus */
69 #endif /*_BT_SERVICE_MDM_H_*/
70