|
1 /* |
|
2 * Copyright (c) 2007 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: Contains the array of virtual phonebook resource ids used |
|
15 * to map phonebook fields to XML tags. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef PDCXMLMAPPING_H |
|
20 #define PDCXMLMAPPING_H |
|
21 |
|
22 // System includes |
|
23 #include <VPbkEng.rsg> |
|
24 |
|
25 // User includes |
|
26 #include "pdcstringconstants.h" // PdcStringTable |
|
27 |
|
28 // Constants |
|
29 |
|
30 // Array of virtual phonebook resource ids. The order of the resource ids |
|
31 // has to match to the order of strings in the string table. Any string in |
|
32 // the string table that does not map to a resource id has to represented |
|
33 // with a -1. |
|
34 const TInt KFieldResIdLookupTable[] = |
|
35 { |
|
36 /** EContact */ |
|
37 -1, |
|
38 /** EFirstName */ |
|
39 R_VPBK_FIELD_TYPE_FIRSTNAME, |
|
40 /** ELastName */ |
|
41 R_VPBK_FIELD_TYPE_LASTNAME, |
|
42 /** ECompany */ |
|
43 R_VPBK_FIELD_TYPE_COMPANYNAME, |
|
44 /** EJob */ |
|
45 R_VPBK_FIELD_TYPE_JOBTITLE, |
|
46 /** EGeneral */ |
|
47 R_VPBK_FIELD_TYPE_LANDPHONEHOME, |
|
48 /** EMobile */ |
|
49 R_VPBK_FIELD_TYPE_MOBILEPHONEHOME, |
|
50 /** EVideoNo */ |
|
51 R_VPBK_FIELD_TYPE_VIDEONUMBERHOME, |
|
52 /** EFax */ |
|
53 R_VPBK_FIELD_TYPE_FAXNUMBERWORK , |
|
54 /** EEmail */ |
|
55 R_VPBK_FIELD_TYPE_EMAILHOME, |
|
56 /** EWvUserId */ |
|
57 -1, |
|
58 /** EURL */ |
|
59 R_VPBK_FIELD_TYPE_URLHOME, |
|
60 /** EVPbkNonVersitTopContact */ |
|
61 -1 |
|
62 //R_VPBK_FIELD_TYPE_TOPCONTACT |
|
63 }; |
|
64 |
|
65 #endif // PDCXMLMAPPING_H |