4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Hocheol Seo <hocheol.seo@samsung.com>
7 * Girishashok Joshi <girish.joshi@samsung.com>
8 * Chanyeol Park <chanyeol.park@samsung.com>
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
14 * http://www.apache.org/licenses/LICENSE-2.0
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.
24 #ifndef __DEF_BT_PB_VCARD_H_
25 #define __DEF_BT_PB_VCARD_H_
33 #define SIM_ADDRESSBOOK_PREFIX "http://tizen.org/addressbook/sim"
36 PBAP_ADDRESSBOOK_PHONE,
38 } bt_pbap_addressbook_e;
40 #define VCARD_FORMAT_2_1 0x0
41 #define VCARD_FORMAT_3_0 0x1
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)
74 int _bluetooth_get_contact_addressbook(gint person_id);
76 gchar *_bluetooth_pb_vcard_contact(gint person_id,
80 gchar *_bluetooth_pb_vcard_contact_owner(const gchar *number,
84 gchar *_bluetooth_pb_vcard_call(gint phonelog_id,
89 gchar *_bluetooth_pb_fn_from_person_id(gint person_id);
91 gchar *_bluetooth_pb_name_from_person_id(gint person_id);
93 gchar *_bluetooth_pb_number_from_person_id(gint person_id);
95 gchar *_bluetooth_pb_fn_from_phonelog_id(gint phonelog_id);
97 gchar *_bluetooth_pb_name_from_phonelog_id(gint phonelog_id);
99 gchar *_bluetooth_pb_number_from_phonelog_id(gint phonelog_id);
101 gchar *_bluetooth_pb_owner_name(void);
103 bool _bt_is_sim_addressbook(const char *addressbook);