Code Sync [Tizen3.0]: Merged the tizen_2.4 Spin code to tizen.org
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-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_SERVICE_MDM_H_
26 #define _BT_SERVICE_MDM_H_
27
28 #include <sys/types.h>
29 #include <glib.h>
30
31 #include <mdm.h>
32
33 #include "bluetooth-api.h"
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39 typedef enum {
40         BT_MDM_NO_SERVICE,
41         BT_MDM_ALLOWED,
42         BT_MDM_RESTRICTED
43 } bt_mdm_status_e;
44
45 void _bt_init_mdm_handle(void);
46
47 void _bt_deinit_mdm_handle(void);
48
49 int _bt_launch_mdm_popup(char *mode);
50
51 bt_mdm_status_e _bt_check_mdm_allow_restriction(void);
52
53 #ifdef MDM_PHASE_2
54 bt_mdm_status_e _bt_check_mdm_desktop_connectivity_restriction(void);
55
56 bt_mdm_status_e _bt_check_mdm_visible_restriction(void);
57
58 bt_mdm_status_e _bt_check_mdm_limited_discoverable_mode(void);
59
60 bt_mdm_status_e _bt_check_mdm_blacklist_devices(bluetooth_device_address_t *address);
61
62 bt_mdm_status_e _bt_check_mdm_blacklist_uuid(char *uuid);
63 #endif
64
65 #ifdef __cplusplus
66 }
67 #endif /* __cplusplus */
68 #endif /*_BT_SERVICE_MDM_H_*/
69