Modify the pb agent for gtest
[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 #define VCARD_FORMAT_2_1 0x0
41 #define VCARD_FORMAT_3_0 0x1
42
43 #define VCARD_VERSION   (0x1)
44 #define VCARD_FN        (0x1 << 1)
45 #define VCARD_N         (0x1 << 2)
46 #define VCARD_PHOTO     (0x1 << 3)
47 #define VCARD_BDAY      (0x1 << 4)
48 #define VCARD_ADR       (0x1 << 5)
49 #define VCARD_LABEL     (0x1 << 6)      /* not supported */
50 #define VCARD_TEL       (0x1 << 7)
51 #define VCARD_EMAIL     (0x1 << 8)
52 #define VCARD_MAILER    (0x1 << 9)      /* not supported */
53 #define VCARD_TZ        (0x1 << 10)     /* not supported */
54 #define VCARD_GEO       (0x1 << 11)     /* not supported */
55 #define VCARD_TITLE     (0x1 << 12)
56 #define VCARD_ROLE      (0x1 << 13)
57 #define VCARD_LOGO      (0x1 << 14)     /* not supported */
58 #define VCARD_AGENT     (0x1 << 15)     /* not supported */
59 #define VCARD_ORG       (0x1 << 16)
60 #define VCARD_NOTE      (0x1 << 17)
61 #define VCARD_REV       (0x1 << 18)
62 #define VCARD_SOUND     (0x1 << 19)     /* not supported */
63 #define VCARD_URL       (0x1 << 20)
64 #define VCARD_UID       (0x1 << 21)
65 #define VCARD_KEY       (0x1 << 22)     /* not supported */
66 #define VCARD_NICKNAME  (0x1 << 23)
67 #define VCARD_CATEGORIES        (0x1 << 24)     /* not supported */
68 #define VCARD_PROID     (0x1 << 25)     /* not supported */
69 #define VCARD_CLASS     (0x1 << 26)     /* not supported */
70 #define VCARD_SORT_STRING       (0x1 << 27)     /* not supported */
71 #define VCARD_X_IRMC_CALL_DATETIME      (0x1 << 28)
72
73 /* vcard */
74 int _bluetooth_get_contact_addressbook(gint person_id);
75
76 gchar *_bluetooth_pb_vcard_contact(gint person_id,
77                                 guint64 filter,
78                                 guint8 format);
79
80 gchar *_bluetooth_pb_vcard_contact_owner(const gchar *number,
81                                         guint64 filter,
82                                         guint8 format);
83
84 gchar *_bluetooth_pb_vcard_call(gint phonelog_id,
85                                 guint64 filter,
86                                 guint8 format,
87                                 const gchar *attr);
88
89 gchar *_bluetooth_pb_fn_from_person_id(gint person_id);
90
91 gchar *_bluetooth_pb_name_from_person_id(gint person_id);
92
93 gchar *_bluetooth_pb_number_from_person_id(gint person_id);
94
95 gchar *_bluetooth_pb_fn_from_phonelog_id(gint phonelog_id);
96
97 gchar *_bluetooth_pb_name_from_phonelog_id(gint phonelog_id);
98
99 gchar *_bluetooth_pb_number_from_phonelog_id(gint phonelog_id);
100
101 gchar *_bluetooth_pb_owner_name(void);
102
103 bool _bt_is_sim_addressbook(const char *addressbook);
104
105 #ifdef __cplusplus
106 }
107 #endif
108
109 #endif