Update AG and HF agent codes from wearable product
[platform/core/connectivity/bluetooth-agent.git] / ag-agent / bluetooth-ag-phonebook.h
1 /*
2  * bluetooth-ag-phonebook.h
3  *
4  * Copyright (c) 2014 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:     Hocheol Seo <hocheol.seo@samsung.com>
7  *              Sangki Park<sangki79.park@samsung.com>
8  *              Chanyeol Park <chanyeol.park@samsung.com>
9  *              Rakesh MK <rakesh.mk@samsung.com>
10  *              Anurag B <biradar.a@samsung.com>
11  *
12  * Licensed under the Apache License, Version 2.0 (the "License");
13  * you may not use this file except in compliance with the License.
14  * You may obtain a copy of the License at
15  *
16  *              http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS,
20  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  *
24  */
25
26 #include <contacts.h>
27 #include <contacts_record.h>
28 #include <TapiUtility.h>
29 #include <ITapiSim.h>
30
31 typedef enum {
32         TELECOM_PB = 0,
33         TELECOM_ICH,
34         TELECOM_OCH,
35         TELECOM_MCH,
36         TELECOM_CCH,
37 #ifdef TIZEN_FEATURE_BT_PBAP_SIM
38         SIM_PB,
39 #endif
40         TELECOM_NONE
41 } PhoneBookType;
42
43 typedef enum {
44         PBAP_ADDRESSBOOK_PHONE,
45         PBAP_ADDRESSBOOK_SIM,
46 } bt_pbap_addressbook_e;
47
48 #define SIM_ADDRESSBOOK_PREFIX "http://tizen.org/addressbook/sim"
49
50
51 PhoneBookType __bluetooth_pb_get_storage_pb_type(const char *name);
52
53 contacts_query_h __bluetooth_pb_query_phone_log(gint *match,
54                                                 gint size);
55
56 gboolean __bluetooth_pb_get_count(PhoneBookType pb_type,
57                                 guint *count);
58
59 void __bluetooth_pb_get_list_number(
60                                                 PhoneBookType pb_type,
61                                                 gint start_index,
62                                                 gint end_index,
63                                                 gint *count);
64
65 void __bluetooth_pb_get_list_entries_by_name(
66                                                 PhoneBookType pb_type,
67                                                 gint start_index,
68                                                 gint end_index,
69                                                 const char *str,
70                                                 gint *count);
71