Apply tizen 3.0 based product patchsets
[platform/core/connectivity/bluetooth-agent.git] / pb-agent / bluetooth_pb_vcard.h
1 /*
2  * Bluetooth-agent
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 __DEF_BT_PB_VCARD_H_
25 #define __DEF_BT_PB_VCARD_H_
26
27 #include <glib.h>
28
29 #define SIM_ADDRESSBOOK_PREFIX "http://tizen.org/addressbook/sim"
30
31 typedef enum {
32         PBAP_ADDRESSBOOK_PHONE,
33         PBAP_ADDRESSBOOK_SIM,
34 } bt_pbap_addressbook_e;
35
36 /* vcard */
37 int _bluetooth_get_contact_addressbook(gint person_id);
38
39 gchar *_bluetooth_pb_vcard_contact(gint person_id,
40                                 guint64 filter,
41                                 guint8 format);
42
43 gchar *_bluetooth_pb_vcard_contact_owner(const gchar *number,
44                                         guint64 filter,
45                                         guint8 format);
46
47 gchar *_bluetooth_pb_vcard_call(gint phonelog_id,
48                                 guint64 filter,
49                                 guint8 format,
50                                 const gchar *attr);
51
52 gchar *_bluetooth_pb_fn_from_person_id(gint person_id);
53
54 gchar *_bluetooth_pb_name_from_person_id(gint person_id);
55
56 gchar *_bluetooth_pb_number_from_person_id(gint person_id);
57
58 gchar *_bluetooth_pb_fn_from_phonelog_id(gint phonelog_id);
59
60 gchar *_bluetooth_pb_name_from_phonelog_id(gint phonelog_id);
61
62 gchar *_bluetooth_pb_number_from_phonelog_id(gint phonelog_id);
63
64 gchar *_bluetooth_pb_owner_name(void);
65
66 bool _bt_is_sim_addressbook(const char *addressbook);
67
68 #endif