|
1 /* |
|
2 * Copyright (c) 2006-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: Resource headers for project VIMPSTPresentation field |
|
15 * ordering |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef VIMPSTFIELDORDERING_RH |
|
21 #define VIMPSTFIELDORDERING_RH |
|
22 |
|
23 // ------------------------------------------------------------------------- |
|
24 // A structure for defining presentation order for field types. |
|
25 // ------------------------------------------------------------------------- |
|
26 // |
|
27 STRUCT VIMPST_FIELDTYPE_PRESENTATION_ORDER |
|
28 { |
|
29 /// Field type resource id from VPbkEng.rsg |
|
30 LONG fieldTypeResId; |
|
31 /// The number that specifies the location of this field type |
|
32 /// in contact presentation (defines the order of fields). |
|
33 /// See appropriate language specific VIMPSTDefaultFieldOrdering.hrh, |
|
34 /// VIMPSTChineseFieldOrdering.hrh or VIMPSTJapaneseFieldOrdering.hrh. |
|
35 |
|
36 BYTE orderingItem; |
|
37 /// The number that specifies the location of this field type |
|
38 /// in the UI when adding an new fieldtype to the contact. |
|
39 /// See appropriate language specific VIMPSTDefaultFieldOrdering.hrh, |
|
40 /// VIMPSTChineseFieldOrdering.hrh or VIMPSTJapaneseFieldOrdering.hrh. |
|
41 |
|
42 BYTE addItemOrdering; |
|
43 } |
|
44 |
|
45 /** |
|
46 * Phonebook vCard property. Loaded from resource to a CPbkVcardProperty C++ instance. |
|
47 * @see CPbkVcardProperty |
|
48 */ |
|
49 STRUCT VIMPST_VCARD_PROPERTY |
|
50 { |
|
51 /// The property name as integer UID from ctndef.hrh |
|
52 LONG name; |
|
53 /// The parameters as integer UIDs from cntdef.hrh |
|
54 STRUCT parameters[]; |
|
55 } |
|
56 |
|
57 /** |
|
58 * Phonebook constant field information resource structure. Loaded from resources into |
|
59 * corresponding CPbkFieldInfo C++ instance. |
|
60 * |
|
61 * @see CPbkFieldInfo |
|
62 */ |
|
63 STRUCT VIMPST_FIELD |
|
64 { |
|
65 LONG fieldTypeResId; |
|
66 /** |
|
67 * Unique field id. |
|
68 * @see TPbkFieldId |
|
69 */ |
|
70 BYTE Id; |
|
71 |
|
72 /** |
|
73 * Maximum length of field (in characters) from Phonebook UI specification. |
|
74 */ |
|
75 WORD MaxLength; |
|
76 |
|
77 /** |
|
78 * Phonebook Icon id of the field. |
|
79 */ |
|
80 BYTE IconId; |
|
81 |
|
82 /** |
|
83 * Label text for Add item dialogs |
|
84 */ |
|
85 LTEXT DisplayLabel; |
|
86 } |
|
87 |
|
88 |
|
89 /** |
|
90 * Array of PHONEBOOK_FIELDs. |
|
91 * |
|
92 * @see PHONEBOOK_FIELD |
|
93 */ |
|
94 STRUCT VIMPST_FIELD_ARRAY |
|
95 { |
|
96 /// Array items. |
|
97 STRUCT items[]; |
|
98 } |
|
99 |
|
100 |
|
101 /** |
|
102 * Array of VIMPST_STATUS. |
|
103 * |
|
104 * @see VIMPST_STATUS |
|
105 */ |
|
106 STRUCT VIMPST_STATUS |
|
107 { |
|
108 /** |
|
109 * Unique field id. |
|
110 * @see TPbkFieldId |
|
111 */ |
|
112 BYTE StatusId; |
|
113 |
|
114 /** |
|
115 * Label text for Add item dialogs |
|
116 */ |
|
117 LTEXT TextLabel; |
|
118 } |
|
119 |
|
120 STRUCT VIMPST_STATUS_ARRAY |
|
121 { |
|
122 /// Array items. |
|
123 STRUCT stausItems[]; |
|
124 } |
|
125 |
|
126 #endif // VIMPSTFIELDORDERING_RH |