|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Constants for use in storing comms data via CommsDat |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #if (!defined COMMSDAT_INTERNAL_H) |
|
24 #define COMMSDAT_INTERNAL_H |
|
25 |
|
26 namespace Meta |
|
27 { |
|
28 /** |
|
29 Visitor factory functions |
|
30 @internalComponent |
|
31 */ |
|
32 MMetaType* TMDBNumBaseVisitorFactoryL(const TAny* mem, const TAny* data); |
|
33 /** |
|
34 @internalComponent |
|
35 */ |
|
36 MMetaType* TMDBTextBaseVisitorFactoryL(const TAny* mem, const TAny* data); |
|
37 /** |
|
38 @internalComponent |
|
39 */ |
|
40 MMetaType* TMDBBinBaseVisitorFactoryL(const TAny* mem, const TAny* data); |
|
41 /** |
|
42 @internalComponent |
|
43 */ |
|
44 MMetaType* TMDBDeprecatedVisitorFactoryL(const TAny* mem, const TAny* data); |
|
45 } |
|
46 |
|
47 namespace CommsDat |
|
48 { |
|
49 /** |
|
50 T C R Mask for Central Repository to find a single field |
|
51 |
|
52 @internalComponent |
|
53 */ |
|
54 #define KCDMaskFindSingleField 0x7FFFFFFE |
|
55 |
|
56 |
|
57 |
|
58 /* |
|
59 Mask to show only basic type info, |
|
60 Masks out all info on links |
|
61 @internalComponent |
|
62 */ |
|
63 #define KCDShowBasicTypeInfo 0x000000ff |
|
64 |
|
65 |
|
66 |
|
67 /** |
|
68 Typedefs for convenience in meta data definitions |
|
69 @internalComponent |
|
70 */ |
|
71 using namespace Meta; |
|
72 |
|
73 template <class TYPE> class TMDBVisitor; |
|
74 class TMDBRecordLinkVisitor; |
|
75 class TMDBRecordSetVisitor; |
|
76 class TMDBGenericRecordVisitor; |
|
77 class CMDBElement; |
|
78 |
|
79 /* |
|
80 Visitors for field values |
|
81 */ |
|
82 |
|
83 /** |
|
84 Typedefs for convenience in meta data definitions |
|
85 @internalComponent |
|
86 */ |
|
87 typedef TMDBVisitor<TInt> TMDBNum; |
|
88 |
|
89 /** |
|
90 Typedefs for convenience in meta data definitions |
|
91 @internalComponent |
|
92 */ |
|
93 typedef TMDBVisitor<TInt> TMDBBool; |
|
94 |
|
95 /** |
|
96 Typedefs for convenience in meta data definitions |
|
97 @internalComponent |
|
98 */ |
|
99 typedef TMDBVisitor<TDesC> TMDBDes; |
|
100 |
|
101 /** |
|
102 Typedefs for convenience in meta data definitions |
|
103 @internalComponent |
|
104 */ |
|
105 typedef TMDBVisitor<TDesC8> TMDBDes8; |
|
106 |
|
107 /* |
|
108 Visitors for containers |
|
109 */ |
|
110 |
|
111 /** |
|
112 Typedefs for convenience in meta data definitions |
|
113 @internalComponent |
|
114 */ |
|
115 typedef TMDBRecordLinkVisitor TMDBLink; |
|
116 |
|
117 /** |
|
118 Typedefs for convenience in meta data definitions |
|
119 @internalComponent |
|
120 */ |
|
121 typedef TMDBRecordSetVisitor TMDBRecordSet; |
|
122 |
|
123 /** |
|
124 Typedefs for convenience in meta data definitions |
|
125 @internalComponent |
|
126 */ |
|
127 typedef TMDBGenericRecordVisitor TMDBGenRecord; |
|
128 |
|
129 |
|
130 /** |
|
131 Metadatabase container type ids |
|
132 |
|
133 @internalComponent |
|
134 */ |
|
135 #define KCDTIdMDBElement 123 |
|
136 |
|
137 /** |
|
138 Metadatabase container type ids |
|
139 |
|
140 @internalComponent |
|
141 */ |
|
142 #define KCDTIdMDBNumFieldBase 223 |
|
143 |
|
144 /** |
|
145 Metadatabase container type ids |
|
146 |
|
147 @internalComponent |
|
148 */ |
|
149 #define KCDTIdMDBTextFieldBase 224 |
|
150 |
|
151 /** |
|
152 Metadatabase container type ids |
|
153 |
|
154 @internalComponent |
|
155 */ |
|
156 #define KCDTIdMDBBinFieldBase 225 |
|
157 |
|
158 /** |
|
159 Metadatabase container type ids |
|
160 |
|
161 @internalComponent |
|
162 */ |
|
163 #define KCDTIdMDBRecordLinkBase 323 |
|
164 |
|
165 /** |
|
166 Metadatabase container type ids |
|
167 |
|
168 @internalComponent |
|
169 */ |
|
170 #define KCDTIdMDBRecordSetBase 523 |
|
171 |
|
172 /** |
|
173 Metadatabase container type ids |
|
174 |
|
175 @internalComponent |
|
176 */ |
|
177 #define KCDTIdMDBGenericRecord 585 |
|
178 |
|
179 } //end namespace CommsDat |
|
180 |
|
181 #endif |
|
182 |