Add the base code for gtest verification
[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 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #include <glib.h>
32
33 #define SIM_ADDRESSBOOK_PREFIX "http://tizen.org/addressbook/sim"
34
35 typedef enum {
36         PBAP_ADDRESSBOOK_PHONE,
37         PBAP_ADDRESSBOOK_SIM,
38 } bt_pbap_addressbook_e;
39
40 /* vcard */
41 int _bluetooth_get_contact_addressbook(gint person_id);
42
43 gchar *_bluetooth_pb_vcard_contact(gint person_id,
44                                 guint64 filter,
45                                 guint8 format);
46
47 gchar *_bluetooth_pb_vcard_contact_owner(const gchar *number,
48                                         guint64 filter,
49                                         guint8 format);
50
51 gchar *_bluetooth_pb_vcard_call(gint phonelog_id,
52                                 guint64 filter,
53                                 guint8 format,
54                                 const gchar *attr);
55
56 gchar *_bluetooth_pb_fn_from_person_id(gint person_id);
57
58 gchar *_bluetooth_pb_name_from_person_id(gint person_id);
59
60 gchar *_bluetooth_pb_number_from_person_id(gint person_id);
61
62 gchar *_bluetooth_pb_fn_from_phonelog_id(gint phonelog_id);
63
64 gchar *_bluetooth_pb_name_from_phonelog_id(gint phonelog_id);
65
66 gchar *_bluetooth_pb_number_from_phonelog_id(gint phonelog_id);
67
68 gchar *_bluetooth_pb_owner_name(void);
69
70 bool _bt_is_sim_addressbook(const char *addressbook);
71
72 #ifdef __cplusplus
73 }
74 #endif
75
76 #endif