|
1 /**************************************************************************** |
|
2 ** |
|
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
4 ** All rights reserved. |
|
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
|
6 ** |
|
7 ** This file is part of the QtCore module of the Qt Toolkit. |
|
8 ** |
|
9 ** $QT_BEGIN_LICENSE:LGPL$ |
|
10 ** No Commercial Usage |
|
11 ** This file contains pre-release code and may not be distributed. |
|
12 ** You may use this file in accordance with the terms and conditions |
|
13 ** contained in the Technology Preview License Agreement accompanying |
|
14 ** this package. |
|
15 ** |
|
16 ** GNU Lesser General Public License Usage |
|
17 ** Alternatively, this file may be used under the terms of the GNU Lesser |
|
18 ** General Public License version 2.1 as published by the Free Software |
|
19 ** Foundation and appearing in the file LICENSE.LGPL included in the |
|
20 ** packaging of this file. Please review the following information to |
|
21 ** ensure the GNU Lesser General Public License version 2.1 requirements |
|
22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
23 ** |
|
24 ** In addition, as a special exception, Nokia gives you certain additional |
|
25 ** rights. These rights are described in the Nokia Qt LGPL Exception |
|
26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
27 ** |
|
28 ** If you have questions regarding the use of this file, please contact |
|
29 ** Nokia at qt-info@nokia.com. |
|
30 ** |
|
31 ** |
|
32 ** |
|
33 ** |
|
34 ** |
|
35 ** |
|
36 ** |
|
37 ** |
|
38 ** $QT_END_LICENSE$ |
|
39 ** |
|
40 ****************************************************************************/ |
|
41 |
|
42 #include "fieldnames.loc" |
|
43 #include "cntmodelextuids.hrh" |
|
44 #include <cntdef.hrh> // as existing version, but see below |
|
45 #include <cntmodel.rh> |
|
46 |
|
47 |
|
48 // |
|
49 // There are two ways of defining custom filterable fields. The two methods cannot be mixed. |
|
50 // |
|
51 // Option 1. uses a single flag (KIntFieldFlagFilterable) to define up to four custom filterable fields. |
|
52 // The order of priority of the fields is the order in which they are defined in an rss file. |
|
53 // |
|
54 // Option 2.uses four flags to define up to four custom filterable fields. KIntFieldFlagFilterable1 defines the highest priority |
|
55 // field and KIntFieldFlagFilterable4 defines the lowest priority one. The order in which the fields appear in an rss file |
|
56 // is unimportant. |
|
57 // In total, the filterable fields must define a series starting at KIntFieldFlagFilterable1 and without gaps (e.g. it is possible |
|
58 // to define fields with KIntFieldFlagFilterable3, KIntFieldFlagFilterable1 and KIntFieldFlagFilterable2, but illegal |
|
59 // to define fields with KIntFieldFlagFilterable1, KIntFieldFlagFilterable4 and KIntFieldFlagFilterable3). |
|
60 // NOTE: see STRING_r_cntui_new_field_defns52 and STRING_r_cntui_new_field_defns51 below. |
|
61 // |
|
62 |
|
63 // These field type UIDs are used in testing of the custom filterable fields only. |
|
64 // Licensees should register new UIDs for their own filterable fields. |
|
65 |
|
66 #define KUidContactFieldCustom1Value 0x101FD209 |
|
67 #define KUidContactFieldCustom2Value 0x101FD20A |
|
68 |
|
69 // |
|
70 // FROM EIKDEF.RH - avoids CntModel requiring Eikon |
|
71 // |
|
72 STRUCT RSS_SIGNATURE |
|
73 { |
|
74 LONG signature=4; // EEikResourceSignatureValue; |
|
75 SRLINK self; |
|
76 } |
|
77 |
|
78 STRUCT ARRAY |
|
79 { |
|
80 STRUCT items[]; |
|
81 } |
|
82 |
|
83 RESOURCE RSS_SIGNATURE { } |
|
84 |
|
85 /** |
|
86 * Symbian backend default contact card template. This resource is read by cntmodel |
|
87 * when it creates a new database. |
|
88 * |
|
89 * @see FIELD |
|
90 * @see CContactDatabase#CreateTemplateAndPrefsL() |
|
91 */ |
|
92 RESOURCE ARRAY r_cntui_new_field_defns |
|
93 { |
|
94 items= |
|
95 { |
|
96 |
|
97 FIELD // Name: prefix |
|
98 { |
|
99 fieldStorageType=KStorageTypeText; |
|
100 contactFieldType=KUidContactFieldPrefixNameValue; |
|
101 vCardMapping=KIntContactFieldVCardMapUnusedN; |
|
102 category=EContactCategoryHome; |
|
103 fieldName=STRING_r_cntui_new_field_defns1; |
|
104 flags=EContactFieldFlagDisabled; |
|
105 }, |
|
106 FIELD // Name: first name |
|
107 { |
|
108 fieldStorageType = KStorageTypeText; |
|
109 contactFieldType = KUidContactFieldGivenNameValue; |
|
110 vCardMapping = KIntContactFieldVCardMapUnusedN; |
|
111 category = EContactCategoryHome; |
|
112 fieldName = qtn_phob_lbl_first_name; |
|
113 }, |
|
114 FIELD //Name: middle name |
|
115 { |
|
116 fieldStorageType=KStorageTypeText; |
|
117 contactFieldType=KUidContactFieldAdditionalNameValue; |
|
118 vCardMapping=KIntContactFieldVCardMapUnusedN; |
|
119 category=EContactCategoryHome; |
|
120 fieldName=STRING_r_cntui_new_field_defns3; |
|
121 flags=EContactFieldFlagDisabled; |
|
122 }, |
|
123 FIELD //Name: is this needed, what is the difference between KUidContactFieldAdditionalNameValue and KUidContactFieldSecondNameValue |
|
124 { |
|
125 fieldStorageType=KStorageTypeText; |
|
126 contactFieldType=KUidContactFieldSecondNameValue; |
|
127 vCardMapping=KIntContactFieldVCardMapSECONDNAME; |
|
128 category=EContactCategoryHome; |
|
129 fieldName=STRING_r_cntui_new_field_defns_second_name; |
|
130 }, |
|
131 FIELD // Name: last name |
|
132 { |
|
133 fieldStorageType = KStorageTypeText; |
|
134 contactFieldType = KUidContactFieldFamilyNameValue; |
|
135 vCardMapping = KIntContactFieldVCardMapUnusedN; |
|
136 category = EContactCategoryHome; |
|
137 fieldName = qtn_phob_lbl_last_name; |
|
138 }, |
|
139 FIELD // Name: suffix |
|
140 { |
|
141 fieldStorageType=KStorageTypeText; |
|
142 contactFieldType=KUidContactFieldSuffixNameValue; |
|
143 vCardMapping=KIntContactFieldVCardMapUnusedN; |
|
144 category=EContactCategoryHome; |
|
145 fieldName=STRING_r_cntui_new_field_defns5; |
|
146 flags=EContactFieldFlagDisabled; |
|
147 }, |
|
148 FIELD // Phone Number (Home) |
|
149 { |
|
150 fieldStorageType = KStorageTypeText; |
|
151 contactFieldType = KUidContactFieldPhoneNumberValue; |
|
152 vCardMapping = KIntContactFieldVCardMapTEL; |
|
153 extraMapping= |
|
154 { |
|
155 // NOTE: Ordering differs from contact model default template |
|
156 MAPPING { mapping=KIntContactFieldVCardMapVOICE; }, |
|
157 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
158 }; |
|
159 category = EContactCategoryHome; |
|
160 fieldName = qtn_phob_lbl_number_home; |
|
161 }, |
|
162 FIELD // Phone Number Mobile (Home) |
|
163 { |
|
164 fieldStorageType = KStorageTypeText; |
|
165 contactFieldType = KUidContactFieldPhoneNumberValue; |
|
166 vCardMapping = KIntContactFieldVCardMapTEL; |
|
167 extraMapping= |
|
168 { |
|
169 // NOTE: Ordering differs from contact model default template |
|
170 MAPPING { mapping=KIntContactFieldVCardMapCELL; }, |
|
171 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
172 }; |
|
173 category = EContactCategoryHome; |
|
174 fieldName = qtn_phob_lbl_number_mobile_home; |
|
175 }, |
|
176 FIELD // Fax Number (Home) |
|
177 { |
|
178 fieldStorageType = KStorageTypeText; |
|
179 contactFieldType = KUidContactFieldFaxValue; |
|
180 vCardMapping = KIntContactFieldVCardMapTEL; |
|
181 extraMapping= |
|
182 { |
|
183 // NOTE: Ordering differs from contact model default template |
|
184 MAPPING { mapping=KIntContactFieldVCardMapFAX; }, |
|
185 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
186 }; |
|
187 category = EContactCategoryHome; |
|
188 fieldName = qtn_phob_lbl_fax_home; |
|
189 }, |
|
190 FIELD // Number: BBS |
|
191 { |
|
192 fieldStorageType=KStorageTypeText; |
|
193 contactFieldType=KUidContactFieldPhoneNumberValue; |
|
194 vCardMapping=KIntContactFieldVCardMapTEL; |
|
195 extraMapping= |
|
196 { |
|
197 MAPPING { mapping=KIntContactFieldVCardMapHOME; }, |
|
198 MAPPING { mapping=KIntContactFieldVCardMapBBS; } |
|
199 }; |
|
200 category=EContactCategoryHome; |
|
201 fieldName=STRING_r_cntui_new_field_defns10; |
|
202 }, |
|
203 FIELD // Number: car |
|
204 { |
|
205 fieldStorageType=KStorageTypeText; |
|
206 contactFieldType=KUidContactFieldPhoneNumberValue; |
|
207 vCardMapping=KIntContactFieldVCardMapTEL; |
|
208 extraMapping= |
|
209 { |
|
210 MAPPING { mapping=KIntContactFieldVCardMapHOME; }, |
|
211 MAPPING { mapping=KIntContactFieldVCardMapCAR; } |
|
212 }; |
|
213 category=EContactCategoryHome; |
|
214 fieldName=STRING_r_cntui_new_field_defns11; |
|
215 }, |
|
216 FIELD // Number: video calls (Home) |
|
217 { |
|
218 fieldStorageType=KStorageTypeText; |
|
219 contactFieldType=KUidContactFieldPhoneNumberValue; |
|
220 vCardMapping=KIntContactFieldVCardMapTEL; |
|
221 extraMapping= |
|
222 { |
|
223 MAPPING { mapping=KIntContactFieldVCardMapHOME; }, |
|
224 MAPPING { mapping=KIntContactFieldVCardMapVIDEO; } |
|
225 }; |
|
226 category=EContactCategoryHome; |
|
227 fieldName=qtn_phob_lbl_video_home; |
|
228 }, |
|
229 FIELD // Email Address (Home) |
|
230 { |
|
231 fieldStorageType = KStorageTypeText; |
|
232 contactFieldType = KUidContactFieldEMailValue; |
|
233 vCardMapping = KIntContactFieldVCardMapEMAILINTERNET; |
|
234 extraMapping= |
|
235 { |
|
236 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
237 }; |
|
238 category = EContactCategoryHome; |
|
239 fieldName = qtn_phob_lbl_email_home; |
|
240 }, |
|
241 FIELD // URL (Home) |
|
242 { |
|
243 fieldStorageType = KStorageTypeText; |
|
244 contactFieldType = KUidContactFieldUrlValue; |
|
245 vCardMapping = KIntContactFieldVCardMapURL; |
|
246 extraMapping= |
|
247 { |
|
248 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
249 }; |
|
250 category = EContactCategoryHome; |
|
251 fieldName = qtn_phob_lbl_url_home; |
|
252 }, |
|
253 FIELD // Label Address (Home) |
|
254 { |
|
255 // NOTE: This data differs from contact model default template |
|
256 fieldStorageType = KStorageTypeText; |
|
257 contactFieldType = KUidContactFieldAddressValue; |
|
258 vCardMapping = KIntContactFieldVCardMapLABEL; |
|
259 extraMapping= |
|
260 { |
|
261 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
262 }; |
|
263 category = EContactCategoryHome; |
|
264 fieldName = qtn_phob_lbl_address_home; |
|
265 }, |
|
266 FIELD // P.O.box (Home) |
|
267 { |
|
268 fieldStorageType=KStorageTypeText; |
|
269 contactFieldType=KUidContactFieldPostOfficeValue; |
|
270 vCardMapping=KIntContactFieldVCardMapPOSTOFFICE; |
|
271 extraMapping= |
|
272 { |
|
273 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
274 }; |
|
275 category=EContactCategoryHome; |
|
276 fieldName=qtn_phob_lbl_pobox_home; |
|
277 }, |
|
278 FIELD // Extension address (Home) |
|
279 { |
|
280 fieldStorageType=KStorageTypeText; |
|
281 contactFieldType=KUidContactFieldExtendedAddressValue; |
|
282 vCardMapping=KIntContactFieldVCardMapEXTENDEDADR; |
|
283 extraMapping= |
|
284 { |
|
285 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
286 }; |
|
287 category=EContactCategoryHome; |
|
288 fieldName=qtn_phob_lbl_extencion_home; |
|
289 }, |
|
290 FIELD // Street (Home) |
|
291 { |
|
292 fieldStorageType=KStorageTypeText; |
|
293 contactFieldType=KUidContactFieldAddressValue; |
|
294 vCardMapping=KIntContactFieldVCardMapADR; |
|
295 extraMapping= |
|
296 { |
|
297 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
298 }; |
|
299 category=EContactCategoryHome; |
|
300 fieldName=qtn_phob_lbl_street_home; |
|
301 }, |
|
302 FIELD // Postal code (Home) |
|
303 { |
|
304 fieldStorageType=KStorageTypeText; |
|
305 contactFieldType=KUidContactFieldPostCodeValue; |
|
306 vCardMapping=KIntContactFieldVCardMapPOSTCODE; |
|
307 extraMapping= |
|
308 { |
|
309 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
310 }; |
|
311 category=EContactCategoryHome; |
|
312 fieldName=qtn_phob_lbl_postal_code_home; |
|
313 }, |
|
314 FIELD // City (Home) |
|
315 { |
|
316 fieldStorageType=KStorageTypeText; |
|
317 contactFieldType=KUidContactFieldLocalityValue; |
|
318 vCardMapping=KIntContactFieldVCardMapLOCALITY; |
|
319 extraMapping= |
|
320 { |
|
321 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
322 }; |
|
323 category=EContactCategoryHome; |
|
324 fieldName=qtn_phob_lbl_city_home; |
|
325 }, |
|
326 FIELD // State (Home) |
|
327 { |
|
328 fieldStorageType=KStorageTypeText; |
|
329 contactFieldType=KUidContactFieldRegionValue; |
|
330 vCardMapping=KIntContactFieldVCardMapREGION; |
|
331 extraMapping= |
|
332 { |
|
333 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
334 }; |
|
335 category=EContactCategoryHome; |
|
336 fieldName=qtn_phob_lbl_state_home; |
|
337 }, |
|
338 FIELD // Country (Home) |
|
339 { |
|
340 fieldStorageType=KStorageTypeText; |
|
341 contactFieldType=KUidContactFieldCountryValue; |
|
342 vCardMapping=KIntContactFieldVCardMapCOUNTRY; |
|
343 extraMapping= |
|
344 { |
|
345 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
346 }; |
|
347 category=EContactCategoryHome; |
|
348 fieldName=qtn_phob_lbl_country_home; |
|
349 }, |
|
350 FIELD // Spouse |
|
351 { |
|
352 fieldStorageType=KStorageTypeText; |
|
353 contactFieldType=KUidContactFieldSpouseValue; |
|
354 vCardMapping=KIntContactFieldVCardMapSpouse; |
|
355 category=EContactCategoryHome; |
|
356 fieldName=qtn_phob_lbl_spouse; |
|
357 }, |
|
358 FIELD // Children |
|
359 { |
|
360 fieldStorageType=KStorageTypeText; |
|
361 contactFieldType=KUidContactFieldChildrenValue; |
|
362 vCardMapping=KIntContactFieldVCardMapChildren; |
|
363 category=EContactCategoryHome; |
|
364 fieldName=qtn_phob_lbl_children; |
|
365 }, |
|
366 // work related |
|
367 FIELD // Job Title |
|
368 { |
|
369 fieldStorageType = KStorageTypeText; |
|
370 contactFieldType = KUidContactFieldJobTitleValue; |
|
371 vCardMapping = KIntContactFieldVCardMapTITLE; |
|
372 category = EContactCategoryWork; |
|
373 fieldName = qtn_phob_lbl_job_title; |
|
374 }, |
|
375 FIELD // Company Name |
|
376 { |
|
377 fieldStorageType = KStorageTypeText; |
|
378 contactFieldType = KUidContactFieldCompanyNameValue; |
|
379 vCardMapping = KIntContactFieldVCardMapORG; |
|
380 category = EContactCategoryWork; |
|
381 fieldName = qtn_phob_lbl_company_name; |
|
382 }, |
|
383 FIELD // Department |
|
384 { |
|
385 fieldStorageType = KStorageTypeText; |
|
386 contactFieldType = KUidContactFieldDepartmentNameValue; |
|
387 vCardMapping = KIntContactFieldVCardMapDepartment; |
|
388 category = EContactCategoryWork; |
|
389 fieldName = qtn_phob_lbl_dept_name; |
|
390 }, |
|
391 FIELD // Phone Number (Work) |
|
392 { |
|
393 fieldStorageType = KStorageTypeText; |
|
394 contactFieldType = KUidContactFieldPhoneNumberValue; |
|
395 vCardMapping = KIntContactFieldVCardMapTEL; |
|
396 extraMapping= |
|
397 { |
|
398 // NOTE: Ordering differs from contact model default template |
|
399 MAPPING { mapping=KIntContactFieldVCardMapVOICE; }, |
|
400 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
401 }; |
|
402 category = EContactCategoryWork; |
|
403 fieldName = qtn_phob_lbl_number_work; |
|
404 }, |
|
405 FIELD // Phone Number Mobile (Work) |
|
406 { |
|
407 fieldStorageType = KStorageTypeText; |
|
408 contactFieldType = KUidContactFieldPhoneNumberValue; |
|
409 vCardMapping = KIntContactFieldVCardMapTEL; |
|
410 extraMapping= |
|
411 { |
|
412 // NOTE: Contact model default template has mapping: WORK,VOICE,CELL |
|
413 MAPPING { mapping=KIntContactFieldVCardMapCELL; }, |
|
414 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
415 }; |
|
416 category = EContactCategoryWork; |
|
417 fieldName = qtn_phob_lbl_number_mobile_work; |
|
418 }, |
|
419 FIELD // Fax Number (Work) |
|
420 { |
|
421 fieldStorageType = KStorageTypeText; |
|
422 contactFieldType = KUidContactFieldFaxValue; |
|
423 vCardMapping = KIntContactFieldVCardMapTEL; |
|
424 extraMapping= |
|
425 { |
|
426 // NOTE: Ordering differs from contact model default template |
|
427 MAPPING { mapping=KIntContactFieldVCardMapFAX; }, |
|
428 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
429 }; |
|
430 category = EContactCategoryWork; |
|
431 fieldName = qtn_phob_lbl_fax_work; |
|
432 }, |
|
433 FIELD // Number: video calls (Work) |
|
434 { |
|
435 fieldStorageType=KStorageTypeText; |
|
436 contactFieldType=KUidContactFieldPhoneNumberValue; |
|
437 vCardMapping=KIntContactFieldVCardMapTEL; |
|
438 extraMapping= |
|
439 { |
|
440 MAPPING { mapping=KIntContactFieldVCardMapWORK; }, |
|
441 MAPPING { mapping=KIntContactFieldVCardMapVIDEO; } |
|
442 }; |
|
443 category=EContactCategoryWork; |
|
444 fieldName=qtn_phob_lbl_video_work; |
|
445 }, |
|
446 FIELD //Assistant number |
|
447 { |
|
448 fieldStorageType=KStorageTypeText; |
|
449 contactFieldType=KUidContactFieldPhoneNumberValue; |
|
450 vCardMapping=KIntContactFieldVCardMapAssistantTel; |
|
451 category=EContactCategoryWork; |
|
452 fieldName=qtn_phob_lbl_number_assistant; |
|
453 }, |
|
454 FIELD //Assistant name |
|
455 { |
|
456 fieldStorageType=KStorageTypeText; |
|
457 contactFieldType=KUidContactFieldAssistantValue; |
|
458 vCardMapping=KIntContactFieldVCardMapAssistant; |
|
459 category=EContactCategoryWork; |
|
460 fieldName=qtn_phob_lbl_assistant_name; |
|
461 }, |
|
462 FIELD // Email Address (Work) |
|
463 { |
|
464 fieldStorageType = KStorageTypeText; |
|
465 contactFieldType = KUidContactFieldEMailValue; |
|
466 vCardMapping = KIntContactFieldVCardMapEMAILINTERNET; |
|
467 extraMapping= |
|
468 { |
|
469 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
470 }; |
|
471 category = EContactCategoryWork; |
|
472 fieldName = qtn_phob_lbl_email_work; |
|
473 }, |
|
474 FIELD // URL (Work) |
|
475 { |
|
476 fieldStorageType = KStorageTypeText; |
|
477 contactFieldType = KUidContactFieldUrlValue; |
|
478 vCardMapping = KIntContactFieldVCardMapURL; |
|
479 extraMapping= |
|
480 { |
|
481 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
482 }; |
|
483 category = EContactCategoryWork; |
|
484 fieldName = qtn_phob_lbl_url_work; |
|
485 }, |
|
486 FIELD // Label Address (Work) |
|
487 { |
|
488 fieldStorageType = KStorageTypeText; |
|
489 contactFieldType = KUidContactFieldAddressValue; |
|
490 vCardMapping = KIntContactFieldVCardMapLABEL; |
|
491 extraMapping= |
|
492 { |
|
493 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
494 }; |
|
495 category = EContactCategoryWork; |
|
496 fieldName = qtn_phob_lbl_address_work; |
|
497 }, |
|
498 FIELD // P.O.box (Work) |
|
499 { |
|
500 fieldStorageType=KStorageTypeText; |
|
501 contactFieldType=KUidContactFieldPostOfficeValue; |
|
502 vCardMapping=KIntContactFieldVCardMapPOSTOFFICE; |
|
503 extraMapping= |
|
504 { |
|
505 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
506 }; |
|
507 category=EContactCategoryWork; |
|
508 fieldName=qtn_phob_lbl_pobox_work; |
|
509 }, |
|
510 FIELD // Extension address (work) |
|
511 { |
|
512 fieldStorageType=KStorageTypeText; |
|
513 contactFieldType=KUidContactFieldExtendedAddressValue; |
|
514 vCardMapping=KIntContactFieldVCardMapEXTENDEDADR; |
|
515 extraMapping= |
|
516 { |
|
517 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
518 }; |
|
519 category=EContactCategoryWork; |
|
520 fieldName=qtn_phob_lbl_extencion_work; |
|
521 }, |
|
522 FIELD // Street (Work) |
|
523 { |
|
524 fieldStorageType=KStorageTypeText; |
|
525 contactFieldType=KUidContactFieldAddressValue; |
|
526 vCardMapping=KIntContactFieldVCardMapADR; |
|
527 extraMapping= |
|
528 { |
|
529 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
530 }; |
|
531 category=EContactCategoryWork; |
|
532 fieldName=qtn_phob_lbl_street_work; |
|
533 }, |
|
534 FIELD // Postal code (Work) |
|
535 { |
|
536 fieldStorageType=KStorageTypeText; |
|
537 contactFieldType=KUidContactFieldPostCodeValue; |
|
538 vCardMapping=KIntContactFieldVCardMapPOSTCODE; |
|
539 extraMapping= |
|
540 { |
|
541 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
542 }; |
|
543 category=EContactCategoryWork; |
|
544 fieldName=qtn_phob_lbl_postal_code_work; |
|
545 }, |
|
546 FIELD // City (Work) |
|
547 { |
|
548 fieldStorageType=KStorageTypeText; |
|
549 contactFieldType=KUidContactFieldLocalityValue; |
|
550 vCardMapping=KIntContactFieldVCardMapLOCALITY; |
|
551 extraMapping= |
|
552 { |
|
553 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
554 }; |
|
555 category=EContactCategoryWork; |
|
556 fieldName=qtn_phob_lbl_city_work; |
|
557 }, |
|
558 FIELD // State (work) |
|
559 { |
|
560 fieldStorageType=KStorageTypeText; |
|
561 contactFieldType=KUidContactFieldRegionValue; |
|
562 vCardMapping=KIntContactFieldVCardMapREGION; |
|
563 extraMapping= |
|
564 { |
|
565 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
566 }; |
|
567 category=EContactCategoryWork; |
|
568 fieldName=qtn_phob_lbl_state_work; |
|
569 }, |
|
570 FIELD // Country (Work) |
|
571 { |
|
572 fieldStorageType=KStorageTypeText; |
|
573 contactFieldType=KUidContactFieldCountryValue; |
|
574 vCardMapping=KIntContactFieldVCardMapCOUNTRY; |
|
575 extraMapping= |
|
576 { |
|
577 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
578 }; |
|
579 category=EContactCategoryWork; |
|
580 fieldName=qtn_phob_lbl_country_work; |
|
581 }, |
|
582 |
|
583 // general |
|
584 FIELD // Phone Number (general) |
|
585 { |
|
586 fieldStorageType = KStorageTypeText; |
|
587 contactFieldType = KUidContactFieldPhoneNumberValue; |
|
588 vCardMapping = KIntContactFieldVCardMapTEL; |
|
589 extraMapping= |
|
590 { |
|
591 MAPPING { mapping=KIntContactFieldVCardMapVOICE; } |
|
592 }; |
|
593 category = EContactCategoryNone; |
|
594 fieldName = qtn_phob_lbl_number_standard; |
|
595 }, |
|
596 FIELD // Phone Number Mobile (general) |
|
597 { |
|
598 fieldStorageType = KStorageTypeText; |
|
599 contactFieldType = KUidContactFieldPhoneNumberValue; |
|
600 vCardMapping = KIntContactFieldVCardMapTEL; |
|
601 extraMapping= |
|
602 { |
|
603 MAPPING { mapping=KIntContactFieldVCardMapCELL; } |
|
604 }; |
|
605 category = EContactCategoryNone; |
|
606 fieldName = qtn_phob_lbl_number_mobile; |
|
607 }, |
|
608 // NOTE: Contact model default template has only HOME and WORK pager |
|
609 FIELD // Pager Number |
|
610 { |
|
611 fieldStorageType = KStorageTypeText; |
|
612 contactFieldType = KUidContactFieldPhoneNumberValue; |
|
613 vCardMapping = KIntContactFieldVCardMapTEL; |
|
614 extraMapping= |
|
615 { |
|
616 MAPPING { mapping=KIntContactFieldVCardMapPAGER; } |
|
617 }; |
|
618 category = EContactCategoryNone; |
|
619 fieldName = qtn_phob_lbl_pager; |
|
620 }, |
|
621 FIELD // Fax Number (general) |
|
622 { |
|
623 fieldStorageType = KStorageTypeText; |
|
624 contactFieldType = KUidContactFieldFaxValue; |
|
625 vCardMapping = KIntContactFieldVCardMapTEL; |
|
626 extraMapping= |
|
627 { |
|
628 MAPPING { mapping=KIntContactFieldVCardMapFAX; } |
|
629 }; |
|
630 category = EContactCategoryNone; |
|
631 fieldName = qtn_phob_lbl_fax; |
|
632 }, |
|
633 FIELD // Number: video calls (general) |
|
634 { |
|
635 fieldStorageType=KStorageTypeText; |
|
636 contactFieldType=KUidContactFieldPhoneNumberValue; |
|
637 vCardMapping=KIntContactFieldVCardMapTEL; |
|
638 extraMapping= |
|
639 { |
|
640 MAPPING { mapping=KIntContactFieldVCardMapVIDEO; } |
|
641 }; |
|
642 category=EContactCategoryNone; |
|
643 fieldName=qtn_phob_lbl_video; |
|
644 }, |
|
645 FIELD // Email Address (general) |
|
646 { |
|
647 fieldStorageType = KStorageTypeText; |
|
648 contactFieldType = KUidContactFieldEMailValue; |
|
649 vCardMapping = KIntContactFieldVCardMapEMAILINTERNET; |
|
650 category = EContactCategoryNone; |
|
651 fieldName = qtn_phob_lbl_email; |
|
652 }, |
|
653 FIELD // URL (general) |
|
654 { |
|
655 fieldStorageType = KStorageTypeText; |
|
656 contactFieldType = KUidContactFieldUrlValue; |
|
657 vCardMapping = KIntContactFieldVCardMapURL; |
|
658 category = EContactCategoryNone; |
|
659 fieldName = qtn_phob_lbl_url; |
|
660 }, |
|
661 FIELD // Label Address (general) |
|
662 { |
|
663 // NOTE: This data differs from contact model default template |
|
664 fieldStorageType = KStorageTypeText; |
|
665 contactFieldType = KUidContactFieldAddressValue; |
|
666 vCardMapping = KIntContactFieldVCardMapLABEL; |
|
667 category = EContactCategoryNone; |
|
668 fieldName = qtn_phob_lbl_address; |
|
669 }, |
|
670 FIELD // P.O.box (general) |
|
671 { |
|
672 fieldStorageType=KStorageTypeText; |
|
673 contactFieldType=KUidContactFieldPostOfficeValue; |
|
674 vCardMapping=KIntContactFieldVCardMapPOSTOFFICE; |
|
675 category=EContactCategoryNone; |
|
676 fieldName=qtn_phob_lbl_pobox; |
|
677 }, |
|
678 FIELD // Extension address (general) |
|
679 { |
|
680 fieldStorageType=KStorageTypeText; |
|
681 contactFieldType=KUidContactFieldExtendedAddressValue; |
|
682 vCardMapping=KIntContactFieldVCardMapEXTENDEDADR; |
|
683 category=EContactCategoryNone; |
|
684 fieldName=qtn_phob_lbl_extencion; |
|
685 }, |
|
686 FIELD // Street (general) |
|
687 { |
|
688 fieldStorageType=KStorageTypeText; |
|
689 contactFieldType=KUidContactFieldAddressValue; |
|
690 vCardMapping=KIntContactFieldVCardMapADR; |
|
691 category=EContactCategoryNone; |
|
692 fieldName=qtn_phob_lbl_street; |
|
693 }, |
|
694 FIELD // Postal code (general) |
|
695 { |
|
696 fieldStorageType=KStorageTypeText; |
|
697 contactFieldType=KUidContactFieldPostCodeValue; |
|
698 vCardMapping=KIntContactFieldVCardMapPOSTCODE; |
|
699 category=EContactCategoryNone; |
|
700 fieldName=qtn_phob_lbl_postal_code; |
|
701 }, |
|
702 FIELD // City (general) |
|
703 { |
|
704 fieldStorageType=KStorageTypeText; |
|
705 contactFieldType=KUidContactFieldLocalityValue; |
|
706 vCardMapping=KIntContactFieldVCardMapLOCALITY; |
|
707 category=EContactCategoryNone; |
|
708 fieldName=qtn_phob_lbl_city; |
|
709 }, |
|
710 FIELD // State (general) |
|
711 { |
|
712 fieldStorageType=KStorageTypeText; |
|
713 contactFieldType=KUidContactFieldRegionValue; |
|
714 vCardMapping=KIntContactFieldVCardMapREGION; |
|
715 category=EContactCategoryNone; |
|
716 fieldName=qtn_phob_lbl_state; |
|
717 }, |
|
718 FIELD // Country (general) |
|
719 { |
|
720 fieldStorageType=KStorageTypeText; |
|
721 contactFieldType=KUidContactFieldCountryValue; |
|
722 vCardMapping=KIntContactFieldVCardMapCOUNTRY; |
|
723 category=EContactCategoryNone; |
|
724 fieldName=qtn_phob_lbl_country; |
|
725 }, |
|
726 // NOTE: There is no DTMF field in the contact model default template |
|
727 FIELD // DTMF String |
|
728 { |
|
729 fieldStorageType = KStorageTypeText; |
|
730 contactFieldType = KUidContactFieldDTMFValue; |
|
731 // NOTE: DTMF is not imported or exported in vCards |
|
732 vCardMapping = KIntContactFieldVCardMapUnknown; |
|
733 category = EContactCategoryOther; |
|
734 fieldName = qtn_phob_lbl_dtmf; |
|
735 // NOTE: DTMF is not imported or exported with PC Sync |
|
736 flags=EContactFieldFlagDisabled; |
|
737 }, |
|
738 FIELD // Date |
|
739 { |
|
740 fieldStorageType = KStorageTypeDateTime; |
|
741 contactFieldType = KUidContactFieldBirthdayValue; |
|
742 vCardMapping = KIntContactFieldVCardMapBDAY; |
|
743 category = EContactCategoryOther; |
|
744 fieldName = qtn_phob_lbl_date; |
|
745 }, |
|
746 FIELD // Note |
|
747 { |
|
748 fieldStorageType = KStorageTypeText; |
|
749 contactFieldType = KUidContactFieldNoteValue; |
|
750 vCardMapping = KIntContactFieldVCardMapNOTE; |
|
751 category = EContactCategoryOther; |
|
752 fieldName = qtn_phob_lbl_note; |
|
753 }, |
|
754 // NOTE: There is no corresponding field in the contact model default template |
|
755 FIELD // Picture |
|
756 { |
|
757 fieldStorageType = KStorageTypeText; |
|
758 contactFieldType = KUidContactFieldPictureValue; |
|
759 // NOTE: Picture is not imported or exported in vCards |
|
760 vCardMapping = KIntContactFieldVCardMapUnknown; |
|
761 category = EContactCategoryNone; |
|
762 // NOTE: Picture is not imported or exported with PC Sync |
|
763 flags=EContactFieldFlagDisabled; |
|
764 }, |
|
765 // NOTE: Thumbnail is much like PHOTO in contact model default template |
|
766 FIELD // Thumbnail Image |
|
767 { |
|
768 fieldStorageType = KPbkThumbnailFieldStorageType; |
|
769 contactFieldType = KUidContactFieldPictureValue; |
|
770 vCardMapping = KIntContactFieldVCardMapPHOTO; |
|
771 category = EContactCategoryNone; |
|
772 }, |
|
773 // NOTE: There is no corresponding field in the contact model default template |
|
774 FIELD // Personal Ringing Tone Indication |
|
775 { |
|
776 fieldStorageType = KStorageTypeText; |
|
777 contactFieldType = KUidContactFieldRingToneValue; |
|
778 // NOTE: Ringing tone is not imported or exported in vCards |
|
779 vCardMapping = KIntContactFieldVCardMapUnknown; |
|
780 category = EContactCategoryNone; |
|
781 fieldName = qtn_phob_lbl_tone; |
|
782 // NOTE: Ringing tone is not imported or exported with PC Sync |
|
783 flags=EContactFieldFlagDisabled; |
|
784 }, |
|
785 FIELD // Personal Video Ringing Tone Indication |
|
786 { |
|
787 fieldStorageType = KStorageTypeText; |
|
788 contactFieldType = KUidContactFieldVideoRingToneValue; |
|
789 // NOTE: Ringing tone is not imported or exported in vCards |
|
790 vCardMapping = KIntContactFieldVCardMapUnknown; |
|
791 category = EContactCategoryNone; |
|
792 fieldName = STRING_r_cntui_new_field_defns12; |
|
793 // NOTE: Ringing tone is not imported or exported with PC Sync |
|
794 flags=EContactFieldFlagDisabled; |
|
795 }, |
|
796 |
|
797 // NOTE: There is no corresponding field in the contact model default template |
|
798 FIELD // Location privacy indicator |
|
799 { |
|
800 fieldStorageType = KStorageTypeText; |
|
801 contactFieldType = KPbkUidContactFieldLocationPrivValue; |
|
802 // NOTE: Locationing privacy is not imported or exported in vCards |
|
803 vCardMapping = KIntContactFieldVCardMapUnknown; |
|
804 category = EContactCategoryNone; |
|
805 // NOTE: Locationing privacy is not imported or exported with PC Sync |
|
806 // NOTE: The First(1) custom field. Next field needs to be added after this field |
|
807 // NOTE: Custom filter flags are index/order dependent! |
|
808 flags=KIntFieldFlagFilterable1;//EContactFieldFlagFilterable; |
|
809 }, |
|
810 // NOTE: There is no corresponding field in the contact model default template |
|
811 FIELD // Top Contact Indicator |
|
812 { |
|
813 fieldStorageType = KStorageTypeText; // text type to store the order of top contacts |
|
814 contactFieldType = KUidContactFieldTopContactValue; |
|
815 vCardMapping = KIntContactFieldVCardMapUnknown; |
|
816 category = EContactCategoryNone; // To be set to some other val ? |
|
817 fieldName = "Top Contact"; // debugging purposes, no need to localize |
|
818 // NOTE: Top Contact is filterable |
|
819 flags=KIntFieldFlagFilterable2; |
|
820 }, |
|
821 FIELD // IMPP |
|
822 { |
|
823 fieldStorageType = KStorageTypeText; |
|
824 contactFieldType = KUidContactFieldIMPPValue; |
|
825 vCardMapping = KIntContactFieldVCardMapUnknown; |
|
826 category = EContactCategoryNone; // TODO: To be set to some other val ? |
|
827 }, |
|
828 FIELD // Geo (Home) |
|
829 { |
|
830 fieldStorageType=KStorageTypeText; |
|
831 contactFieldType=KUidContactFieldGEOValue; |
|
832 vCardMapping = KIntContactFieldVCardMapGEO; |
|
833 extraMapping= |
|
834 { |
|
835 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
836 }; |
|
837 category=EContactCategoryHome; |
|
838 fieldName=qtn_phob_lbl_geo_home; |
|
839 }, |
|
840 FIELD // Geo (Work) |
|
841 { |
|
842 fieldStorageType=KStorageTypeText; |
|
843 contactFieldType=KUidContactFieldGEOValue; |
|
844 vCardMapping = KIntContactFieldVCardMapGEO; |
|
845 extraMapping= |
|
846 { |
|
847 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
848 }; |
|
849 category=EContactCategoryWork; |
|
850 fieldName=qtn_phob_lbl_geo_work; |
|
851 }, |
|
852 FIELD // Geo (general) |
|
853 { |
|
854 fieldStorageType=KStorageTypeText; |
|
855 contactFieldType=KUidContactFieldGEOValue; |
|
856 vCardMapping = KIntContactFieldVCardMapGEO; |
|
857 category=EContactCategoryNone; |
|
858 fieldName=qtn_phob_lbl_geo; |
|
859 }, |
|
860 FIELD // Share video (general) |
|
861 { |
|
862 fieldStorageType=KStorageTypeText; |
|
863 contactFieldType=KUidContactFieldSIPIDValue; |
|
864 vCardMapping=KIntContactFieldVCardMapSIPID; |
|
865 extraMapping= |
|
866 { |
|
867 MAPPING { mapping=KIntContactFieldVCardMapSWIS; } |
|
868 }; |
|
869 category=EContactCategoryNone; |
|
870 fieldName=qtn_phob_lbl_swis; |
|
871 }, |
|
872 FIELD // VOIP (general) |
|
873 { |
|
874 fieldStorageType=KStorageTypeText; |
|
875 contactFieldType=KUidContactFieldSIPIDValue; |
|
876 vCardMapping=KIntContactFieldVCardMapSIPID; |
|
877 extraMapping= |
|
878 { |
|
879 MAPPING { mapping=KIntContactFieldVCardMapVOIP; } |
|
880 }; |
|
881 category=EContactCategoryNone; |
|
882 fieldName=qtn_phob_lbl_voip; |
|
883 }, |
|
884 FIELD // VOIP (home) |
|
885 { |
|
886 fieldStorageType=KStorageTypeText; |
|
887 contactFieldType=KUidContactFieldSIPIDValue; |
|
888 vCardMapping=KIntContactFieldVCardMapSIPID; |
|
889 extraMapping= |
|
890 { |
|
891 MAPPING { mapping=KIntContactFieldVCardMapVOIP; }, |
|
892 MAPPING { mapping=KIntContactFieldVCardMapHOME; } |
|
893 }; |
|
894 category=EContactCategoryHome; |
|
895 fieldName=qtn_phob_lbl_voip_home; |
|
896 }, |
|
897 FIELD // VOIP (work) |
|
898 { |
|
899 fieldStorageType=KStorageTypeText; |
|
900 contactFieldType=KUidContactFieldSIPIDValue; |
|
901 vCardMapping=KIntContactFieldVCardMapSIPID; |
|
902 extraMapping= |
|
903 { |
|
904 MAPPING { mapping=KIntContactFieldVCardMapVOIP; }, |
|
905 MAPPING { mapping=KIntContactFieldVCardMapWORK; } |
|
906 }; |
|
907 category=EContactCategoryWork; |
|
908 fieldName=qtn_phob_lbl_voip_work; |
|
909 }, |
|
910 FIELD // SIP (general) |
|
911 { |
|
912 fieldStorageType=KStorageTypeText; |
|
913 contactFieldType=KUidContactFieldSIPIDValue; |
|
914 vCardMapping=KIntContactFieldVCardMapSIPID; |
|
915 extraMapping= |
|
916 { |
|
917 MAPPING { mapping=KIntContactFieldVCardMapSIPID; } |
|
918 }; |
|
919 category=EContactCategoryNone; |
|
920 fieldName=qtn_phob_lbl_sip; |
|
921 }, |
|
922 FIELD // Sync target |
|
923 { |
|
924 fieldStorageType=KStorageTypeText; |
|
925 contactFieldType=KUidContactFieldClassValue; |
|
926 vCardMapping=KIntContactFieldVCardMapClass; |
|
927 category=EContactCategoryNone; |
|
928 fieldName=STRING_r_cntui_new_field_defns13; |
|
929 }, |
|
930 FIELD // Gender |
|
931 { |
|
932 fieldStorageType=KStorageTypeText; |
|
933 contactFieldType=KUidContactFieldGenderValue; |
|
934 vCardMapping=KIntContactFieldVCardMapUnknown; |
|
935 category=EContactCategoryNone; |
|
936 fieldName=STRING_r_cntui_new_field_defns14; |
|
937 }, |
|
938 FIELD // Anniversary |
|
939 { |
|
940 fieldStorageType=KStorageTypeDateTime; |
|
941 contactFieldType=KUidContactFieldAnniversaryValue; |
|
942 vCardMapping=KIntContactFieldVCardMapAnniversary; |
|
943 category=EContactCategoryOther; |
|
944 fieldName=qtn_phob_lbl_anniversary; |
|
945 }, |
|
946 FIELD // Anniversary Event |
|
947 { |
|
948 fieldStorageType=KStorageTypeText; |
|
949 contactFieldType=KUidContactFieldAnniversaryEventValue; |
|
950 vCardMapping=KIntContactFieldVCardMapUnknown; |
|
951 category=EContactCategoryOther; |
|
952 fieldName=STRING_r_cntui_new_field_defns15; |
|
953 } |
|
954 }; |
|
955 } |
|
956 |
|
957 // End of File |