|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __PbkFieldMapping_RH__ |
|
20 #define __PbkFieldMapping_RH__ |
|
21 |
|
22 STRUCT PBK_VCARD_FIELD_TYPE |
|
23 { |
|
24 // vCard property name as an UID (see cntdef.hrh) |
|
25 LONG vCardProperty; |
|
26 // Bitmapped vCard property paramteres (see PbkFieldMapping.hrh) |
|
27 LONG vCardParams = 0; |
|
28 } |
|
29 |
|
30 // Phonebook field type mapping. |
|
31 STRUCT PBK_VCARD_FIELD_MAPPING |
|
32 { |
|
33 // vCard import types as an array of PBK_VCARD_FIELD_TYPE |
|
34 // (in matching priority order). |
|
35 STRUCT importTypes[]; |
|
36 // Bitmapped vCard property parameters this field type should not contain |
|
37 // (see PbkFieldMapping.hrh) |
|
38 LONG excludeParams; |
|
39 } |
|
40 |
|
41 // Entry in a UID <-> vCard parameter bit mapping table. |
|
42 STRUCT PBK_FIELD_TYPE_UID_MAPPING |
|
43 { |
|
44 // UID fieldType is mapped to |
|
45 LONG uid; |
|
46 // Type mapping bit (see PbkFieldMapping.hrh) |
|
47 LONG parameterBit; |
|
48 } |
|
49 |
|
50 // UID <-> vCard parameter bit mapping table. |
|
51 STRUCT PBK_FIELD_TYPE_UID_TABLE |
|
52 { |
|
53 // Array of PBK_FIELD_TYPE_UID_MAPPING structures |
|
54 STRUCT table[]; |
|
55 } |
|
56 |
|
57 // Entry in a text tag <-> vCard parameter bit mapping table. |
|
58 STRUCT PBK_FIELD_TYPE_TEXT_MAPPING |
|
59 { |
|
60 // Text tag fieldType is mapped to |
|
61 LTEXT tag; |
|
62 // Type mapping bit (see PbkFieldMapping.hrh) |
|
63 LONG parameterBit; |
|
64 } |
|
65 |
|
66 // UID <-> vCard parameter bit mapping table. |
|
67 STRUCT PBK_FIELD_TYPE_TEXT_TABLE |
|
68 { |
|
69 // Array of PBK_FIELD_TYPE_TEXT_MAPPING structures |
|
70 STRUCT table[]; |
|
71 } |
|
72 |
|
73 |
|
74 // Remap definitions from PbkFieldMapping.hrh to a shorter form to make the |
|
75 // resources more readable. |
|
76 #include "PbkFieldMapping.hrh" |
|
77 |
|
78 #define HOME KPbkContactFieldVCardMapHOMEBit |
|
79 #define WORK KPbkContactFieldVCardMapWORKBit |
|
80 #define VOICE KPbkContactFieldVCardMapVOICEBit |
|
81 #define CELL KPbkContactFieldVCardMapCELLBit |
|
82 #define FAX KPbkContactFieldVCardMapFAXBit |
|
83 #define PAGER KPbkContactFieldVCardMapPAGERBit |
|
84 #define MSG KPbkContactFieldVCardMapMSGBit |
|
85 #define BBS KPbkContactFieldVCardMapBBSBit |
|
86 #define MODEM KPbkContactFieldVCardMapMODEMBit |
|
87 #define CAR KPbkContactFieldVCardMapCARBit |
|
88 #define ISDN KPbkContactFieldVCardMapISDNBit |
|
89 #define VIDEO KPbkContactFieldVCardMapVIDEOBit |
|
90 #define DOM KPbkContactFieldVCardMapDOMBit |
|
91 #define INTL KPbkContactFieldVCardMapINTLBit |
|
92 #define POSTAL KPbkContactFieldVCardMapPOSTALBit |
|
93 #define PARCEL KPbkContactFieldVCardMapPARCELBit |
|
94 #define INTERNET KPbkContactFieldVCardMapINTERNETBit |
|
95 #define PREF KPbkContactFieldVCardMapPREFBit |
|
96 #define X509 KPbkContactFieldVCardMapX509Bit |
|
97 #define PGP KPbkContactFieldVCardMapPGPBit |
|
98 #define SMIME KPbkContactFieldVCardMapSMIMEBit |
|
99 |
|
100 #endif // __PbkFieldMapping_RH__ |
|
101 |
|
102 // End of File |