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-pbap.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 #ifndef BT_SERVICE_PBAP_H
25 #define BT_SERVICE_PBAP_H
26
27 #include <stdint.h>
28 #include <glib.h>
29 #include <dbus/dbus-glib.h>
30 #include <dbus/dbus-glib-lowlevel.h>
31
32 #include <unistd.h>
33 #include <dlog.h>
34
35 #include <stdio.h>
36
37 #include <dbus/dbus-glib.h>
38
39 #undef LOG_TAG
40 #define LOG_TAG "BLUETOOTH_FRWK_SERVICE"
41 #define ERR(fmt, args...) SLOGE(fmt, ##args)
42
43 int _bt_pbap_connect(const bluetooth_device_address_t *address);
44
45 int _bt_pbap_disconnect(const bluetooth_device_address_t *address);
46
47 int _bt_pbap_get_phonebook_size(const bluetooth_device_address_t *address,
48                 int source, int type);
49
50 int _bt_pbap_get_phonebook(const bluetooth_device_address_t *address,
51                 int source, int type, bt_pbap_pull_parameters_t *app_param);
52
53 int _bt_pbap_get_list(const bluetooth_device_address_t *address, int source,
54                 int type, bt_pbap_list_parameters_t *app_param);
55
56 int _bt_pbap_pull_vcard(const bluetooth_device_address_t *address,
57                 int source, int type, bt_pbap_pull_vcard_parameters_t *app_param);
58
59 int _bt_pbap_phonebook_search(const bluetooth_device_address_t *address,
60                 int source, int type, bt_pbap_search_parameters_t *app_param);
61
62 void _bt_pbap_obex_transfer_completed(const char *transfer_path, gboolean transfer_status);
63 #endif