4 * Copyright (c) 2010 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 #include "ctsvc_internal.h"
22 #include "ctsvc_view.h"
24 API const _contacts_address_book_property_ids _contacts_address_book = {
25 ._uri = CTSVC_VIEW_URI_ADDRESSBOOK,
26 .id = CTSVC_PROPERTY_ADDRESSBOOK_ID,
27 .account_id = CTSVC_PROPERTY_ADDRESSBOOK_ACCOUNT_ID,
28 .name = CTSVC_PROPERTY_ADDRESSBOOK_NAME,
29 .mode = CTSVC_PROPERTY_ADDRESSBOOK_MODE
32 API const _contacts_group_property_ids _contacts_group = {
33 ._uri = CTSVC_VIEW_URI_GROUP,
34 .id = CTSVC_PROPERTY_GROUP_ID,
35 .address_book_id = CTSVC_PROPERTY_GROUP_ADDRESSBOOK_ID,
36 .name = CTSVC_PROPERTY_GROUP_NAME,
37 .ringtone_path = CTSVC_PROPERTY_GROUP_RINGTONE,
38 .image_path = CTSVC_PROPERTY_GROUP_IMAGE,
39 .vibration = CTSVC_PROPERTY_GROUP_VIBRATION,
40 .extra_data = CTSVC_PROPERTY_GROUP_EXTRA_DATA,
41 .is_read_only = CTSVC_PROPERTY_GROUP_IS_READ_ONLY,
42 .message_alert = CTSVC_PROPERTY_GROUP_MESSAGE_ALERT
45 API const _contacts_person_property_ids _contacts_person = {
46 ._uri = CTSVC_VIEW_URI_PERSON,
47 .id = CTSVC_PROPERTY_PERSON_ID,
48 .display_name = CTSVC_PROPERTY_PERSON_DISPLAY_NAME,
49 .display_name_index = CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX,
50 .display_contact_id = CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID,
51 .ringtone_path = CTSVC_PROPERTY_PERSON_RINGTONE,
52 .image_thumbnail_path = CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL,
53 .vibration = CTSVC_PROPERTY_PERSON_VIBRATION,
54 .message_alert = CTSVC_PROPERTY_PERSON_MESSAGE_ALERT,
55 .status = CTSVC_PROPERTY_PERSON_STATUS,
56 .is_favorite = CTSVC_PROPERTY_PERSON_IS_FAVORITE,
57 .favorite_priority = CTSVC_PROPERTY_PERSON_FAVORITE_PRIORITY,
58 .link_count = CTSVC_PROPERTY_PERSON_LINK_COUNT,
59 .addressbook_ids = CTSVC_PROPERTY_PERSON_ADDRESSBOOK_IDS,
60 .has_phonenumber = CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER,
61 .has_email = CTSVC_PROPERTY_PERSON_HAS_EMAIL,
62 .snippet_type = CTSVC_PROPERTY_PERSON_SNIPPET_TYPE,
63 .snippet_string = CTSVC_PROPERTY_PERSON_SNIPPET_STRING
66 API const _contacts_contact_property_ids _contacts_contact = {
67 ._uri = CTSVC_VIEW_URI_CONTACT,
68 .id = CTSVC_PROPERTY_CONTACT_ID,
69 .display_name = CTSVC_PROPERTY_CONTACT_DISPLAY_NAME,
70 .display_source_type = CTSVC_PROPERTY_CONTACT_DISPLAY_SOURCE_DATA_ID,
71 .address_book_id = CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID,
72 .ringtone_path = CTSVC_PROPERTY_CONTACT_RINGTONE,
73 .image_thumbnail_path = CTSVC_PROPERTY_CONTACT_IMAGE_THUMBNAIL,
74 .is_favorite = CTSVC_PROPERTY_CONTACT_IS_FAVORITE,
75 .has_phonenumber = CTSVC_PROPERTY_CONTACT_HAS_PHONENUMBER,
76 .has_email = CTSVC_PROPERTY_CONTACT_HAS_EMAIL,
77 .person_id = CTSVC_PROPERTY_CONTACT_PERSON_ID,
78 .uid = CTSVC_PROPERTY_CONTACT_UID,
79 .vibration = CTSVC_PROPERTY_CONTACT_VIBRATION,
80 .message_alert = CTSVC_PROPERTY_CONTACT_MESSAGE_ALERT,
81 .changed_time = CTSVC_PROPERTY_CONTACT_CHANGED_TIME,
82 .link_mode = CTSVC_PROPERTY_CONTACT_LINK_MODE,
83 .name = CTSVC_PROPERTY_CONTACT_NAME,
84 .company = CTSVC_PROPERTY_CONTACT_COMPANY,
85 .note = CTSVC_PROPERTY_CONTACT_NOTE,
86 .number = CTSVC_PROPERTY_CONTACT_NUMBER,
87 .email = CTSVC_PROPERTY_CONTACT_EMAIL,
88 .event = CTSVC_PROPERTY_CONTACT_EVENT,
89 .messenger = CTSVC_PROPERTY_CONTACT_MESSENGER,
90 .address = CTSVC_PROPERTY_CONTACT_ADDRESS,
91 .url = CTSVC_PROPERTY_CONTACT_URL,
92 .nickname = CTSVC_PROPERTY_CONTACT_NICKNAME,
93 .profile = CTSVC_PROPERTY_CONTACT_PROFILE,
94 .relationship = CTSVC_PROPERTY_CONTACT_RELATIONSHIP,
95 .image = CTSVC_PROPERTY_CONTACT_IMAGE,
96 .group_relation = CTSVC_PROPERTY_CONTACT_GROUP_RELATION,
97 .extension = CTSVC_PROPERTY_CONTACT_EXTENSION,
98 .sip = CTSVC_PROPERTY_CONTACT_SIP
101 API const _contacts_my_profile_property_ids _contacts_my_profile = {
102 ._uri = CTSVC_VIEW_URI_MY_PROFILE,
103 .id = CTSVC_PROPERTY_MY_PROFILE_ID,
104 .display_name = CTSVC_PROPERTY_MY_PROFILE_DISPLAY_NAME,
105 .address_book_id = CTSVC_PROPERTY_MY_PROFILE_ADDRESSBOOK_ID,
106 .image_thumbnail_path = CTSVC_PROPERTY_MY_PROFILE_IMAGE_THUMBNAIL,
107 .uid = CTSVC_PROPERTY_MY_PROFILE_UID,
108 .changed_time = CTSVC_PROPERTY_MY_PROFILE_CHANGED_TIME,
109 .name = CTSVC_PROPERTY_MY_PROFILE_NAME,
110 .company = CTSVC_PROPERTY_MY_PROFILE_COMPANY,
111 .note = CTSVC_PROPERTY_MY_PROFILE_NOTE,
112 .number = CTSVC_PROPERTY_MY_PROFILE_NUMBER,
113 .email = CTSVC_PROPERTY_MY_PROFILE_EMAIL,
114 .event = CTSVC_PROPERTY_MY_PROFILE_EVENT,
115 .messenger = CTSVC_PROPERTY_MY_PROFILE_MESSENGER,
116 .address = CTSVC_PROPERTY_MY_PROFILE_ADDRESS,
117 .url = CTSVC_PROPERTY_MY_PROFILE_URL,
118 .nickname = CTSVC_PROPERTY_MY_PROFILE_NICKNAME,
119 .profile = CTSVC_PROPERTY_MY_PROFILE_PROFILE,
120 .relationship = CTSVC_PROPERTY_MY_PROFILE_RELATIONSHIP,
121 .image = CTSVC_PROPERTY_MY_PROFILE_IMAGE,
122 .extension = CTSVC_PROPERTY_MY_PROFILE_EXTENSION,
123 .sip = CTSVC_PROPERTY_MY_PROFILE_SIP
126 API const _contacts_simple_contact_property_ids _contacts_simple_contact = {
127 ._uri = CTSVC_VIEW_URI_SIMPLE_CONTACT,
128 .id = CTSVC_PROPERTY_CONTACT_ID,
129 .display_name = CTSVC_PROPERTY_CONTACT_DISPLAY_NAME,
130 .display_source_type = CTSVC_PROPERTY_CONTACT_DISPLAY_SOURCE_DATA_ID,
131 .address_book_id = CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID,
132 .person_id = CTSVC_PROPERTY_CONTACT_PERSON_ID,
133 .ringtone_path = CTSVC_PROPERTY_CONTACT_RINGTONE,
134 .image_thumbnail_path = CTSVC_PROPERTY_CONTACT_IMAGE_THUMBNAIL,
135 .is_favorite = CTSVC_PROPERTY_CONTACT_IS_FAVORITE,
136 .has_phonenumber = CTSVC_PROPERTY_CONTACT_HAS_PHONENUMBER,
137 .has_email = CTSVC_PROPERTY_CONTACT_HAS_EMAIL,
138 .uid = CTSVC_PROPERTY_CONTACT_UID,
139 .vibration = CTSVC_PROPERTY_CONTACT_VIBRATION,
140 .message_alert = CTSVC_PROPERTY_CONTACT_MESSAGE_ALERT,
141 .changed_time = CTSVC_PROPERTY_CONTACT_CHANGED_TIME
144 API const _contacts_name_property_ids _contacts_name = {
145 ._uri = CTSVC_VIEW_URI_NAME,
146 .id = CTSVC_PROPERTY_NAME_ID,
147 .contact_id = CTSVC_PROPERTY_NAME_CONTACT_ID,
148 .first = CTSVC_PROPERTY_NAME_FIRST,
149 .last = CTSVC_PROPERTY_NAME_LAST,
150 .addition = CTSVC_PROPERTY_NAME_ADDITION,
151 .suffix = CTSVC_PROPERTY_NAME_SUFFIX,
152 .prefix = CTSVC_PROPERTY_NAME_PREFIX,
153 .phonetic_first = CTSVC_PROPERTY_NAME_PHONETIC_FIRST,
154 .phonetic_middle = CTSVC_PROPERTY_NAME_PHONETIC_MIDDLE,
155 .phonetic_last = CTSVC_PROPERTY_NAME_PHONETIC_LAST
158 API const _contacts_number_property_ids _contacts_number = {
159 ._uri = CTSVC_VIEW_URI_NUMBER,
160 .id = CTSVC_PROPERTY_NUMBER_ID,
161 .contact_id = CTSVC_PROPERTY_NUMBER_CONTACT_ID,
162 .type = CTSVC_PROPERTY_NUMBER_TYPE,
163 .label = CTSVC_PROPERTY_NUMBER_LABEL,
164 .is_default = CTSVC_PROPERTY_NUMBER_IS_DEFAULT,
165 .number = CTSVC_PROPERTY_NUMBER_NUMBER,
166 .normalized_number = CTSVC_PROPERTY_NUMBER_NORMALIZED_NUMBER,
167 .cleaned_number = CTSVC_PROPERTY_NUMBER_CLEANED_NUMBER,
168 .number_filter = CTSVC_PROPERTY_NUMBER_NUMBER_FILTER
171 API const _contacts_email_property_ids _contacts_email = {
172 ._uri = CTSVC_VIEW_URI_EMAIL,
173 .id = CTSVC_PROPERTY_EMAIL_ID,
174 .contact_id = CTSVC_PROPERTY_EMAIL_CONTACT_ID,
175 .type = CTSVC_PROPERTY_EMAIL_TYPE,
176 .label = CTSVC_PROPERTY_EMAIL_LABEL,
177 .is_default = CTSVC_PROPERTY_EMAIL_IS_DEFAULT,
178 .email = CTSVC_PROPERTY_EMAIL_EMAIL
181 API const _contacts_address_property_ids _contacts_address = {
182 ._uri = CTSVC_VIEW_URI_ADDRESS,
183 .id = CTSVC_PROPERTY_ADDRESS_ID,
184 .contact_id = CTSVC_PROPERTY_ADDRESS_CONTACT_ID,
185 .type = CTSVC_PROPERTY_ADDRESS_TYPE,
186 .label = CTSVC_PROPERTY_ADDRESS_LABEL,
187 .postbox = CTSVC_PROPERTY_ADDRESS_POSTBOX,
188 .postal_code = CTSVC_PROPERTY_ADDRESS_POSTAL_CODE,
189 .region = CTSVC_PROPERTY_ADDRESS_REGION,
190 .locality = CTSVC_PROPERTY_ADDRESS_LOCALITY,
191 .street = CTSVC_PROPERTY_ADDRESS_STREET,
192 .country = CTSVC_PROPERTY_ADDRESS_COUNTRY,
193 .extended = CTSVC_PROPERTY_ADDRESS_EXTENDED,
194 .is_default = CTSVC_PROPERTY_ADDRESS_IS_DEFAULT
197 API const _contacts_url_property_ids _contacts_url = {
198 ._uri = CTSVC_VIEW_URI_URL,
199 .id = CTSVC_PROPERTY_URL_ID,
200 .contact_id = CTSVC_PROPERTY_URL_CONTACT_ID,
201 .type = CTSVC_PROPERTY_URL_TYPE,
202 .label = CTSVC_PROPERTY_URL_LABEL,
203 .url = CTSVC_PROPERTY_URL_URL
206 API const _contacts_event_property_ids _contacts_event = {
207 ._uri = CTSVC_VIEW_URI_EVENT,
208 .id = CTSVC_PROPERTY_EVENT_ID,
209 .contact_id = CTSVC_PROPERTY_EVENT_CONTACT_ID,
210 .type = CTSVC_PROPERTY_EVENT_TYPE,
211 .label = CTSVC_PROPERTY_EVENT_LABEL,
212 .date = CTSVC_PROPERTY_EVENT_DATE,
213 .is_leap_month = CTSVC_PROPERTY_EVENT_IS_LEAP_MONTH,
214 .calendar_type = CTSVC_PROPERTY_EVENT_CALENDAR_TYPE,
217 API const _contacts_company_property_ids _contacts_company = {
218 ._uri = CTSVC_VIEW_URI_COMPANY,
219 .id = CTSVC_PROPERTY_COMPANY_ID,
220 .contact_id = CTSVC_PROPERTY_COMPANY_CONTACT_ID,
221 .type = CTSVC_PROPERTY_COMPANY_TYPE,
222 .label = CTSVC_PROPERTY_COMPANY_LABEL,
223 .name = CTSVC_PROPERTY_COMPANY_NAME,
224 .department = CTSVC_PROPERTY_COMPANY_DEPARTMENT,
225 .job_title = CTSVC_PROPERTY_COMPANY_JOB_TITLE,
226 .assistant_name = CTSVC_PROPERTY_COMPANY_ASSISTANT_NAME,
227 .role = CTSVC_PROPERTY_COMPANY_ROLE,
228 .logo = CTSVC_PROPERTY_COMPANY_LOGO,
229 .location = CTSVC_PROPERTY_COMPANY_LOCATION,
230 .description = CTSVC_PROPERTY_COMPANY_DESCRIPTION,
231 .phonetic_name = CTSVC_PROPERTY_COMPANY_PHONETIC_NAME,
234 API const _contacts_nickname_property_ids _contacts_nickname = {
235 ._uri = CTSVC_VIEW_URI_NICKNAME,
236 .id = CTSVC_PROPERTY_NICKNAME_ID,
237 .contact_id = CTSVC_PROPERTY_NICKNAME_CONTACT_ID,
238 .name = CTSVC_PROPERTY_NICKNAME_NAME,
241 API const _contacts_note_property_ids _contacts_note = {
242 ._uri = CTSVC_VIEW_URI_NOTE,
243 .id = CTSVC_PROPERTY_NOTE_ID,
244 .contact_id = CTSVC_PROPERTY_NOTE_CONTACT_ID,
245 .note = CTSVC_PROPERTY_NOTE_NOTE
248 API const _contacts_profile_property_ids _contacts_profile = {
249 ._uri = CTSVC_VIEW_URI_PROFILE,
250 .id = CTSVC_PROPERTY_PROFILE_ID,
251 .uid = CTSVC_PROPERTY_PROFILE_UID,
252 .text = CTSVC_PROPERTY_PROFILE_TEXT,
253 .order = CTSVC_PROPERTY_PROFILE_ORDER,
254 .service_operation = CTSVC_PROPERTY_PROFILE_SERVICE_OPERATION,
255 .mime = CTSVC_PROPERTY_PROFILE_MIME,
256 .app_id = CTSVC_PROPERTY_PROFILE_APP_ID,
257 .uri = CTSVC_PROPERTY_PROFILE_URI,
258 .category = CTSVC_PROPERTY_PROFILE_CATEGORY,
259 .extra_data = CTSVC_PROPERTY_PROFILE_EXTRA_DATA,
260 .contact_id = CTSVC_PROPERTY_PROFILE_CONTACT_ID
263 API const _contacts_group_relation_property_ids _contacts_group_relation = {
264 ._uri = CTSVC_VIEW_URI_GROUP_RELATION,
265 .id = CTSVC_PROPERTY_GROUP_RELATION_ID,
266 .group_id = CTSVC_PROPERTY_GROUP_RELATION_GROUP_ID,
267 .contact_id = CTSVC_PROPERTY_GROUP_RELATION_CONTACT_ID,
268 .name = CTSVC_PROPERTY_GROUP_RELATION_GROUP_NAME,
269 .snippet_type = CTSVC_PROPERTY_PERSON_SNIPPET_TYPE,
270 .snippet_string = CTSVC_PROPERTY_PERSON_SNIPPET_STRING
273 API const _contacts_relationship_property_ids _contacts_relationship = {
274 ._uri = CTSVC_VIEW_URI_RELATIONSHIP,
275 .id = CTSVC_PROPERTY_RELATIONSHIP_ID,
276 .contact_id = CTSVC_PROPERTY_RELATIONSHIP_CONTACT_ID,
277 .type = CTSVC_PROPERTY_RELATIONSHIP_TYPE,
278 .label = CTSVC_PROPERTY_RELATIONSHIP_LABEL,
279 .name = CTSVC_PROPERTY_RELATIONSHIP_NAME,
282 API const _contacts_image_property_ids _contacts_image = {
283 ._uri = CTSVC_VIEW_URI_IMAGE,
284 .id = CTSVC_PROPERTY_IMAGE_ID,
285 .contact_id = CTSVC_PROPERTY_IMAGE_CONTACT_ID,
286 .type = CTSVC_PROPERTY_IMAGE_TYPE,
287 .label = CTSVC_PROPERTY_IMAGE_LABEL,
288 .path = CTSVC_PROPERTY_IMAGE_PATH,
289 .is_default = CTSVC_PROPERTY_IMAGE_IS_DEFAULT,
292 API const _contacts_messenger_property_ids _contacts_messenger = {
293 ._uri = CTSVC_VIEW_URI_MESSENGER,
294 .id = CTSVC_PROPERTY_MESSENGER_ID,
295 .contact_id = CTSVC_PROPERTY_MESSENGER_CONTACT_ID,
296 .type = CTSVC_PROPERTY_MESSENGER_TYPE,
297 .label = CTSVC_PROPERTY_MESSENGER_LABEL,
298 .im_id = CTSVC_PROPERTY_MESSENGER_IM_ID,
301 API const _contacts_sdn_property_ids _contacts_sdn = {
302 ._uri = CTSVC_VIEW_URI_SDN,
303 .id = CTSVC_PROPERTY_SDN_ID,
304 .name = CTSVC_PROPERTY_SDN_NAME,
305 .number = CTSVC_PROPERTY_SDN_NUMBER,
306 .sim_slot_no = CTSVC_PROPERTY_SDN_SIM_SLOT_NO,
309 API const _contacts_speeddial_property_ids _contacts_speeddial = {
310 ._uri = CTSVC_VIEW_URI_SPEEDDIAL,
311 .speeddial_number = CTSVC_PROPERTY_SPEEDDIAL_DIAL_NUMBER,
312 .number_id = CTSVC_PROPERTY_SPEEDDIAL_NUMBER_ID,
313 .number = CTSVC_PROPERTY_SPEEDDIAL_NUMBER,
314 .number_label = CTSVC_PROPERTY_SPEEDDIAL_NUMBER_LABEL,
315 .number_type = CTSVC_PROPERTY_SPEEDDIAL_NUMBER_TYPE,
316 .person_id = CTSVC_PROPERTY_SPEEDDIAL_PERSON_ID,
317 .display_name = CTSVC_PROPERTY_SPEEDDIAL_DISPLAY_NAME,
318 .image_thumbnail_path = CTSVC_PROPERTY_SPEEDDIAL_IMAGE_THUMBNAIL,
319 .normalized_number = CTSVC_PROPERTY_SPEEDDIAL_NORMALIZED_NUMBER,
320 .cleaned_number = CTSVC_PROPERTY_SPEEDDIAL_CLEANED_NUMBER,
321 .number_filter = CTSVC_PROPERTY_SPEEDDIAL_NUMBER_FILTER,
324 API const _contacts_contact_updated_info_property_ids _contacts_contact_updated_info = {
325 ._uri = CTSVC_VIEW_URI_CONTACTS_UPDATED_INFO,
326 .contact_id = CTSVC_PROPERTY_UPDATE_INFO_ID,
327 .address_book_id = CTSVC_PROPERTY_UPDATE_INFO_ADDRESSBOOK_ID,
328 .type = CTSVC_PROPERTY_UPDATE_INFO_TYPE,
329 .version = CTSVC_PROPERTY_UPDATE_INFO_VERSION,
330 .image_changed = CTSVC_PROPERTY_UPDATE_INFO_IMAGE_CHANGED,
333 API const _contacts_my_profile_updated_info_property_ids _contacts_my_profile_updated_info = {
334 ._uri = CTSVC_VIEW_URI_MY_PROFILE_UPDATED_INFO,
335 .address_book_id = CTSVC_PROPERTY_UPDATE_INFO_ADDRESSBOOK_ID,
336 .last_changed_type = CTSVC_PROPERTY_UPDATE_INFO_LAST_CHANGED_TYPE,
337 .version = CTSVC_PROPERTY_UPDATE_INFO_VERSION,
340 API const _contacts_group_updated_info_property_ids _contacts_group_updated_info = {
341 ._uri = CTSVC_VIEW_URI_GROUPS_UPDATED_INFO,
342 .group_id = CTSVC_PROPERTY_UPDATE_INFO_ID,
343 .address_book_id = CTSVC_PROPERTY_UPDATE_INFO_ADDRESSBOOK_ID,
344 .type = CTSVC_PROPERTY_UPDATE_INFO_TYPE,
345 .version = CTSVC_PROPERTY_UPDATE_INFO_VERSION,
348 API const _contacts_group_member_updated_info_property_ids _contacts_group_member_updated_info = {
349 ._uri = CTSVC_VIEW_URI_GROUPS_MEMBER_UPDATED_INFO,
350 .group_id = CTSVC_PROPERTY_UPDATE_INFO_ID,
351 .address_book_id = CTSVC_PROPERTY_UPDATE_INFO_ADDRESSBOOK_ID,
352 .version = CTSVC_PROPERTY_UPDATE_INFO_VERSION,
355 API const _contacts_grouprel_updated_info_property_ids _contacts_grouprel_updated_info = {
356 ._uri = CTSVC_VIEW_URI_GROUPRELS_UPDATED_INFO,
357 .group_id = CTSVC_PROPERTY_GROUP_ID,
358 .contact_id = CTSVC_PROPERTY_CONTACT_ID,
359 .address_book_id = CTSVC_PROPERTY_ADDRESSBOOK_ID,
360 .type = CTSVC_PROPERTY_UPDATE_INFO_TYPE,
361 .version = CTSVC_PROPERTY_UPDATE_INFO_VERSION,
364 API const _contacts_activity_property_ids _contacts_activity = {
365 ._uri = CTSVC_VIEW_URI_ACTIVITY,
366 .id = CTSVC_PROPERTY_ACTIVITY_ID,
367 .contact_id = CTSVC_PROPERTY_ACTIVITY_CONTACT_ID,
368 .source_name = CTSVC_PROPERTY_ACTIVITY_SOURCE_NAME,
369 .status = CTSVC_PROPERTY_ACTIVITY_STATUS,
370 .timestamp = CTSVC_PROPERTY_ACTIVITY_TIMESTAMP,
371 .service_operation = CTSVC_PROPERTY_ACTIVITY_SERVICE_OPERATION,
372 .uri = CTSVC_PROPERTY_ACTIVITY_URI,
373 .photo = CTSVC_PROPERTY_ACTIVITY_ACTIVITY_PHOTO,
376 API const _contacts_activity_photo_property_ids _contacts_activity_photo = {
377 ._uri = CTSVC_VIEW_URI_ACTIVITY_PHOTO,
378 .id = CTSVC_PROPERTY_ACTIVITY_PHOTO_ID,
379 .activity_id = CTSVC_PROPERTY_ACTIVITY_PHOTO_ACTIVITY_ID,
380 .photo_url = CTSVC_PROPERTY_ACTIVITY_PHOTO_URL,
381 .sort_index = CTSVC_PROPERTY_ACTIVITY_PHOTO_SORT_INDEX,
384 #ifdef ENABLE_LOG_FEATURE
385 API const _contacts_phone_log_property_ids _contacts_phone_log = {
386 ._uri = CTSVC_VIEW_URI_PHONELOG,
387 .id = CTSVC_PROPERTY_PHONELOG_ID,
388 .person_id = CTSVC_PROPERTY_PHONELOG_PERSON_ID,
389 .address = CTSVC_PROPERTY_PHONELOG_ADDRESS,
390 .log_time = CTSVC_PROPERTY_PHONELOG_LOG_TIME,
391 .log_type = CTSVC_PROPERTY_PHONELOG_LOG_TYPE,
392 .extra_data1 = CTSVC_PROPERTY_PHONELOG_EXTRA_DATA1,
393 .extra_data2 = CTSVC_PROPERTY_PHONELOG_EXTRA_DATA2,
394 .normalized_address = CTSVC_PROPERTY_PHONELOG_NORMALIZED_ADDRESS,
395 .cleaned_address = CTSVC_PROPERTY_PHONELOG_CLEANED_ADDRESS,
396 .address_filter = CTSVC_PROPERTY_PHONELOG_ADDRESS_FILTER,
397 .sim_slot_no = CTSVC_PROPERTY_PHONELOG_SIM_SLOT_NO,
399 #endif /* ENABLE_LOG_FEATURE */
401 API const _contacts_extension_property_ids _contacts_extension = {
402 ._uri = CTSVC_VIEW_URI_EXTENSION,
403 .id = CTSVC_PROPERTY_EXTENSION_ID,
404 .contact_id = CTSVC_PROPERTY_EXTENSION_CONTACT_ID,
405 .data1 = CTSVC_PROPERTY_EXTENSION_DATA1,
406 .data2 = CTSVC_PROPERTY_EXTENSION_DATA2,
407 .data3 = CTSVC_PROPERTY_EXTENSION_DATA3,
408 .data4 = CTSVC_PROPERTY_EXTENSION_DATA4,
409 .data5 = CTSVC_PROPERTY_EXTENSION_DATA5,
410 .data6 = CTSVC_PROPERTY_EXTENSION_DATA6,
411 .data7 = CTSVC_PROPERTY_EXTENSION_DATA7,
412 .data8 = CTSVC_PROPERTY_EXTENSION_DATA8,
413 .data9 = CTSVC_PROPERTY_EXTENSION_DATA9,
414 .data10 = CTSVC_PROPERTY_EXTENSION_DATA10,
415 .data11 = CTSVC_PROPERTY_EXTENSION_DATA11,
416 .data12 = CTSVC_PROPERTY_EXTENSION_DATA12,
419 API const _contacts_person_contact_property_ids _contacts_person_contact = {
420 ._uri = CTSVC_VIEW_URI_READ_ONLY_PERSON_CONTACT,
421 .person_id = CTSVC_PROPERTY_PERSON_ID,
422 .display_name = CTSVC_PROPERTY_PERSON_DISPLAY_NAME,
423 .display_name_index = CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX,
424 .display_contact_id = CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID,
425 .ringtone_path = CTSVC_PROPERTY_PERSON_RINGTONE,
426 .image_thumbnail_path = CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL,
427 .vibration = CTSVC_PROPERTY_PERSON_VIBRATION,
428 .message_alert = CTSVC_PROPERTY_PERSON_MESSAGE_ALERT,
429 .status = CTSVC_PROPERTY_PERSON_STATUS,
430 .is_favorite = CTSVC_PROPERTY_PERSON_IS_FAVORITE,
431 .link_count = CTSVC_PROPERTY_PERSON_LINK_COUNT,
432 .addressbook_ids = CTSVC_PROPERTY_PERSON_ADDRESSBOOK_IDS,
433 .has_phonenumber = CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER,
434 .has_email = CTSVC_PROPERTY_PERSON_HAS_EMAIL,
435 .contact_id = CTSVC_PROPERTY_CONTACT_ID,
436 .address_book_id = CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID,
437 .address_book_name = CTSVC_PROPERTY_ADDRESSBOOK_NAME,
438 .address_book_mode = CTSVC_PROPERTY_ADDRESSBOOK_MODE,
439 .snippet_type = CTSVC_PROPERTY_PERSON_SNIPPET_TYPE,
440 .snippet_string = CTSVC_PROPERTY_PERSON_SNIPPET_STRING
443 API const _contacts_person_number_property_ids _contacts_person_number = {
444 ._uri = CTSVC_VIEW_URI_READ_ONLY_PERSON_NUMBER,
445 .person_id = CTSVC_PROPERTY_PERSON_ID,
446 .display_name = CTSVC_PROPERTY_PERSON_DISPLAY_NAME,
447 .display_name_index = CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX,
448 .display_contact_id = CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID,
449 .ringtone_path = CTSVC_PROPERTY_PERSON_RINGTONE,
450 .image_thumbnail_path = CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL,
451 .vibration = CTSVC_PROPERTY_PERSON_VIBRATION,
452 .message_alert = CTSVC_PROPERTY_PERSON_MESSAGE_ALERT,
453 .is_favorite = CTSVC_PROPERTY_PERSON_IS_FAVORITE,
454 .has_phonenumber = CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER,
455 .has_email = CTSVC_PROPERTY_PERSON_HAS_EMAIL,
456 .number_id = CTSVC_PROPERTY_NUMBER_ID,
457 .type = CTSVC_PROPERTY_NUMBER_TYPE,
458 .label = CTSVC_PROPERTY_NUMBER_LABEL,
459 .is_primary_default = CTSVC_PROPERTY_DATA_IS_PRIMARY_DEFAULT,
460 .number = CTSVC_PROPERTY_NUMBER_NUMBER,
461 .number_filter = CTSVC_PROPERTY_NUMBER_NUMBER_FILTER,
462 .normalized_number = CTSVC_PROPERTY_NUMBER_NORMALIZED_NUMBER,
463 .cleaned_number = CTSVC_PROPERTY_NUMBER_CLEANED_NUMBER,
464 .snippet_type = CTSVC_PROPERTY_PERSON_SNIPPET_TYPE,
465 .snippet_string = CTSVC_PROPERTY_PERSON_SNIPPET_STRING
468 API const _contacts_person_email_property_ids _contacts_person_email = {
469 ._uri = CTSVC_VIEW_URI_READ_ONLY_PERSON_EMAIL,
470 .person_id = CTSVC_PROPERTY_PERSON_ID,
471 .display_name = CTSVC_PROPERTY_PERSON_DISPLAY_NAME,
472 .display_name_index = CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX,
473 .display_contact_id = CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID,
474 .ringtone_path = CTSVC_PROPERTY_PERSON_RINGTONE,
475 .image_thumbnail_path = CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL,
476 .vibration = CTSVC_PROPERTY_PERSON_VIBRATION,
477 .message_alert = CTSVC_PROPERTY_PERSON_MESSAGE_ALERT,
478 .is_favorite = CTSVC_PROPERTY_PERSON_IS_FAVORITE,
479 .has_phonenumber = CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER,
480 .has_email = CTSVC_PROPERTY_PERSON_HAS_EMAIL,
481 .email_id = CTSVC_PROPERTY_EMAIL_ID,
482 .type = CTSVC_PROPERTY_EMAIL_TYPE,
483 .label = CTSVC_PROPERTY_EMAIL_LABEL,
484 .is_primary_default = CTSVC_PROPERTY_DATA_IS_PRIMARY_DEFAULT,
485 .email = CTSVC_PROPERTY_EMAIL_EMAIL,
486 .snippet_type = CTSVC_PROPERTY_PERSON_SNIPPET_TYPE,
487 .snippet_string = CTSVC_PROPERTY_PERSON_SNIPPET_STRING
490 API const _contacts_person_usage_property_ids _contacts_person_usage = {
491 ._uri = CTSVC_VIEW_URI_READ_ONLY_PERSON_USAGE,
492 .person_id = CTSVC_PROPERTY_PERSON_ID,
493 .display_name = CTSVC_PROPERTY_PERSON_DISPLAY_NAME,
494 .display_name_index = CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX,
495 .display_contact_id = CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID,
496 .ringtone_path = CTSVC_PROPERTY_PERSON_RINGTONE,
497 .image_thumbnail_path = CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL,
498 .vibration = CTSVC_PROPERTY_PERSON_VIBRATION,
499 .message_alert = CTSVC_PROPERTY_PERSON_MESSAGE_ALERT,
500 .is_favorite = CTSVC_PROPERTY_PERSON_IS_FAVORITE,
501 .has_phonenumber = CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER,
502 .has_email = CTSVC_PROPERTY_PERSON_HAS_EMAIL,
503 .usage_type = CTSVC_PROPERTY_PERSON_USAGE_TYPE,
504 .times_used = CTSVC_PROPERTY_PERSON_TIMES_USED
507 API const _contacts_person_grouprel_property_ids _contacts_person_grouprel = {
508 ._uri = CTSVC_VIEW_URI_READ_ONLY_PERSON_GROUP,
509 .person_id = CTSVC_PROPERTY_PERSON_ID,
510 .display_name = CTSVC_PROPERTY_PERSON_DISPLAY_NAME,
511 .display_name_index = CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX,
512 .display_contact_id = CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID,
513 .ringtone_path = CTSVC_PROPERTY_PERSON_RINGTONE,
514 .image_thumbnail_path = CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL,
515 .vibration = CTSVC_PROPERTY_PERSON_VIBRATION,
516 .message_alert = CTSVC_PROPERTY_PERSON_MESSAGE_ALERT,
517 .status = CTSVC_PROPERTY_PERSON_STATUS,
518 .is_favorite = CTSVC_PROPERTY_PERSON_IS_FAVORITE,
519 .has_phonenumber = CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER,
520 .has_email = CTSVC_PROPERTY_PERSON_HAS_EMAIL,
521 .link_count = CTSVC_PROPERTY_PERSON_LINK_COUNT,
522 .addressbook_ids = CTSVC_PROPERTY_PERSON_ADDRESSBOOK_IDS,
523 .address_book_id = CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID,
524 .group_id = CTSVC_PROPERTY_GROUP_RELATION_GROUP_ID,
525 .address_book_name = CTSVC_PROPERTY_ADDRESSBOOK_NAME,
526 .address_book_mode = CTSVC_PROPERTY_ADDRESSBOOK_MODE,
527 .contact_id = CTSVC_PROPERTY_GROUP_RELATION_CONTACT_ID,
528 .snippet_type = CTSVC_PROPERTY_PERSON_SNIPPET_TYPE,
529 .snippet_string = CTSVC_PROPERTY_PERSON_SNIPPET_STRING
532 API const _contacts_person_group_not_assigned_property_ids _contacts_person_group_not_assigned = {
533 ._uri = CTSVC_VIEW_URI_READ_ONLY_PERSON_GROUP_NOT_ASSIGNED,
534 .person_id = CTSVC_PROPERTY_PERSON_ID,
535 .display_name = CTSVC_PROPERTY_PERSON_DISPLAY_NAME,
536 .display_name_index = CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX,
537 .display_contact_id = CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID,
538 .ringtone_path = CTSVC_PROPERTY_PERSON_RINGTONE,
539 .image_thumbnail_path = CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL,
540 .vibration = CTSVC_PROPERTY_PERSON_VIBRATION,
541 .message_alert = CTSVC_PROPERTY_PERSON_MESSAGE_ALERT,
542 .status = CTSVC_PROPERTY_PERSON_STATUS,
543 .is_favorite = CTSVC_PROPERTY_PERSON_IS_FAVORITE,
544 .has_phonenumber = CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER,
545 .has_email = CTSVC_PROPERTY_PERSON_HAS_EMAIL,
546 .link_count = CTSVC_PROPERTY_PERSON_LINK_COUNT,
547 .linked_address_book_ids = CTSVC_PROPERTY_PERSON_ADDRESSBOOK_IDS,
548 .contact_id = CTSVC_PROPERTY_CONTACT_ID,
549 .address_book_id = CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID,
550 .address_book_mode = CTSVC_PROPERTY_ADDRESSBOOK_MODE,
551 .snippet_type = CTSVC_PROPERTY_PERSON_SNIPPET_TYPE,
552 .snippet_string = CTSVC_PROPERTY_PERSON_SNIPPET_STRING
555 API const _contacts_person_group_assigned_property_ids _contacts_person_group_assigned = {
556 ._uri = CTSVC_VIEW_URI_READ_ONLY_PERSON_GROUP_ASSIGNED,
557 .person_id = CTSVC_PROPERTY_PERSON_ID,
558 .display_name = CTSVC_PROPERTY_PERSON_DISPLAY_NAME,
559 .display_name_index = CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX,
560 .display_contact_id = CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID,
561 .ringtone_path = CTSVC_PROPERTY_PERSON_RINGTONE,
562 .image_thumbnail_path = CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL,
563 .vibration = CTSVC_PROPERTY_PERSON_VIBRATION,
564 .message_alert = CTSVC_PROPERTY_PERSON_MESSAGE_ALERT,
565 .status = CTSVC_PROPERTY_PERSON_STATUS,
566 .is_favorite = CTSVC_PROPERTY_PERSON_IS_FAVORITE,
567 .has_phonenumber = CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER,
568 .has_email = CTSVC_PROPERTY_PERSON_HAS_EMAIL,
569 .link_count = CTSVC_PROPERTY_PERSON_LINK_COUNT,
570 .linked_address_book_ids = CTSVC_PROPERTY_PERSON_ADDRESSBOOK_IDS,
571 .address_book_id = CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID,
572 .group_id = CTSVC_PROPERTY_GROUP_RELATION_GROUP_ID,
573 .address_book_mode = CTSVC_PROPERTY_ADDRESSBOOK_MODE,
574 .contact_id = CTSVC_PROPERTY_GROUP_RELATION_CONTACT_ID,
575 .snippet_type = CTSVC_PROPERTY_PERSON_SNIPPET_TYPE,
576 .snippet_string = CTSVC_PROPERTY_PERSON_SNIPPET_STRING
579 #ifdef ENABLE_LOG_FEATURE
580 API const _contacts_person_phone_log_property_ids _contacts_person_phone_log = {
581 ._uri = CTSVC_VIEW_URI_READ_ONLY_PERSON_PHONELOG,
582 .person_id = CTSVC_PROPERTY_PERSON_ID,
583 .display_name = CTSVC_PROPERTY_PERSON_DISPLAY_NAME,
584 .image_thumbnail_path = CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL,
585 .log_id = CTSVC_PROPERTY_PHONELOG_ID,
586 .address = CTSVC_PROPERTY_PHONELOG_ADDRESS,
587 .address_type = CTSVC_PROPERTY_DATA_DATA1,
588 .log_time = CTSVC_PROPERTY_PHONELOG_LOG_TIME,
589 .log_type = CTSVC_PROPERTY_PHONELOG_LOG_TYPE,
590 .extra_data1 = CTSVC_PROPERTY_PHONELOG_EXTRA_DATA1,
591 .extra_data2 = CTSVC_PROPERTY_PHONELOG_EXTRA_DATA2,
592 .normalized_address = CTSVC_PROPERTY_PHONELOG_NORMALIZED_ADDRESS,
593 .cleaned_address = CTSVC_PROPERTY_PHONELOG_CLEANED_ADDRESS,
594 .address_filter = CTSVC_PROPERTY_PHONELOG_CLEANED_ADDRESS,
595 .sim_slot_no = CTSVC_PROPERTY_PHONELOG_SIM_SLOT_NO,
597 #endif /* ENABLE_LOG_FEATURE */
599 API const _contacts_contact_number_property_ids _contacts_contact_number = {
600 ._uri = CTSVC_VIEW_URI_READ_ONLY_CONTACT_NUMBER,
601 .contact_id = CTSVC_PROPERTY_CONTACT_ID,
602 .display_name = CTSVC_PROPERTY_CONTACT_DISPLAY_NAME,
603 .display_source_type = CTSVC_PROPERTY_CONTACT_DISPLAY_SOURCE_DATA_ID,
604 .address_book_id = CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID,
605 .person_id = CTSVC_PROPERTY_CONTACT_PERSON_ID,
606 .ringtone_path = CTSVC_PROPERTY_CONTACT_RINGTONE,
607 .image_thumbnail_path = CTSVC_PROPERTY_CONTACT_IMAGE_THUMBNAIL,
608 .number_id = CTSVC_PROPERTY_NUMBER_ID,
609 .type = CTSVC_PROPERTY_NUMBER_TYPE,
610 .label = CTSVC_PROPERTY_NUMBER_LABEL,
611 .is_default = CTSVC_PROPERTY_NUMBER_IS_DEFAULT,
612 .number = CTSVC_PROPERTY_NUMBER_NUMBER,
613 .number_filter = CTSVC_PROPERTY_NUMBER_NUMBER_FILTER,
614 .normalized_number = CTSVC_PROPERTY_NUMBER_NORMALIZED_NUMBER,
615 .cleaned_number = CTSVC_PROPERTY_NUMBER_CLEANED_NUMBER
618 API const _contacts_contact_email_property_ids _contacts_contact_email = {
619 ._uri = CTSVC_VIEW_URI_READ_ONLY_CONTACT_EMAIL,
620 .contact_id = CTSVC_PROPERTY_CONTACT_ID,
621 .display_name = CTSVC_PROPERTY_CONTACT_DISPLAY_NAME,
622 .display_source_type = CTSVC_PROPERTY_CONTACT_DISPLAY_SOURCE_DATA_ID,
623 .address_book_id = CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID,
624 .person_id = CTSVC_PROPERTY_CONTACT_PERSON_ID,
625 .ringtone_path = CTSVC_PROPERTY_CONTACT_RINGTONE,
626 .image_thumbnail_path = CTSVC_PROPERTY_CONTACT_IMAGE_THUMBNAIL,
627 .email_id = CTSVC_PROPERTY_EMAIL_ID,
628 .type = CTSVC_PROPERTY_EMAIL_TYPE,
629 .label = CTSVC_PROPERTY_EMAIL_LABEL,
630 .is_default = CTSVC_PROPERTY_EMAIL_IS_DEFAULT,
631 .email = CTSVC_PROPERTY_EMAIL_EMAIL
634 API const _contacts_contact_grouprel_property_ids _contacts_contact_grouprel = {
635 ._uri = CTSVC_VIEW_URI_READ_ONLY_CONTACT_GROUP,
636 .contact_id = CTSVC_PROPERTY_CONTACT_ID,
637 .display_name = CTSVC_PROPERTY_CONTACT_DISPLAY_NAME,
638 .display_source_type = CTSVC_PROPERTY_CONTACT_DISPLAY_SOURCE_DATA_ID,
639 .address_book_id = CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID,
640 .person_id = CTSVC_PROPERTY_CONTACT_PERSON_ID,
641 .ringtone_path = CTSVC_PROPERTY_CONTACT_RINGTONE,
642 .image_thumbnail_path = CTSVC_PROPERTY_CONTACT_IMAGE_THUMBNAIL,
643 .group_id = CTSVC_PROPERTY_GROUP_RELATION_GROUP_ID,
644 .group_name = CTSVC_PROPERTY_GROUP_RELATION_GROUP_NAME
647 API const _contacts_contact_activity_property_ids _contacts_contact_activity = {
648 ._uri = CTSVC_VIEW_URI_READ_ONLY_CONTACT_ACTIVITY,
649 .contact_id = CTSVC_PROPERTY_CONTACT_ID,
650 .display_name = CTSVC_PROPERTY_CONTACT_DISPLAY_NAME,
651 .display_source_type = CTSVC_PROPERTY_CONTACT_DISPLAY_SOURCE_DATA_ID,
652 .address_book_id = CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID,
653 .person_id = CTSVC_PROPERTY_CONTACT_PERSON_ID,
654 .ringtone_path = CTSVC_PROPERTY_CONTACT_RINGTONE,
655 .image_thumbnail_path = CTSVC_PROPERTY_CONTACT_IMAGE_THUMBNAIL,
656 .activity_id = CTSVC_PROPERTY_ACTIVITY_ID,
657 .source_name = CTSVC_PROPERTY_ACTIVITY_SOURCE_NAME,
658 .status = CTSVC_PROPERTY_ACTIVITY_STATUS,
659 .timestamp = CTSVC_PROPERTY_ACTIVITY_TIMESTAMP,
660 .service_operation = CTSVC_PROPERTY_ACTIVITY_SERVICE_OPERATION,
661 .uri = CTSVC_PROPERTY_ACTIVITY_URI,
662 .account_id = CTSVC_PROPERTY_ADDRESSBOOK_ACCOUNT_ID,
665 API const _contacts_sip_property_ids _contacts_sip = {
666 ._uri = CTSVC_VIEW_URI_SIP,
667 .id = CTSVC_PROPERTY_SIP_ID,
668 .contact_id = CTSVC_PROPERTY_SIP_CONTACT_ID,
669 .address = CTSVC_PROPERTY_SIP_ADDRESS,
670 .type = CTSVC_PROPERTY_SIP_TYPE,
671 .label = CTSVC_PROPERTY_SIP_LABEL,
674 #ifdef ENABLE_LOG_FEATURE
675 API const _contacts_phone_log_stat_property_ids _contacts_phone_log_stat = {
676 ._uri = CTSVC_VIEW_URI_READ_ONLY_PHONELOG_STAT,
677 .log_count = CTSVC_PROPERTY_PHONELOG_STAT_LOG_COUNT,
678 .log_type = CTSVC_PROPERTY_PHONELOG_STAT_LOG_TYPE,
679 .sim_slot_no = CTSVC_PROPERTY_PHONELOG_STAT_SIM_SLOT_NO,
681 #endif /* ENABLE_LOG_FEATURE */
683 const property_info_s __property_addressbook[] = {
684 {CTSVC_PROPERTY_ADDRESSBOOK_ID, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_id"},
685 {CTSVC_PROPERTY_ADDRESSBOOK_ACCOUNT_ID, CTSVC_SEARCH_PROPERTY_ALL, "account_id"},
686 {CTSVC_PROPERTY_ADDRESSBOOK_NAME, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_name"},
687 {CTSVC_PROPERTY_ADDRESSBOOK_MODE, CTSVC_SEARCH_PROPERTY_ALL, "mode"},
690 const property_info_s __property_sdn[] = { /* _contacts_sdn */
691 {CTSVC_PROPERTY_SDN_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
692 {CTSVC_PROPERTY_SDN_NAME, CTSVC_SEARCH_PROPERTY_ALL, "name"},
693 {CTSVC_PROPERTY_SDN_NUMBER, CTSVC_SEARCH_PROPERTY_ALL, "number"},
694 {CTSVC_PROPERTY_SDN_SIM_SLOT_NO, CTSVC_SEARCH_PROPERTY_ALL, "sim_slot_no"},
697 const property_info_s __property_group[] = {
698 {CTSVC_PROPERTY_GROUP_ID, CTSVC_SEARCH_PROPERTY_ALL, "group_id"},
699 {CTSVC_PROPERTY_GROUP_ADDRESSBOOK_ID, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_id"},
700 {CTSVC_PROPERTY_GROUP_NAME, CTSVC_SEARCH_PROPERTY_ALL, "group_name"},
701 {CTSVC_PROPERTY_GROUP_RINGTONE, CTSVC_SEARCH_PROPERTY_ALL, "ringtone_path"},
702 {CTSVC_PROPERTY_GROUP_IMAGE, CTSVC_SEARCH_PROPERTY_ALL, "image_thumbnail_path"},
703 {CTSVC_PROPERTY_GROUP_VIBRATION, CTSVC_SEARCH_PROPERTY_ALL, "vibration"},
704 {CTSVC_PROPERTY_GROUP_EXTRA_DATA, CTSVC_SEARCH_PROPERTY_ALL, "extra_data"},
705 {CTSVC_PROPERTY_GROUP_IS_READ_ONLY, CTSVC_SEARCH_PROPERTY_ALL, "is_read_only"},
706 {CTSVC_PROPERTY_GROUP_MESSAGE_ALERT, CTSVC_SEARCH_PROPERTY_ALL, "message_alert"},
709 const property_info_s __property_person[] = {
710 {CTSVC_PROPERTY_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
711 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
712 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX, CTSVC_SEARCH_PROPERTY_PROJECTION, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
713 {CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "name_contact_id"},
714 {CTSVC_PROPERTY_PERSON_RINGTONE, CTSVC_SEARCH_PROPERTY_ALL, "ringtone_path"},
715 {CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_ALL, "image_thumbnail_path"},
716 {CTSVC_PROPERTY_PERSON_VIBRATION, CTSVC_SEARCH_PROPERTY_ALL, "vibration"},
717 {CTSVC_PROPERTY_PERSON_MESSAGE_ALERT, CTSVC_SEARCH_PROPERTY_ALL, "message_alert"},
718 {CTSVC_PROPERTY_PERSON_STATUS, CTSVC_SEARCH_PROPERTY_ALL, "status"},
719 {CTSVC_PROPERTY_PERSON_IS_FAVORITE, CTSVC_SEARCH_PROPERTY_ALL, "is_favorite"},
720 {CTSVC_PROPERTY_PERSON_FAVORITE_PRIORITY, CTSVC_SEARCH_PROPERTY_FILTER, "favorite_prio"},
721 {CTSVC_PROPERTY_PERSON_LINK_COUNT, CTSVC_SEARCH_PROPERTY_ALL, "link_count"},
722 {CTSVC_PROPERTY_PERSON_ADDRESSBOOK_IDS, CTSVC_SEARCH_PROPERTY_PROJECTION, "addressbook_ids"},
723 {CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER, CTSVC_SEARCH_PROPERTY_ALL, "has_phonenumber"},
724 {CTSVC_PROPERTY_PERSON_HAS_EMAIL, CTSVC_SEARCH_PROPERTY_ALL, "has_email"},
725 {CTSVC_PROPERTY_PERSON_SNIPPET_TYPE, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data type */
726 {CTSVC_PROPERTY_PERSON_SNIPPET_STRING, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data string */
729 const property_info_s __property_simple_contact[] = {
730 {CTSVC_PROPERTY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
731 {CTSVC_PROPERTY_CONTACT_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
732 {CTSVC_PROPERTY_CONTACT_DISPLAY_SOURCE_DATA_ID, CTSVC_SEARCH_PROPERTY_ALL, "display_name_source"},
733 {CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_id"},
734 {CTSVC_PROPERTY_CONTACT_RINGTONE, CTSVC_SEARCH_PROPERTY_ALL, "ringtone_path"},
735 {CTSVC_PROPERTY_CONTACT_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_ALL, "image_thumbnail_path"},
736 {CTSVC_PROPERTY_CONTACT_IS_FAVORITE, CTSVC_SEARCH_PROPERTY_ALL, "is_favorite"},
737 {CTSVC_PROPERTY_CONTACT_HAS_PHONENUMBER, CTSVC_SEARCH_PROPERTY_ALL, "has_phonenumber"},
738 {CTSVC_PROPERTY_CONTACT_HAS_EMAIL, CTSVC_SEARCH_PROPERTY_ALL, "has_email"},
739 {CTSVC_PROPERTY_CONTACT_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
740 {CTSVC_PROPERTY_CONTACT_UID, CTSVC_SEARCH_PROPERTY_ALL, "uid"},
741 {CTSVC_PROPERTY_CONTACT_VIBRATION, CTSVC_SEARCH_PROPERTY_ALL, "vibration"},
742 {CTSVC_PROPERTY_CONTACT_MESSAGE_ALERT, CTSVC_SEARCH_PROPERTY_ALL, "message_alert"},
743 {CTSVC_PROPERTY_CONTACT_CHANGED_TIME, CTSVC_SEARCH_PROPERTY_ALL, "changed_time"},
746 const property_info_s __property_name[] = {
747 {CTSVC_PROPERTY_NAME_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
748 {CTSVC_PROPERTY_NAME_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
749 {CTSVC_PROPERTY_NAME_FIRST, CTSVC_SEARCH_PROPERTY_ALL, "data2"},
750 {CTSVC_PROPERTY_NAME_LAST, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
751 {CTSVC_PROPERTY_NAME_ADDITION, CTSVC_SEARCH_PROPERTY_ALL, "data4"},
752 {CTSVC_PROPERTY_NAME_PREFIX, CTSVC_SEARCH_PROPERTY_ALL, "data5"},
753 {CTSVC_PROPERTY_NAME_SUFFIX, CTSVC_SEARCH_PROPERTY_ALL, "data6"},
754 {CTSVC_PROPERTY_NAME_PHONETIC_FIRST, CTSVC_SEARCH_PROPERTY_ALL, "data7"},
755 {CTSVC_PROPERTY_NAME_PHONETIC_MIDDLE, CTSVC_SEARCH_PROPERTY_ALL, "data8"},
756 {CTSVC_PROPERTY_NAME_PHONETIC_LAST, CTSVC_SEARCH_PROPERTY_ALL, "data9"},
759 const property_info_s __property_number[] = { /* _contacts_number */
760 {CTSVC_PROPERTY_NUMBER_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
761 {CTSVC_PROPERTY_NUMBER_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
762 {CTSVC_PROPERTY_NUMBER_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "data1"},
763 {CTSVC_PROPERTY_NUMBER_LABEL, CTSVC_SEARCH_PROPERTY_ALL, "data2"},
764 {CTSVC_PROPERTY_NUMBER_IS_DEFAULT, CTSVC_SEARCH_PROPERTY_ALL, "is_default"},
765 {CTSVC_PROPERTY_NUMBER_NUMBER, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
766 {CTSVC_PROPERTY_NUMBER_NORMALIZED_NUMBER, CTSVC_SEARCH_PROPERTY_FILTER, "data5"},
767 {CTSVC_PROPERTY_NUMBER_CLEANED_NUMBER, CTSVC_SEARCH_PROPERTY_FILTER, "data6"},
768 {CTSVC_PROPERTY_NUMBER_NUMBER_FILTER, CTSVC_SEARCH_PROPERTY_FILTER, "data4"},
771 const property_info_s __property_email[] = {
772 {CTSVC_PROPERTY_EMAIL_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
773 {CTSVC_PROPERTY_EMAIL_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
774 {CTSVC_PROPERTY_EMAIL_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "data1"},
775 {CTSVC_PROPERTY_EMAIL_LABEL, CTSVC_SEARCH_PROPERTY_ALL, "data2"},
776 {CTSVC_PROPERTY_EMAIL_IS_DEFAULT, CTSVC_SEARCH_PROPERTY_ALL, "is_default"},
777 {CTSVC_PROPERTY_EMAIL_EMAIL, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
780 const property_info_s __property_address[] = {
781 {CTSVC_PROPERTY_ADDRESS_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
782 {CTSVC_PROPERTY_ADDRESS_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
783 {CTSVC_PROPERTY_ADDRESS_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "data1"},
784 {CTSVC_PROPERTY_ADDRESS_LABEL, CTSVC_SEARCH_PROPERTY_ALL, "data2"},
785 {CTSVC_PROPERTY_ADDRESS_POSTBOX, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
786 {CTSVC_PROPERTY_ADDRESS_POSTAL_CODE, CTSVC_SEARCH_PROPERTY_ALL, "data4"},
787 {CTSVC_PROPERTY_ADDRESS_REGION, CTSVC_SEARCH_PROPERTY_ALL, "data5"},
788 {CTSVC_PROPERTY_ADDRESS_LOCALITY, CTSVC_SEARCH_PROPERTY_ALL, "data6"},
789 {CTSVC_PROPERTY_ADDRESS_STREET, CTSVC_SEARCH_PROPERTY_ALL, "data7"},
790 {CTSVC_PROPERTY_ADDRESS_COUNTRY, CTSVC_SEARCH_PROPERTY_ALL, "data9"},
791 {CTSVC_PROPERTY_ADDRESS_EXTENDED, CTSVC_SEARCH_PROPERTY_ALL, "data8"},
792 {CTSVC_PROPERTY_ADDRESS_IS_DEFAULT, CTSVC_SEARCH_PROPERTY_ALL, "is_default"},
795 const property_info_s __property_url[] = {
796 {CTSVC_PROPERTY_URL_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
797 {CTSVC_PROPERTY_URL_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
798 {CTSVC_PROPERTY_URL_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "data1"},
799 {CTSVC_PROPERTY_URL_LABEL, CTSVC_SEARCH_PROPERTY_ALL, "data2"},
800 {CTSVC_PROPERTY_URL_URL, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
803 const property_info_s __property_event[] = {
804 {CTSVC_PROPERTY_EVENT_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
805 {CTSVC_PROPERTY_EVENT_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
806 {CTSVC_PROPERTY_EVENT_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "data1"},
807 {CTSVC_PROPERTY_EVENT_LABEL, CTSVC_SEARCH_PROPERTY_ALL, "data2"},
808 {CTSVC_PROPERTY_EVENT_DATE, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
809 {CTSVC_PROPERTY_EVENT_CALENDAR_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "data4"},
810 {CTSVC_PROPERTY_EVENT_IS_LEAP_MONTH, CTSVC_SEARCH_PROPERTY_ALL, "data5"},
813 const property_info_s __property_group_relation[] = {
814 {CTSVC_PROPERTY_GROUP_RELATION_GROUP_ID, CTSVC_SEARCH_PROPERTY_ALL, "group_id"},
815 {CTSVC_PROPERTY_GROUP_RELATION_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
816 {CTSVC_PROPERTY_GROUP_RELATION_GROUP_NAME, CTSVC_SEARCH_PROPERTY_ALL, "group_name"},
819 const property_info_s __property_relationship[] = {
820 {CTSVC_PROPERTY_RELATIONSHIP_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
821 {CTSVC_PROPERTY_RELATIONSHIP_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
822 {CTSVC_PROPERTY_RELATIONSHIP_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "data1"},
823 {CTSVC_PROPERTY_RELATIONSHIP_LABEL, CTSVC_SEARCH_PROPERTY_ALL, "data2"},
824 {CTSVC_PROPERTY_RELATIONSHIP_NAME, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
827 const property_info_s __property_image[] = {
828 {CTSVC_PROPERTY_IMAGE_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
829 {CTSVC_PROPERTY_IMAGE_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
830 {CTSVC_PROPERTY_IMAGE_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "data1"},
831 {CTSVC_PROPERTY_IMAGE_LABEL, CTSVC_SEARCH_PROPERTY_ALL, "data2"},
832 {CTSVC_PROPERTY_IMAGE_PATH, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
833 {CTSVC_PROPERTY_IMAGE_IS_DEFAULT, CTSVC_SEARCH_PROPERTY_ALL, "is_default"},
836 const property_info_s __property_company[] = {
837 {CTSVC_PROPERTY_COMPANY_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
838 {CTSVC_PROPERTY_COMPANY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
839 {CTSVC_PROPERTY_COMPANY_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "data1"},
840 {CTSVC_PROPERTY_COMPANY_LABEL, CTSVC_SEARCH_PROPERTY_ALL, "data2"},
841 {CTSVC_PROPERTY_COMPANY_NAME, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
842 {CTSVC_PROPERTY_COMPANY_DEPARTMENT, CTSVC_SEARCH_PROPERTY_ALL, "data4"},
843 {CTSVC_PROPERTY_COMPANY_JOB_TITLE, CTSVC_SEARCH_PROPERTY_ALL, "data5"},
844 {CTSVC_PROPERTY_COMPANY_ROLE, CTSVC_SEARCH_PROPERTY_ALL, "data6"},
845 {CTSVC_PROPERTY_COMPANY_ASSISTANT_NAME, CTSVC_SEARCH_PROPERTY_ALL, "data7"},
846 {CTSVC_PROPERTY_COMPANY_LOGO, CTSVC_SEARCH_PROPERTY_ALL, "data8"},
847 {CTSVC_PROPERTY_COMPANY_LOCATION, CTSVC_SEARCH_PROPERTY_ALL, "data9"},
848 {CTSVC_PROPERTY_COMPANY_DESCRIPTION, CTSVC_SEARCH_PROPERTY_ALL, "data10"},
849 {CTSVC_PROPERTY_COMPANY_PHONETIC_NAME, CTSVC_SEARCH_PROPERTY_ALL, "data11"},
852 const property_info_s __property_nickname[] = {
853 {CTSVC_PROPERTY_NICKNAME_ID, CTSVC_SEARCH_PROPERTY_ALL, "id",},
854 {CTSVC_PROPERTY_NICKNAME_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
855 {CTSVC_PROPERTY_NICKNAME_NAME, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
858 const property_info_s __property_messenger[] = {
859 {CTSVC_PROPERTY_MESSENGER_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
860 {CTSVC_PROPERTY_MESSENGER_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
861 {CTSVC_PROPERTY_MESSENGER_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "data1"},
862 {CTSVC_PROPERTY_MESSENGER_LABEL, CTSVC_SEARCH_PROPERTY_ALL, "data2"},
863 {CTSVC_PROPERTY_MESSENGER_IM_ID, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
866 const property_info_s __property_note[] = {
867 {CTSVC_PROPERTY_NOTE_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
868 {CTSVC_PROPERTY_NOTE_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
869 {CTSVC_PROPERTY_NOTE_NOTE, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
872 const property_info_s __property_profile[] = {
873 {CTSVC_PROPERTY_PROFILE_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
874 {CTSVC_PROPERTY_PROFILE_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
875 {CTSVC_PROPERTY_PROFILE_UID, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
876 {CTSVC_PROPERTY_PROFILE_TEXT, CTSVC_SEARCH_PROPERTY_ALL, "data4"},
877 {CTSVC_PROPERTY_PROFILE_ORDER, CTSVC_SEARCH_PROPERTY_ALL, "data5"},
878 {CTSVC_PROPERTY_PROFILE_SERVICE_OPERATION, CTSVC_SEARCH_PROPERTY_ALL, "data6"},
879 {CTSVC_PROPERTY_PROFILE_MIME, CTSVC_SEARCH_PROPERTY_ALL, "data7"},
880 {CTSVC_PROPERTY_PROFILE_APP_ID, CTSVC_SEARCH_PROPERTY_ALL, "data8"},
881 {CTSVC_PROPERTY_PROFILE_URI, CTSVC_SEARCH_PROPERTY_ALL, "data9"},
882 {CTSVC_PROPERTY_PROFILE_CATEGORY, CTSVC_SEARCH_PROPERTY_ALL, "data10"},
883 {CTSVC_PROPERTY_PROFILE_EXTRA_DATA, CTSVC_SEARCH_PROPERTY_ALL, "data11"},
886 const property_info_s __property_activity_photo[] = {
887 {CTSVC_PROPERTY_ACTIVITY_PHOTO_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
888 {CTSVC_PROPERTY_ACTIVITY_PHOTO_ACTIVITY_ID, CTSVC_SEARCH_PROPERTY_ALL, "activity_id"},
889 {CTSVC_PROPERTY_ACTIVITY_PHOTO_URL, CTSVC_SEARCH_PROPERTY_ALL, "photo_url"},
890 {CTSVC_PROPERTY_ACTIVITY_PHOTO_SORT_INDEX, CTSVC_SEARCH_PROPERTY_ALL, "sort_index"},
893 const property_info_s __property_activity[] = {
894 {CTSVC_PROPERTY_ACTIVITY_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
895 {CTSVC_PROPERTY_ACTIVITY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
896 {CTSVC_PROPERTY_ACTIVITY_SOURCE_NAME, CTSVC_SEARCH_PROPERTY_ALL, "source_name"},
897 {CTSVC_PROPERTY_ACTIVITY_STATUS, CTSVC_SEARCH_PROPERTY_ALL, "status"},
898 {CTSVC_PROPERTY_ACTIVITY_TIMESTAMP, CTSVC_SEARCH_PROPERTY_ALL, "timestamp"},
899 {CTSVC_PROPERTY_ACTIVITY_SERVICE_OPERATION, CTSVC_SEARCH_PROPERTY_ALL, "service_operation"},
900 {CTSVC_PROPERTY_ACTIVITY_URI, CTSVC_SEARCH_PROPERTY_ALL, "uri"},
901 {CTSVC_PROPERTY_ACTIVITY_ACTIVITY_PHOTO, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_activity_photo},
904 const property_info_s __property_extension[] = {
905 {CTSVC_PROPERTY_EXTENSION_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
906 {CTSVC_PROPERTY_EXTENSION_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
907 {CTSVC_PROPERTY_EXTENSION_DATA1, CTSVC_SEARCH_PROPERTY_ALL, "data1"},
908 {CTSVC_PROPERTY_EXTENSION_DATA2, CTSVC_SEARCH_PROPERTY_ALL, "data2"},
909 {CTSVC_PROPERTY_EXTENSION_DATA3, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
910 {CTSVC_PROPERTY_EXTENSION_DATA4, CTSVC_SEARCH_PROPERTY_ALL, "data4"},
911 {CTSVC_PROPERTY_EXTENSION_DATA5, CTSVC_SEARCH_PROPERTY_ALL, "data5"},
912 {CTSVC_PROPERTY_EXTENSION_DATA6, CTSVC_SEARCH_PROPERTY_ALL, "data6"},
913 {CTSVC_PROPERTY_EXTENSION_DATA7, CTSVC_SEARCH_PROPERTY_ALL, "data7"},
914 {CTSVC_PROPERTY_EXTENSION_DATA8, CTSVC_SEARCH_PROPERTY_ALL, "data8"},
915 {CTSVC_PROPERTY_EXTENSION_DATA9, CTSVC_SEARCH_PROPERTY_ALL, "data9"},
916 {CTSVC_PROPERTY_EXTENSION_DATA10, CTSVC_SEARCH_PROPERTY_ALL, "data10"},
917 {CTSVC_PROPERTY_EXTENSION_DATA11, CTSVC_SEARCH_PROPERTY_ALL, "data11"},
918 {CTSVC_PROPERTY_EXTENSION_DATA12, CTSVC_SEARCH_PROPERTY_ALL, "data12"},
921 const property_info_s __property_sip[] = {
922 {CTSVC_PROPERTY_SIP_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
923 {CTSVC_PROPERTY_SIP_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
924 {CTSVC_PROPERTY_SIP_ADDRESS, CTSVC_SEARCH_PROPERTY_ALL, "data1"},
925 {CTSVC_PROPERTY_SIP_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "data2"},
926 {CTSVC_PROPERTY_SIP_LABEL, CTSVC_SEARCH_PROPERTY_ALL, "data3"},
929 const property_info_s __property_contact[] = {
930 {CTSVC_PROPERTY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
931 {CTSVC_PROPERTY_CONTACT_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* dispaly_name, reverse_display_name */
932 {CTSVC_PROPERTY_CONTACT_DISPLAY_SOURCE_DATA_ID, CTSVC_SEARCH_PROPERTY_ALL, "display_name_source"},
933 {CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_id"},
934 {CTSVC_PROPERTY_CONTACT_RINGTONE, CTSVC_SEARCH_PROPERTY_ALL, "ringtone_path"},
935 {CTSVC_PROPERTY_CONTACT_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_ALL, "image_thumbnail_path"},
936 {CTSVC_PROPERTY_CONTACT_IS_FAVORITE, CTSVC_SEARCH_PROPERTY_ALL, "is_favorite"},
937 {CTSVC_PROPERTY_CONTACT_HAS_PHONENUMBER, CTSVC_SEARCH_PROPERTY_ALL, "has_phonenumber"},
938 {CTSVC_PROPERTY_CONTACT_HAS_EMAIL, CTSVC_SEARCH_PROPERTY_ALL, "has_email"},
939 {CTSVC_PROPERTY_CONTACT_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
940 {CTSVC_PROPERTY_CONTACT_UID, CTSVC_SEARCH_PROPERTY_ALL, "uid"},
941 {CTSVC_PROPERTY_CONTACT_VIBRATION, CTSVC_SEARCH_PROPERTY_ALL, "vibration"},
942 {CTSVC_PROPERTY_CONTACT_MESSAGE_ALERT, CTSVC_SEARCH_PROPERTY_ALL, "message_alert"},
943 {CTSVC_PROPERTY_CONTACT_CHANGED_TIME, CTSVC_SEARCH_PROPERTY_ALL, "changed_time"},
944 {CTSVC_PROPERTY_CONTACT_LINK_MODE, CTSVC_SEARCH_PROPERTY_ALL, "link_mode"},
945 {CTSVC_PROPERTY_CONTACT_NAME, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_name},
946 {CTSVC_PROPERTY_CONTACT_COMPANY, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_company},
947 {CTSVC_PROPERTY_CONTACT_NOTE, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_note},
948 {CTSVC_PROPERTY_CONTACT_NUMBER, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_number},
949 {CTSVC_PROPERTY_CONTACT_EMAIL, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_email},
950 {CTSVC_PROPERTY_CONTACT_EVENT, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_event},
951 {CTSVC_PROPERTY_CONTACT_MESSENGER, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_messenger},
952 {CTSVC_PROPERTY_CONTACT_ADDRESS, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_address},
953 {CTSVC_PROPERTY_CONTACT_URL, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_url},
954 {CTSVC_PROPERTY_CONTACT_NICKNAME, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_nickname},
955 {CTSVC_PROPERTY_CONTACT_PROFILE, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_profile},
956 {CTSVC_PROPERTY_CONTACT_RELATIONSHIP, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_relationship},
957 {CTSVC_PROPERTY_CONTACT_IMAGE, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_image},
958 {CTSVC_PROPERTY_CONTACT_GROUP_RELATION, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_group_relation},
959 {CTSVC_PROPERTY_CONTACT_EXTENSION, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_extension},
960 {CTSVC_PROPERTY_CONTACT_SIP, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_sip},
963 const property_info_s __property_my_profile[] = {
964 {CTSVC_PROPERTY_MY_PROFILE_ID, CTSVC_SEARCH_PROPERTY_ALL, "my_profile_id"},
965 {CTSVC_PROPERTY_MY_PROFILE_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* dispaly_name, reverse_display_name */
966 {CTSVC_PROPERTY_MY_PROFILE_ADDRESSBOOK_ID, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_id"},
967 {CTSVC_PROPERTY_MY_PROFILE_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_ALL, "image_thumbnail_path"},
968 {CTSVC_PROPERTY_MY_PROFILE_UID, CTSVC_SEARCH_PROPERTY_ALL, "uid"},
969 {CTSVC_PROPERTY_MY_PROFILE_CHANGED_TIME, CTSVC_SEARCH_PROPERTY_ALL, "changed_time"},
970 {CTSVC_PROPERTY_MY_PROFILE_NAME, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_name},
971 {CTSVC_PROPERTY_MY_PROFILE_COMPANY, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_company},
972 {CTSVC_PROPERTY_MY_PROFILE_NOTE, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_note},
973 {CTSVC_PROPERTY_MY_PROFILE_NUMBER, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_number},
974 {CTSVC_PROPERTY_MY_PROFILE_EMAIL, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_email},
975 {CTSVC_PROPERTY_MY_PROFILE_EVENT, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_event},
976 {CTSVC_PROPERTY_MY_PROFILE_MESSENGER, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_messenger},
977 {CTSVC_PROPERTY_MY_PROFILE_ADDRESS, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_address},
978 {CTSVC_PROPERTY_MY_PROFILE_URL, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_url},
979 {CTSVC_PROPERTY_MY_PROFILE_NICKNAME, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_nickname},
980 {CTSVC_PROPERTY_MY_PROFILE_PROFILE, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_profile},
981 {CTSVC_PROPERTY_MY_PROFILE_RELATIONSHIP, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_relationship},
982 {CTSVC_PROPERTY_MY_PROFILE_IMAGE, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_image},
983 {CTSVC_PROPERTY_MY_PROFILE_EXTENSION, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_extension},
984 {CTSVC_PROPERTY_MY_PROFILE_SIP, CTSVC_SEARCH_PROPERTY_NONE, (void*)__property_sip},
987 const property_info_s __property_speeddial[] = { /* _contacts_speeddial */
988 {CTSVC_PROPERTY_SPEEDDIAL_DIAL_NUMBER, CTSVC_SEARCH_PROPERTY_ALL, "speed_number"},
989 {CTSVC_PROPERTY_SPEEDDIAL_NUMBER_ID, CTSVC_SEARCH_PROPERTY_ALL, "number_id"},
990 {CTSVC_PROPERTY_SPEEDDIAL_NUMBER, CTSVC_SEARCH_PROPERTY_ALL, "number"},
991 {CTSVC_PROPERTY_SPEEDDIAL_NUMBER_LABEL, CTSVC_SEARCH_PROPERTY_ALL, "label"},
992 {CTSVC_PROPERTY_SPEEDDIAL_NUMBER_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "type"},
993 {CTSVC_PROPERTY_SPEEDDIAL_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
994 {CTSVC_PROPERTY_SPEEDDIAL_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* display_name or reverse_display_name */
995 {CTSVC_PROPERTY_SPEEDDIAL_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_ALL, "image_thumbnail_path"},
996 {CTSVC_PROPERTY_SPEEDDIAL_NORMALIZED_NUMBER, CTSVC_SEARCH_PROPERTY_FILTER, "normalized_number"},
997 {CTSVC_PROPERTY_SPEEDDIAL_CLEANED_NUMBER, CTSVC_SEARCH_PROPERTY_FILTER, "cleaned_number"},
998 {CTSVC_PROPERTY_SPEEDDIAL_NUMBER_FILTER, CTSVC_SEARCH_PROPERTY_FILTER, "minmatch"},
1001 #ifdef ENABLE_LOG_FEATURE
1002 const property_info_s __property_phonelog[] = { /* _contacts_phone_log */
1003 {CTSVC_PROPERTY_PHONELOG_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
1004 {CTSVC_PROPERTY_PHONELOG_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
1005 {CTSVC_PROPERTY_PHONELOG_ADDRESS, CTSVC_SEARCH_PROPERTY_ALL, "number"},
1006 {CTSVC_PROPERTY_PHONELOG_LOG_TIME, CTSVC_SEARCH_PROPERTY_ALL, "log_time"},
1007 {CTSVC_PROPERTY_PHONELOG_LOG_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "log_type"},
1008 {CTSVC_PROPERTY_PHONELOG_EXTRA_DATA1, CTSVC_SEARCH_PROPERTY_ALL, "data1"}, /* duration */
1009 {CTSVC_PROPERTY_PHONELOG_EXTRA_DATA2, CTSVC_SEARCH_PROPERTY_ALL, "data2"}, /* short message, email subject */
1010 {CTSVC_PROPERTY_PHONELOG_NORMALIZED_ADDRESS, CTSVC_SEARCH_PROPERTY_FILTER, "normal_num"},
1011 {CTSVC_PROPERTY_PHONELOG_CLEANED_ADDRESS, CTSVC_SEARCH_PROPERTY_FILTER, "clean_num"},
1012 {CTSVC_PROPERTY_PHONELOG_ADDRESS_FILTER, CTSVC_SEARCH_PROPERTY_FILTER, "minmatch"},
1013 {CTSVC_PROPERTY_PHONELOG_SIM_SLOT_NO, CTSVC_SEARCH_PROPERTY_ALL, "sim_id"},
1015 #endif /* ENABLE_LOG_FEATURE */
1017 /* search properties */
1018 const property_info_s __property_person_contact[] = { /* _contacts_person_contact */
1019 {CTSVC_PROPERTY_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
1020 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1021 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX, CTSVC_SEARCH_PROPERTY_PROJECTION, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1022 {CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_PROJECTION, "name_contact_id"},
1023 {CTSVC_PROPERTY_PERSON_RINGTONE, CTSVC_SEARCH_PROPERTY_PROJECTION, "ringtone_path"},
1024 {CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_PROJECTION, "image_thumbnail_path"},
1025 {CTSVC_PROPERTY_PERSON_VIBRATION, CTSVC_SEARCH_PROPERTY_PROJECTION, "vibration"},
1026 {CTSVC_PROPERTY_PERSON_MESSAGE_ALERT, CTSVC_SEARCH_PROPERTY_PROJECTION, "message_alert"},
1027 {CTSVC_PROPERTY_PERSON_STATUS, CTSVC_SEARCH_PROPERTY_PROJECTION, "status"},
1028 {CTSVC_PROPERTY_PERSON_IS_FAVORITE, CTSVC_SEARCH_PROPERTY_ALL, "is_favorite"},
1029 {CTSVC_PROPERTY_PERSON_LINK_COUNT, CTSVC_SEARCH_PROPERTY_PROJECTION, "link_count"},
1030 {CTSVC_PROPERTY_PERSON_ADDRESSBOOK_IDS, CTSVC_SEARCH_PROPERTY_PROJECTION, "addressbook_ids"},
1031 {CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER, CTSVC_SEARCH_PROPERTY_ALL, "has_phonenumber"},
1032 {CTSVC_PROPERTY_PERSON_HAS_EMAIL, CTSVC_SEARCH_PROPERTY_ALL, "has_email"},
1034 {CTSVC_PROPERTY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
1035 {CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_id"},
1037 {CTSVC_PROPERTY_ADDRESSBOOK_NAME, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_name"},
1038 {CTSVC_PROPERTY_ADDRESSBOOK_MODE, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_mode"},
1039 {CTSVC_PROPERTY_PERSON_SNIPPET_TYPE, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data type */
1040 {CTSVC_PROPERTY_PERSON_SNIPPET_STRING, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data string */
1043 const property_info_s __property_person_number[] = { /* _contacts_person_number */
1044 {CTSVC_PROPERTY_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
1045 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1046 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX, CTSVC_SEARCH_PROPERTY_PROJECTION, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1047 {CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_PROJECTION, "name_contact_id"},
1048 {CTSVC_PROPERTY_PERSON_RINGTONE, CTSVC_SEARCH_PROPERTY_PROJECTION, "ringtone_path"},
1049 {CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_PROJECTION, "image_thumbnail_path"},
1050 {CTSVC_PROPERTY_PERSON_VIBRATION, CTSVC_SEARCH_PROPERTY_PROJECTION, "vibration"},
1051 {CTSVC_PROPERTY_PERSON_MESSAGE_ALERT, CTSVC_SEARCH_PROPERTY_PROJECTION, "message_alert"},
1052 {CTSVC_PROPERTY_PERSON_IS_FAVORITE, CTSVC_SEARCH_PROPERTY_ALL, "is_favorite"},
1053 {CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER, CTSVC_SEARCH_PROPERTY_ALL, "has_phonenumber"},
1054 {CTSVC_PROPERTY_PERSON_HAS_EMAIL, CTSVC_SEARCH_PROPERTY_ALL, "has_email"},
1056 {CTSVC_PROPERTY_NUMBER_ID, CTSVC_SEARCH_PROPERTY_ALL, "number_id"},
1057 {CTSVC_PROPERTY_DATA_IS_PRIMARY_DEFAULT, CTSVC_SEARCH_PROPERTY_ALL, "is_primary_default"},
1058 {CTSVC_PROPERTY_NUMBER_TYPE, CTSVC_SEARCH_PROPERTY_PROJECTION, "type"},
1059 {CTSVC_PROPERTY_NUMBER_LABEL, CTSVC_SEARCH_PROPERTY_PROJECTION, "label"},
1060 {CTSVC_PROPERTY_NUMBER_NUMBER, CTSVC_SEARCH_PROPERTY_ALL, "number"},
1061 {CTSVC_PROPERTY_NUMBER_NUMBER_FILTER, CTSVC_SEARCH_PROPERTY_FILTER, "minmatch"},
1062 {CTSVC_PROPERTY_NUMBER_NORMALIZED_NUMBER, CTSVC_SEARCH_PROPERTY_FILTER, "normalized_number"},
1063 {CTSVC_PROPERTY_NUMBER_CLEANED_NUMBER, CTSVC_SEARCH_PROPERTY_FILTER, "cleaned_number"},
1064 {CTSVC_PROPERTY_PERSON_SNIPPET_TYPE, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data type */
1065 {CTSVC_PROPERTY_PERSON_SNIPPET_STRING, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data string */
1068 const property_info_s __property_person_email[] = { /* _contacts_person_email */
1069 {CTSVC_PROPERTY_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
1070 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1071 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX, CTSVC_SEARCH_PROPERTY_PROJECTION, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1072 {CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_PROJECTION, "name_contact_id"},
1073 {CTSVC_PROPERTY_PERSON_RINGTONE, CTSVC_SEARCH_PROPERTY_PROJECTION, "ringtone_path"},
1074 {CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_PROJECTION, "image_thumbnail_path"},
1075 {CTSVC_PROPERTY_PERSON_VIBRATION, CTSVC_SEARCH_PROPERTY_PROJECTION, "vibration"},
1076 {CTSVC_PROPERTY_PERSON_MESSAGE_ALERT, CTSVC_SEARCH_PROPERTY_PROJECTION, "message_alert"},
1077 {CTSVC_PROPERTY_PERSON_IS_FAVORITE, CTSVC_SEARCH_PROPERTY_ALL, "is_favorite"},
1078 {CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER, CTSVC_SEARCH_PROPERTY_ALL, "has_phonenumber"},
1079 {CTSVC_PROPERTY_PERSON_HAS_EMAIL, CTSVC_SEARCH_PROPERTY_ALL, "has_email"},
1081 {CTSVC_PROPERTY_EMAIL_ID, CTSVC_SEARCH_PROPERTY_ALL, "email_id"},
1082 {CTSVC_PROPERTY_EMAIL_TYPE, CTSVC_SEARCH_PROPERTY_PROJECTION, "type"},
1083 {CTSVC_PROPERTY_EMAIL_LABEL, CTSVC_SEARCH_PROPERTY_PROJECTION, "label"},
1084 {CTSVC_PROPERTY_DATA_IS_PRIMARY_DEFAULT, CTSVC_SEARCH_PROPERTY_ALL, "is_primary_default"},
1085 {CTSVC_PROPERTY_EMAIL_EMAIL, CTSVC_SEARCH_PROPERTY_ALL, "email"},
1086 {CTSVC_PROPERTY_PERSON_SNIPPET_TYPE, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data type */
1087 {CTSVC_PROPERTY_PERSON_SNIPPET_STRING, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data string */
1090 const property_info_s __property_person_grouprel[] = { /* _contacts_person_grouprel */
1091 {CTSVC_PROPERTY_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
1092 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1093 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX, CTSVC_SEARCH_PROPERTY_PROJECTION, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1094 {CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_PROJECTION, "name_contact_id"},
1095 {CTSVC_PROPERTY_PERSON_RINGTONE, CTSVC_SEARCH_PROPERTY_PROJECTION, "ringtone_path"},
1096 {CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_PROJECTION, "image_thumbnail_path"},
1097 {CTSVC_PROPERTY_PERSON_VIBRATION, CTSVC_SEARCH_PROPERTY_PROJECTION, "vibration"},
1098 {CTSVC_PROPERTY_PERSON_MESSAGE_ALERT, CTSVC_SEARCH_PROPERTY_PROJECTION, "message_alert"},
1099 {CTSVC_PROPERTY_PERSON_STATUS, CTSVC_SEARCH_PROPERTY_PROJECTION, "status"},
1100 {CTSVC_PROPERTY_PERSON_IS_FAVORITE, CTSVC_SEARCH_PROPERTY_ALL, "is_favorite"},
1101 {CTSVC_PROPERTY_PERSON_LINK_COUNT, CTSVC_SEARCH_PROPERTY_PROJECTION, "link_count"},
1102 {CTSVC_PROPERTY_PERSON_ADDRESSBOOK_IDS, CTSVC_SEARCH_PROPERTY_PROJECTION, "addressbook_ids"},
1103 {CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER, CTSVC_SEARCH_PROPERTY_ALL, "has_phonenumber"},
1104 {CTSVC_PROPERTY_PERSON_HAS_EMAIL, CTSVC_SEARCH_PROPERTY_ALL, "has_email"},
1106 {CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_id"},
1107 /* group relation */
1108 {CTSVC_PROPERTY_GROUP_RELATION_GROUP_ID, CTSVC_SEARCH_PROPERTY_ALL, "group_id"},
1109 {CTSVC_PROPERTY_GROUP_RELATION_CONTACT_ID, CTSVC_SEARCH_PROPERTY_PROJECTION, "contact_id"},
1111 {CTSVC_PROPERTY_ADDRESSBOOK_NAME, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_name"},
1112 {CTSVC_PROPERTY_ADDRESSBOOK_MODE, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_mode"},
1113 {CTSVC_PROPERTY_PERSON_SNIPPET_TYPE, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data type */
1114 {CTSVC_PROPERTY_PERSON_SNIPPET_STRING, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data string */
1117 const property_info_s __property_person_group_assigned[] = { /* _contacts_person_group_assigned */
1118 {CTSVC_PROPERTY_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
1119 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1120 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX, CTSVC_SEARCH_PROPERTY_PROJECTION, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1121 {CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_PROJECTION, "name_contact_id"},
1122 {CTSVC_PROPERTY_PERSON_RINGTONE, CTSVC_SEARCH_PROPERTY_PROJECTION, "ringtone_path"},
1123 {CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_PROJECTION, "image_thumbnail_path"},
1124 {CTSVC_PROPERTY_PERSON_VIBRATION, CTSVC_SEARCH_PROPERTY_PROJECTION, "vibration"},
1125 {CTSVC_PROPERTY_PERSON_MESSAGE_ALERT, CTSVC_SEARCH_PROPERTY_PROJECTION, "message_alert"},
1126 {CTSVC_PROPERTY_PERSON_STATUS, CTSVC_SEARCH_PROPERTY_PROJECTION, "status"},
1127 {CTSVC_PROPERTY_PERSON_IS_FAVORITE, CTSVC_SEARCH_PROPERTY_ALL, "is_favorite"},
1128 {CTSVC_PROPERTY_PERSON_LINK_COUNT, CTSVC_SEARCH_PROPERTY_PROJECTION, "link_count"},
1129 {CTSVC_PROPERTY_PERSON_ADDRESSBOOK_IDS, CTSVC_SEARCH_PROPERTY_PROJECTION, "addressbook_ids"},
1130 {CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER, CTSVC_SEARCH_PROPERTY_ALL, "has_phonenumber"},
1131 {CTSVC_PROPERTY_PERSON_HAS_EMAIL, CTSVC_SEARCH_PROPERTY_ALL, "has_email"},
1133 {CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_id"},
1134 /* group relation */
1135 {CTSVC_PROPERTY_GROUP_RELATION_GROUP_ID, CTSVC_SEARCH_PROPERTY_ALL, "group_id"},
1136 {CTSVC_PROPERTY_GROUP_RELATION_CONTACT_ID, CTSVC_SEARCH_PROPERTY_PROJECTION, "contact_id"},
1138 {CTSVC_PROPERTY_ADDRESSBOOK_MODE, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_mode"},
1139 {CTSVC_PROPERTY_PERSON_SNIPPET_TYPE, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data type */
1140 {CTSVC_PROPERTY_PERSON_SNIPPET_STRING, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data string */
1143 const property_info_s __property_person_group_not_assigned[] = { /* _contacts_person_group_not_assigned */
1144 {CTSVC_PROPERTY_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
1145 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1146 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX, CTSVC_SEARCH_PROPERTY_PROJECTION, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1147 {CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_PROJECTION, "name_contact_id"},
1148 {CTSVC_PROPERTY_PERSON_RINGTONE, CTSVC_SEARCH_PROPERTY_PROJECTION, "ringtone_path"},
1149 {CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_PROJECTION, "image_thumbnail_path"},
1150 {CTSVC_PROPERTY_PERSON_VIBRATION, CTSVC_SEARCH_PROPERTY_PROJECTION, "vibration"},
1151 {CTSVC_PROPERTY_PERSON_MESSAGE_ALERT, CTSVC_SEARCH_PROPERTY_PROJECTION, "message_alert"},
1152 {CTSVC_PROPERTY_PERSON_STATUS, CTSVC_SEARCH_PROPERTY_PROJECTION, "status"},
1153 {CTSVC_PROPERTY_PERSON_IS_FAVORITE, CTSVC_SEARCH_PROPERTY_ALL, "is_favorite"},
1154 {CTSVC_PROPERTY_PERSON_LINK_COUNT, CTSVC_SEARCH_PROPERTY_PROJECTION, "link_count"},
1155 {CTSVC_PROPERTY_PERSON_ADDRESSBOOK_IDS, CTSVC_SEARCH_PROPERTY_PROJECTION, "addressbook_ids"},
1156 {CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER, CTSVC_SEARCH_PROPERTY_ALL, "has_phonenumber"},
1157 {CTSVC_PROPERTY_PERSON_HAS_EMAIL, CTSVC_SEARCH_PROPERTY_ALL, "has_email"},
1159 {CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_id"},
1160 {CTSVC_PROPERTY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_PROJECTION, "contact_id"},
1162 {CTSVC_PROPERTY_ADDRESSBOOK_MODE, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_mode"},
1163 {CTSVC_PROPERTY_PERSON_SNIPPET_TYPE, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data type */
1164 {CTSVC_PROPERTY_PERSON_SNIPPET_STRING, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data string */
1167 #ifdef ENABLE_LOG_FEATURE
1168 const property_info_s __property_person_phonelog[] = { /* _contacts_person_phone_log */
1169 {CTSVC_PROPERTY_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "id"},
1170 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1171 {CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_PROJECTION, "image_thumbnail_path"},
1173 {CTSVC_PROPERTY_PHONELOG_ID, CTSVC_SEARCH_PROPERTY_ALL, "phonelog_id"},
1174 {CTSVC_PROPERTY_PHONELOG_ADDRESS, CTSVC_SEARCH_PROPERTY_ALL, "address"},
1175 {CTSVC_PROPERTY_DATA_DATA1, CTSVC_SEARCH_PROPERTY_PROJECTION, "address_type"},
1176 {CTSVC_PROPERTY_PHONELOG_LOG_TIME, CTSVC_SEARCH_PROPERTY_ALL, "log_time"},
1177 {CTSVC_PROPERTY_PHONELOG_LOG_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "log_type"},
1178 {CTSVC_PROPERTY_PHONELOG_EXTRA_DATA1, CTSVC_SEARCH_PROPERTY_PROJECTION, "data1"}, /* duration */
1179 {CTSVC_PROPERTY_PHONELOG_EXTRA_DATA2, CTSVC_SEARCH_PROPERTY_PROJECTION, "data2"}, /* message_id */
1180 {CTSVC_PROPERTY_PHONELOG_NORMALIZED_ADDRESS, CTSVC_SEARCH_PROPERTY_FILTER, "normal_num"},
1181 {CTSVC_PROPERTY_PHONELOG_CLEANED_ADDRESS, CTSVC_SEARCH_PROPERTY_FILTER, "clean_num"},
1182 {CTSVC_PROPERTY_PHONELOG_ADDRESS_FILTER, CTSVC_SEARCH_PROPERTY_FILTER, "minmatch"},
1183 {CTSVC_PROPERTY_PHONELOG_SIM_SLOT_NO, CTSVC_SEARCH_PROPERTY_ALL, "sim_id"},
1185 #endif /* ENABLE_LOG_FEATURE */
1187 const property_info_s __property_person_usage[] = { /* _contacts_person_usage */
1188 {CTSVC_PROPERTY_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
1189 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1190 {CTSVC_PROPERTY_PERSON_DISPLAY_NAME_INDEX, CTSVC_SEARCH_PROPERTY_PROJECTION, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1191 {CTSVC_PROPERTY_PERSON_DISPLAY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_PROJECTION, "name_contact_id"},
1192 {CTSVC_PROPERTY_PERSON_RINGTONE, CTSVC_SEARCH_PROPERTY_PROJECTION, "ringtone_path"},
1193 {CTSVC_PROPERTY_PERSON_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_PROJECTION, "image_thumbnail_path"},
1194 {CTSVC_PROPERTY_PERSON_VIBRATION, CTSVC_SEARCH_PROPERTY_PROJECTION, "vibration"},
1195 {CTSVC_PROPERTY_PERSON_MESSAGE_ALERT, CTSVC_SEARCH_PROPERTY_PROJECTION, "message_alert"},
1196 {CTSVC_PROPERTY_PERSON_IS_FAVORITE, CTSVC_SEARCH_PROPERTY_ALL, "is_favorite"},
1197 {CTSVC_PROPERTY_PERSON_HAS_PHONENUMBER, CTSVC_SEARCH_PROPERTY_ALL, "has_phonenumber"},
1198 {CTSVC_PROPERTY_PERSON_HAS_EMAIL, CTSVC_SEARCH_PROPERTY_ALL, "has_email"},
1200 {CTSVC_PROPERTY_PERSON_USAGE_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "usage_type"},
1201 {CTSVC_PROPERTY_PERSON_TIMES_USED, CTSVC_SEARCH_PROPERTY_ALL, "times_used"},
1204 const property_info_s __property_contact_number[] = { /* _contacts_contact_number */
1205 {CTSVC_PROPERTY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
1206 {CTSVC_PROPERTY_CONTACT_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1207 {CTSVC_PROPERTY_CONTACT_DISPLAY_SOURCE_DATA_ID, CTSVC_SEARCH_PROPERTY_PROJECTION, "display_name_source"},
1208 {CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_id"},
1209 {CTSVC_PROPERTY_CONTACT_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
1210 {CTSVC_PROPERTY_CONTACT_RINGTONE, CTSVC_SEARCH_PROPERTY_PROJECTION, "ringtone_path"},
1211 {CTSVC_PROPERTY_CONTACT_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_PROJECTION, "image_thumbnail_path"},
1213 {CTSVC_PROPERTY_NUMBER_ID, CTSVC_SEARCH_PROPERTY_ALL, "number_id"},
1214 {CTSVC_PROPERTY_NUMBER_TYPE, CTSVC_SEARCH_PROPERTY_PROJECTION, "type"},
1215 {CTSVC_PROPERTY_NUMBER_LABEL, CTSVC_SEARCH_PROPERTY_PROJECTION, "label"},
1216 {CTSVC_PROPERTY_NUMBER_IS_DEFAULT, CTSVC_SEARCH_PROPERTY_ALL, "is_default"},
1217 {CTSVC_PROPERTY_NUMBER_NUMBER, CTSVC_SEARCH_PROPERTY_ALL, "number"},
1218 {CTSVC_PROPERTY_NUMBER_NUMBER_FILTER, CTSVC_SEARCH_PROPERTY_FILTER, "minmatch"},
1219 {CTSVC_PROPERTY_NUMBER_NORMALIZED_NUMBER, CTSVC_SEARCH_PROPERTY_FILTER, "normalized_number"},
1220 {CTSVC_PROPERTY_NUMBER_CLEANED_NUMBER, CTSVC_SEARCH_PROPERTY_FILTER, "cleaned_number"},
1223 const property_info_s __property_contact_email[] = { /* _contacts_contact_email */
1224 {CTSVC_PROPERTY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
1225 {CTSVC_PROPERTY_CONTACT_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1226 {CTSVC_PROPERTY_CONTACT_DISPLAY_SOURCE_DATA_ID, CTSVC_SEARCH_PROPERTY_ALL, "display_name_source"},
1227 {CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_id"},
1228 {CTSVC_PROPERTY_CONTACT_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
1229 {CTSVC_PROPERTY_CONTACT_RINGTONE, CTSVC_SEARCH_PROPERTY_PROJECTION, "ringtone_path"},
1230 {CTSVC_PROPERTY_CONTACT_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_PROJECTION, "image_thumbnail_path"},
1232 {CTSVC_PROPERTY_EMAIL_ID, CTSVC_SEARCH_PROPERTY_ALL, "email_id"},
1233 {CTSVC_PROPERTY_EMAIL_TYPE, CTSVC_SEARCH_PROPERTY_PROJECTION, "type"},
1234 {CTSVC_PROPERTY_EMAIL_LABEL, CTSVC_SEARCH_PROPERTY_PROJECTION, "label"},
1235 {CTSVC_PROPERTY_EMAIL_IS_DEFAULT, CTSVC_SEARCH_PROPERTY_ALL, "is_default"},
1236 {CTSVC_PROPERTY_EMAIL_EMAIL, CTSVC_SEARCH_PROPERTY_ALL, "email"},
1239 const property_info_s __property_contact_grouprel[] = { /* _contacts_contact_grouprel */
1240 {CTSVC_PROPERTY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
1241 {CTSVC_PROPERTY_CONTACT_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1242 {CTSVC_PROPERTY_CONTACT_DISPLAY_SOURCE_DATA_ID, CTSVC_SEARCH_PROPERTY_PROJECTION, "display_name_source"},
1243 {CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_id"},
1244 {CTSVC_PROPERTY_CONTACT_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
1245 {CTSVC_PROPERTY_CONTACT_RINGTONE, CTSVC_SEARCH_PROPERTY_PROJECTION, "ringtone_path"},
1246 {CTSVC_PROPERTY_CONTACT_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_PROJECTION, "image_thumbnail_path"},
1247 /* group relation */
1248 {CTSVC_PROPERTY_GROUP_RELATION_GROUP_ID, CTSVC_SEARCH_PROPERTY_ALL, "group_id"},
1249 {CTSVC_PROPERTY_GROUP_RELATION_GROUP_NAME, CTSVC_SEARCH_PROPERTY_PROJECTION, "group_name"},
1250 {CTSVC_PROPERTY_PERSON_SNIPPET_TYPE, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data type */
1251 {CTSVC_PROPERTY_PERSON_SNIPPET_STRING, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* data string */
1254 const property_info_s __property_contact_activity[] = { /* _contacts_contact_activity */
1255 {CTSVC_PROPERTY_CONTACT_ID, CTSVC_SEARCH_PROPERTY_ALL, "contact_id"},
1256 {CTSVC_PROPERTY_CONTACT_DISPLAY_NAME, CTSVC_SEARCH_PROPERTY_ALL, NULL}, /* "dispaly_name" or "reverse_dispaly_name" */
1257 {CTSVC_PROPERTY_CONTACT_DISPLAY_SOURCE_DATA_ID, CTSVC_SEARCH_PROPERTY_PROJECTION, "display_name_source"},
1258 {CTSVC_PROPERTY_CONTACT_ADDRESSBOOK_ID, CTSVC_SEARCH_PROPERTY_ALL, "addressbook_id"},
1259 {CTSVC_PROPERTY_CONTACT_PERSON_ID, CTSVC_SEARCH_PROPERTY_ALL, "person_id"},
1260 {CTSVC_PROPERTY_CONTACT_RINGTONE, CTSVC_SEARCH_PROPERTY_PROJECTION, "ringtone_path"},
1261 {CTSVC_PROPERTY_CONTACT_IMAGE_THUMBNAIL, CTSVC_SEARCH_PROPERTY_PROJECTION, "image_thumbnail_path"},
1262 {CTSVC_PROPERTY_ACTIVITY_ID, CTSVC_SEARCH_PROPERTY_ALL, "activity_id"},
1263 {CTSVC_PROPERTY_ACTIVITY_SOURCE_NAME, CTSVC_SEARCH_PROPERTY_ALL, "source_name"},
1264 {CTSVC_PROPERTY_ACTIVITY_STATUS, CTSVC_SEARCH_PROPERTY_PROJECTION, "status"},
1265 {CTSVC_PROPERTY_ACTIVITY_TIMESTAMP, CTSVC_SEARCH_PROPERTY_ALL, "timestamp"},
1266 {CTSVC_PROPERTY_ACTIVITY_SERVICE_OPERATION, CTSVC_SEARCH_PROPERTY_ALL, "service_operation"},
1267 {CTSVC_PROPERTY_ACTIVITY_URI, CTSVC_SEARCH_PROPERTY_ALL, "uri"},
1268 {CTSVC_PROPERTY_ADDRESSBOOK_ACCOUNT_ID, CTSVC_SEARCH_PROPERTY_ALL, "account_id"},
1271 #ifdef ENABLE_LOG_FEATURE
1272 const property_info_s __property_phonelog_stat[] = { /* _contacts_phone_log_stat */
1273 {CTSVC_PROPERTY_PHONELOG_STAT_LOG_COUNT, CTSVC_SEARCH_PROPERTY_PROJECTION, "log_count"},
1274 {CTSVC_PROPERTY_PHONELOG_STAT_LOG_TYPE, CTSVC_SEARCH_PROPERTY_ALL, "log_type"},
1275 {CTSVC_PROPERTY_PHONELOG_STAT_SIM_SLOT_NO, CTSVC_SEARCH_PROPERTY_ALL, "sim_id"},
1281 ctsvc_record_type_e type;
1282 property_info_s *properties;
1283 unsigned int property_count;
1286 #define PTR_COUNT(X) (void*)(X), sizeof(X)/sizeof(property_info_s)
1288 static const view_uri_info_s __tables[] = {
1289 {CTSVC_VIEW_URI_ADDRESSBOOK, CTSVC_RECORD_ADDRESSBOOK, PTR_COUNT(__property_addressbook)},
1290 {CTSVC_VIEW_URI_GROUP, CTSVC_RECORD_GROUP, PTR_COUNT(__property_group)},
1291 {CTSVC_VIEW_URI_PERSON, CTSVC_RECORD_PERSON, PTR_COUNT(__property_person)},
1292 {CTSVC_VIEW_URI_SIMPLE_CONTACT, CTSVC_RECORD_SIMPLE_CONTACT, PTR_COUNT(__property_simple_contact)},
1293 {CTSVC_VIEW_URI_CONTACT, CTSVC_RECORD_CONTACT, PTR_COUNT(__property_contact)},
1294 {CTSVC_VIEW_URI_MY_PROFILE, CTSVC_RECORD_MY_PROFILE, PTR_COUNT(__property_my_profile)},
1295 {CTSVC_VIEW_URI_ACTIVITY, CTSVC_RECORD_ACTIVITY, PTR_COUNT(__property_activity)},
1296 {CTSVC_VIEW_URI_ACTIVITY_PHOTO, CTSVC_RECORD_ACTIVITY_PHOTO, PTR_COUNT(__property_activity_photo)},
1297 #ifdef ENABLE_LOG_FEATURE
1298 {CTSVC_VIEW_URI_PHONELOG, CTSVC_RECORD_PHONELOG, PTR_COUNT(__property_phonelog)},
1299 #endif /* ENABLE_LOG_FEATURE */
1300 {CTSVC_VIEW_URI_SPEEDDIAL, CTSVC_RECORD_SPEEDDIAL, PTR_COUNT(__property_speeddial)},
1301 {CTSVC_VIEW_URI_SDN, CTSVC_RECORD_SDN, PTR_COUNT(__property_sdn)},
1303 {CTSVC_VIEW_URI_NAME, CTSVC_RECORD_NAME, PTR_COUNT(__property_name)},
1304 {CTSVC_VIEW_URI_COMPANY, CTSVC_RECORD_COMPANY, PTR_COUNT(__property_company)},
1305 {CTSVC_VIEW_URI_NUMBER, CTSVC_RECORD_NUMBER, PTR_COUNT(__property_number)},
1306 {CTSVC_VIEW_URI_EMAIL, CTSVC_RECORD_EMAIL, PTR_COUNT(__property_email)},
1307 {CTSVC_VIEW_URI_URL, CTSVC_RECORD_URL, PTR_COUNT(__property_url)},
1308 {CTSVC_VIEW_URI_ADDRESS, CTSVC_RECORD_ADDRESS, PTR_COUNT(__property_address)},
1309 {CTSVC_VIEW_URI_PROFILE, CTSVC_RECORD_PROFILE, PTR_COUNT(__property_profile)},
1310 {CTSVC_VIEW_URI_RELATIONSHIP, CTSVC_RECORD_RELATIONSHIP, PTR_COUNT(__property_relationship)},
1311 {CTSVC_VIEW_URI_IMAGE, CTSVC_RECORD_IMAGE, PTR_COUNT(__property_image)},
1312 {CTSVC_VIEW_URI_NOTE, CTSVC_RECORD_NOTE, PTR_COUNT(__property_note)},
1313 {CTSVC_VIEW_URI_NICKNAME, CTSVC_RECORD_NICKNAME, PTR_COUNT(__property_nickname)},
1314 {CTSVC_VIEW_URI_EVENT, CTSVC_RECORD_EVENT, PTR_COUNT(__property_event)},
1315 {CTSVC_VIEW_URI_MESSENGER, CTSVC_RECORD_MESSENGER, PTR_COUNT(__property_messenger)},
1316 {CTSVC_VIEW_URI_GROUP_RELATION, CTSVC_RECORD_GROUP_RELATION, PTR_COUNT(__property_group_relation)},
1317 {CTSVC_VIEW_URI_EXTENSION, CTSVC_RECORD_EXTENSION, PTR_COUNT(__property_extension)},
1318 {CTSVC_VIEW_URI_SIP, CTSVC_RECORD_SIP, PTR_COUNT(__property_sip)},
1320 {CTSVC_VIEW_URI_GROUPS_UPDATED_INFO, CTSVC_RECORD_UPDATED_INFO, NULL, 0},
1321 {CTSVC_VIEW_URI_GROUPS_MEMBER_UPDATED_INFO, CTSVC_RECORD_UPDATED_INFO, NULL, 0},
1322 {CTSVC_VIEW_URI_CONTACTS_UPDATED_INFO, CTSVC_RECORD_UPDATED_INFO, NULL, 0},
1323 {CTSVC_VIEW_URI_MY_PROFILE_UPDATED_INFO, CTSVC_RECORD_UPDATED_INFO, NULL, 0},
1324 {CTSVC_VIEW_URI_GROUPRELS_UPDATED_INFO, CTSVC_RECORD_RESULT, NULL, 0},
1326 {CTSVC_VIEW_URI_READ_ONLY_PERSON_CONTACT, CTSVC_RECORD_RESULT, PTR_COUNT(__property_person_contact)},
1327 {CTSVC_VIEW_URI_READ_ONLY_PERSON_NUMBER, CTSVC_RECORD_RESULT, PTR_COUNT(__property_person_number)},
1328 {CTSVC_VIEW_URI_READ_ONLY_PERSON_EMAIL, CTSVC_RECORD_RESULT, PTR_COUNT(__property_person_email)},
1329 {CTSVC_VIEW_URI_READ_ONLY_PERSON_GROUP, CTSVC_RECORD_RESULT, PTR_COUNT(__property_person_grouprel)},
1330 {CTSVC_VIEW_URI_READ_ONLY_PERSON_GROUP_ASSIGNED, CTSVC_RECORD_RESULT, PTR_COUNT(__property_person_group_assigned)},
1331 {CTSVC_VIEW_URI_READ_ONLY_PERSON_GROUP_NOT_ASSIGNED, CTSVC_RECORD_RESULT, PTR_COUNT(__property_person_group_not_assigned)},
1332 #ifdef ENABLE_LOG_FEATURE
1333 {CTSVC_VIEW_URI_READ_ONLY_PERSON_PHONELOG, CTSVC_RECORD_RESULT, PTR_COUNT(__property_person_phonelog)},
1334 #endif /* ENABLE_LOG_FEATURE */
1335 {CTSVC_VIEW_URI_READ_ONLY_PERSON_USAGE, CTSVC_RECORD_RESULT, PTR_COUNT(__property_person_usage)},
1337 {CTSVC_VIEW_URI_READ_ONLY_CONTACT_NUMBER, CTSVC_RECORD_RESULT, PTR_COUNT(__property_contact_number)},
1338 {CTSVC_VIEW_URI_READ_ONLY_CONTACT_EMAIL, CTSVC_RECORD_RESULT, PTR_COUNT(__property_contact_email)},
1339 {CTSVC_VIEW_URI_READ_ONLY_CONTACT_GROUP, CTSVC_RECORD_RESULT, PTR_COUNT(__property_contact_grouprel)},
1340 {CTSVC_VIEW_URI_READ_ONLY_CONTACT_ACTIVITY, CTSVC_RECORD_RESULT, PTR_COUNT(__property_contact_activity)},
1341 #ifdef ENABLE_LOG_FEATURE
1342 {CTSVC_VIEW_URI_READ_ONLY_PHONELOG_STAT, CTSVC_RECORD_RESULT, PTR_COUNT(__property_phonelog_stat)},
1343 #endif /* ENABLE_LOG_FEATURE */
1346 static GHashTable *__ctsvc_view_uri_hash = NULL;
1348 #ifndef _CONTACTS_IPC_SERVER /* native or client library */
1349 static int __ctsvc_view_ref_count = 0;
1352 void ctsvc_view_uri_init()
1357 #ifndef _CONTACTS_IPC_SERVER /* native or client library */
1358 /* it is called in mutex lock */
1359 __ctsvc_view_ref_count++;
1362 if (__ctsvc_view_uri_hash)
1365 __ctsvc_view_uri_hash = g_hash_table_new(g_str_hash, g_str_equal);
1368 count = sizeof(__tables)/sizeof(view_uri_info_s);
1369 for (i = 0; i < count; i++)
1370 g_hash_table_insert(__ctsvc_view_uri_hash, __tables[i].view_uri, GINT_TO_POINTER(&__tables[i]));
1373 void ctsvc_view_uri_deinit()
1375 #ifndef _CONTACTS_IPC_SERVER /* native or client library */
1376 /* it is called in mutex lock */
1377 __ctsvc_view_ref_count--;
1378 if (__ctsvc_view_ref_count != 0)
1381 if (NULL == __ctsvc_view_uri_hash) {
1382 ERR("contacts-service is not initialized");
1386 g_hash_table_destroy(__ctsvc_view_uri_hash);
1387 __ctsvc_view_uri_hash = NULL;
1391 ctsvc_record_type_e ctsvc_view_get_record_type(const char *view_uri)
1393 view_uri_info_s *view_uri_info = NULL;
1394 ctsvc_record_type_e type = CTSVC_RECORD_INVALID;
1396 if (NULL == __ctsvc_view_uri_hash) {
1397 ERR("contacts-service is not initialized");
1401 view_uri_info = g_hash_table_lookup(__ctsvc_view_uri_hash, view_uri);
1403 type = view_uri_info->type;
1408 const char* ctsvc_view_get_uri(const char *view_uri)
1410 view_uri_info_s *view_uri_info = NULL;
1412 if (NULL == __ctsvc_view_uri_hash) {
1413 ERR("contacts-service is not initialized");
1417 view_uri_info = g_hash_table_lookup(__ctsvc_view_uri_hash, view_uri);
1419 return view_uri_info->view_uri;
1424 const property_info_s* ctsvc_view_get_all_property_infos(const char *view_uri, unsigned int *count)
1426 view_uri_info_s *view_uri_info = NULL;
1428 if (NULL == __ctsvc_view_uri_hash) {
1429 ERR("contacts-service is not initialized");
1433 view_uri_info = g_hash_table_lookup(__ctsvc_view_uri_hash, view_uri);
1434 if (view_uri_info) {
1435 *count = view_uri_info->property_count;
1436 return view_uri_info->properties;