|
1 /* |
|
2 * Copyright (c) 2004 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: Command structs for device information DTD. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __SML_DEVINFDTD_H__ |
|
20 #define __SML_DEVINFDTD_H__ |
|
21 |
|
22 //************************************************************************ |
|
23 //* Includes |
|
24 //************************************************************************ |
|
25 #include "smldef.h" |
|
26 #include "smldtd.h" |
|
27 #include "xmlelement.h" |
|
28 |
|
29 //************************************************************************ |
|
30 //* Flags |
|
31 //************************************************************************ |
|
32 #define SmlUTC_f (1<<0) |
|
33 #define SmlSupportNumberOfChanges_f (1<<1) |
|
34 #define SmlSupportLargeObjects_f (1<<2) |
|
35 |
|
36 //************************************************************************ |
|
37 //* Definitions |
|
38 //************************************************************************ |
|
39 |
|
40 typedef struct sml_devinf_xmit_s : public CXMLElement |
|
41 { |
|
42 public: |
|
43 SmlPcdataPtr_t cttype; |
|
44 SmlPcdataPtr_t verct; |
|
45 |
|
46 public: |
|
47 IMPORT_C sml_devinf_xmit_s(); |
|
48 IMPORT_C ~sml_devinf_xmit_s(); |
|
49 CXMLElement* BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams() ); |
|
50 } *SmlDevInfXmitPtr_t, SmlDevInfXmit_t; |
|
51 |
|
52 typedef struct sml_devinf_xmitlist_s : public CBase |
|
53 { |
|
54 public: |
|
55 SmlDevInfXmitPtr_t data; |
|
56 struct sml_devinf_xmitlist_s *next; |
|
57 |
|
58 public: |
|
59 IMPORT_C sml_devinf_xmitlist_s(); |
|
60 IMPORT_C ~sml_devinf_xmitlist_s(); |
|
61 } *SmlDevInfXmitListPtr_t, SmlDevInfXmitList_t; |
|
62 |
|
63 typedef struct sml_devinf_ext_s : public CXMLElement |
|
64 { |
|
65 public: |
|
66 SmlPcdataPtr_t xnam; |
|
67 SmlPcdataListPtr_t xval; /* optional */ |
|
68 |
|
69 public: |
|
70 IMPORT_C sml_devinf_ext_s(); |
|
71 IMPORT_C ~sml_devinf_ext_s(); |
|
72 CXMLElement* BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams() ); |
|
73 } *SmlDevInfExtPtr_t, SmlDevInfExt_t; |
|
74 |
|
75 typedef struct sml_devinf_extlist_s : public CBase |
|
76 { |
|
77 public: |
|
78 SmlDevInfExtPtr_t data; |
|
79 struct sml_devinf_extlist_s *next; |
|
80 |
|
81 public: |
|
82 IMPORT_C sml_devinf_extlist_s(); |
|
83 IMPORT_C ~sml_devinf_extlist_s(); |
|
84 } *SmlDevInfExtListPtr_t, SmlDevInfExtList_t; |
|
85 |
|
86 // 1.2 CHANGES: new element FilterCap |
|
87 typedef struct sml_devinf_filtercap_s : public CXMLElement |
|
88 { |
|
89 public: |
|
90 SmlPcdataPtr_t cttype; |
|
91 SmlPcdataPtr_t verct; |
|
92 SmlPcdataListPtr_t filterkeyword; /* optional */ |
|
93 SmlPcdataListPtr_t propname; /* optional */ |
|
94 |
|
95 public: |
|
96 IMPORT_C sml_devinf_filtercap_s(); |
|
97 IMPORT_C ~sml_devinf_filtercap_s(); |
|
98 CXMLElement * BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams() ); |
|
99 } *SmlDevInfFilterCapPtr_t, SmlDevInfFilterCap_t; |
|
100 |
|
101 typedef struct sml_devinf_filtercaplist_s : public CBase |
|
102 { |
|
103 public: |
|
104 SmlDevInfFilterCapPtr_t data; |
|
105 struct sml_devinf_filtercaplist_s *next; |
|
106 |
|
107 public: |
|
108 IMPORT_C sml_devinf_filtercaplist_s(); |
|
109 IMPORT_C ~sml_devinf_filtercaplist_s(); |
|
110 } *SmlDevInfFilterCapListPtr_t, SmlDevInfFilterCapList_t; |
|
111 // Changes end |
|
112 |
|
113 typedef struct sml_devinf_synccap_s : public CXMLElement |
|
114 { |
|
115 public: |
|
116 SmlPcdataListPtr_t synctype; |
|
117 |
|
118 public: |
|
119 IMPORT_C sml_devinf_synccap_s(); |
|
120 IMPORT_C ~sml_devinf_synccap_s(); |
|
121 CXMLElement* BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams() ); |
|
122 } *SmlDevInfSyncCapPtr_t, SmlDevInfSyncCap_t; |
|
123 |
|
124 typedef struct sml_devinf_dsmem_s : public CXMLElement |
|
125 { |
|
126 public: |
|
127 SmlPcdataPtr_t shared; /* optional, flag */ |
|
128 SmlPcdataPtr_t maxmem; /* optional */ |
|
129 SmlPcdataPtr_t maxid; /* optional */ |
|
130 |
|
131 public: |
|
132 IMPORT_C sml_devinf_dsmem_s(); |
|
133 IMPORT_C ~sml_devinf_dsmem_s(); |
|
134 CXMLElement* BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams() ); |
|
135 } *SmlDevInfDSMemPtr_t, SmlDevInfDSMem_t; |
|
136 |
|
137 // 1.2 CHANGES: new elements PropParam, Property |
|
138 typedef struct sml_devinf_propparam_s : public CXMLElement |
|
139 { |
|
140 public: |
|
141 SmlPcdataPtr_t paramname; |
|
142 SmlPcdataPtr_t datatype; /* optional */ |
|
143 SmlPcdataListPtr_t valenum; /*optional*/ |
|
144 SmlPcdataPtr_t displayname; /*optional*/ |
|
145 |
|
146 public: |
|
147 IMPORT_C sml_devinf_propparam_s(); |
|
148 IMPORT_C ~sml_devinf_propparam_s(); |
|
149 CXMLElement* BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams() ); |
|
150 } *SmlDevInfPropParamPtr_t, SmlDevInfPropParam_t; |
|
151 |
|
152 typedef struct sml_devinf_propparamlist_s : public CBase |
|
153 { |
|
154 public: |
|
155 SmlDevInfPropParamPtr_t data; |
|
156 struct sml_devinf_propparamlist_s *next; |
|
157 |
|
158 public: |
|
159 IMPORT_C sml_devinf_propparamlist_s(); |
|
160 IMPORT_C ~sml_devinf_propparamlist_s(); |
|
161 } *SmlDevInfPropParamListPtr_t, SmlDevInfPropParamList_t; |
|
162 |
|
163 typedef struct sml_devinf_property_s : public CXMLElement |
|
164 { |
|
165 public: |
|
166 SmlPcdataPtr_t propname; |
|
167 SmlPcdataPtr_t datatype; /* optional */ |
|
168 SmlPcdataPtr_t maxoccur; /* optional */ |
|
169 SmlPcdataPtr_t maxsize; /* optional */ |
|
170 SmlPcdataPtr_t notruncate; /* optional */ |
|
171 SmlPcdataListPtr_t valenum; /* optional */ |
|
172 SmlPcdataPtr_t displayname; /* optional */ |
|
173 SmlDevInfPropParamListPtr_t propparam; /* optional */ |
|
174 |
|
175 public: |
|
176 IMPORT_C sml_devinf_property_s(); |
|
177 IMPORT_C ~sml_devinf_property_s(); |
|
178 CXMLElement* BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams() ); |
|
179 } *SmlDevInfPropertyPtr_t, SmlDevInfProperty_t; |
|
180 // Changes end |
|
181 |
|
182 typedef struct sml_devinf_ctdata_s : public CXMLElement |
|
183 { |
|
184 public: |
|
185 SmlPcdataPtr_t name; |
|
186 SmlPcdataPtr_t dname; /* optional, display name */ |
|
187 SmlPcdataListPtr_t valenum; |
|
188 SmlPcdataPtr_t datatype; |
|
189 SmlPcdataPtr_t size; |
|
190 |
|
191 public: |
|
192 IMPORT_C sml_devinf_ctdata_s(); |
|
193 IMPORT_C ~sml_devinf_ctdata_s(); |
|
194 CXMLElement* BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams() ); |
|
195 void SetDataL( const TDesC8& aData ); |
|
196 } *SmlDevInfCTDataPtr_t, SmlDevInfCTData_t; |
|
197 |
|
198 typedef struct sml_devinf_ctdatalist_s : public CBase |
|
199 { |
|
200 public: |
|
201 SmlDevInfCTDataPtr_t data; |
|
202 struct sml_devinf_ctdatalist_s *next; |
|
203 |
|
204 public: |
|
205 IMPORT_C sml_devinf_ctdatalist_s(); |
|
206 IMPORT_C ~sml_devinf_ctdatalist_s(); |
|
207 } *SmlDevInfCTDataListPtr_t, SmlDevInfCTDataList_t; |
|
208 |
|
209 typedef struct sml_devinf_ctdataprop_s : public CXMLElement |
|
210 { |
|
211 public: |
|
212 SmlDevInfCTDataPtr_t prop; |
|
213 SmlDevInfCTDataListPtr_t param; |
|
214 |
|
215 public: |
|
216 IMPORT_C sml_devinf_ctdataprop_s(); |
|
217 IMPORT_C ~sml_devinf_ctdataprop_s(); |
|
218 CXMLElement* BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams() ); |
|
219 void SetDataL( const TDesC8& aData ); |
|
220 } *SmlDevInfCTDataPropPtr_t, SmlDevInfCTDataProp_t; |
|
221 |
|
222 typedef struct sml_devinf_propertylist_s : public CBase |
|
223 { |
|
224 public: |
|
225 SmlDevInfPropertyPtr_t data; |
|
226 struct sml_devinf_propertylist_s *next; |
|
227 |
|
228 public: |
|
229 IMPORT_C sml_devinf_propertylist_s(); |
|
230 IMPORT_C ~sml_devinf_propertylist_s(); |
|
231 } *SmlDevInfPropertyListPtr_t, SmlDevInfPropertyList_t; |
|
232 |
|
233 typedef struct sml_devinf_ctdataproplist_s : public CBase |
|
234 { |
|
235 public: |
|
236 SmlDevInfCTDataPropPtr_t data; |
|
237 struct sml_devinf_ctdataproplist_s *next; |
|
238 |
|
239 public: |
|
240 IMPORT_C sml_devinf_ctdataproplist_s(); |
|
241 IMPORT_C ~sml_devinf_ctdataproplist_s(); |
|
242 } *SmlDevInfCTDataPropListPtr_t, SmlDevInfCTDataPropList_t; |
|
243 |
|
244 typedef enum |
|
245 { |
|
246 SML_PROPNAME, |
|
247 SML_PARAMNAME |
|
248 } SmlPreviousElement_t; |
|
249 |
|
250 typedef struct sml_devinf_ctcap_s : public CXMLElement |
|
251 { |
|
252 private: |
|
253 SmlPreviousElement_t prevelem; |
|
254 CXMLElement* iParent; |
|
255 |
|
256 private: |
|
257 CXMLElement* GetPreviousElem() const; |
|
258 |
|
259 public: |
|
260 SmlPcdataPtr_t cttype; |
|
261 SmlDevInfCTDataPropListPtr_t prop; |
|
262 // 1.2 CHANGES : new elements |
|
263 SmlPcdataPtr_t verct; |
|
264 SmlPcdataPtr_t fieldlevel; |
|
265 SmlDevInfPropertyListPtr_t property; |
|
266 // changes end |
|
267 |
|
268 public: |
|
269 IMPORT_C sml_devinf_ctcap_s(); |
|
270 IMPORT_C sml_devinf_ctcap_s( CXMLElement* aParent ); |
|
271 IMPORT_C ~sml_devinf_ctcap_s(); |
|
272 CXMLElement* BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams() ); |
|
273 } *SmlDevInfCtCapPtr_t, SmlDevInfCtCap_t; |
|
274 |
|
275 typedef struct sml_devinf_ctcaplist_s : public CXMLElement |
|
276 { |
|
277 public: |
|
278 SmlDevInfCtCapPtr_t data; |
|
279 struct sml_devinf_ctcaplist_s *next; |
|
280 |
|
281 public: |
|
282 IMPORT_C sml_devinf_ctcaplist_s(); |
|
283 IMPORT_C ~sml_devinf_ctcaplist_s(); |
|
284 } *SmlDevInfCtCapListPtr_t, SmlDevInfCtCapList_t; |
|
285 |
|
286 typedef struct sml_devinf_datastore_s : public CXMLElement |
|
287 { |
|
288 public: |
|
289 SmlPcdataPtr_t sourceref; |
|
290 SmlPcdataPtr_t displayname; /* optional */ |
|
291 SmlPcdataPtr_t maxguidsize; /* optional */ |
|
292 SmlDevInfXmitPtr_t rxpref; |
|
293 SmlDevInfXmitListPtr_t rx; /* optional */ |
|
294 SmlDevInfXmitPtr_t txpref; |
|
295 SmlDevInfXmitListPtr_t tx; /* optional */ |
|
296 SmlDevInfDSMemPtr_t dsmem; /* optional */ |
|
297 SmlDevInfSyncCapPtr_t synccap; |
|
298 // 1.2 CHANGES : new / moved elements |
|
299 SmlPcdataPtr_t supportHierarchicalSync; |
|
300 SmlDevInfCtCapListPtr_t ctcap; |
|
301 SmlDevInfXmitListPtr_t filterrx; /* optional */ |
|
302 SmlDevInfFilterCapListPtr_t filtercap; /* optional */ |
|
303 // changes end |
|
304 |
|
305 public: |
|
306 IMPORT_C sml_devinf_datastore_s(); |
|
307 IMPORT_C ~sml_devinf_datastore_s(); |
|
308 CXMLElement* BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams() ); |
|
309 } *SmlDevInfDatastorePtr_t, SmlDevInfDatastore_t; |
|
310 |
|
311 typedef struct sml_devinf_datastorelist_s : public CXMLElement |
|
312 { |
|
313 public: |
|
314 SmlDevInfDatastorePtr_t data; |
|
315 struct sml_devinf_datastorelist_s *next; |
|
316 |
|
317 public: |
|
318 IMPORT_C sml_devinf_datastorelist_s(); |
|
319 IMPORT_C ~sml_devinf_datastorelist_s(); |
|
320 } *SmlDevInfDatastoreListPtr_t, SmlDevInfDatastoreList_t; |
|
321 |
|
322 typedef struct sml_devinf_devinf_s : public CXMLElement |
|
323 { |
|
324 public: |
|
325 SmlPcdataPtr_t verdtd; |
|
326 SmlPcdataPtr_t man; /* optional */ |
|
327 SmlPcdataPtr_t mod; /* optional */ |
|
328 SmlPcdataPtr_t oem; /* optional */ |
|
329 SmlPcdataPtr_t fwv; /* optional */ |
|
330 SmlPcdataPtr_t swv; /* optional */ |
|
331 SmlPcdataPtr_t hwv; /* optional */ |
|
332 SmlPcdataPtr_t devid; |
|
333 SmlPcdataPtr_t devtyp; |
|
334 Flag_t flags; |
|
335 SmlDevInfDatastoreListPtr_t datastore; |
|
336 SmlDevInfCtCapListPtr_t ctcap; |
|
337 SmlDevInfExtListPtr_t ext; |
|
338 |
|
339 public: |
|
340 IMPORT_C sml_devinf_devinf_s(); |
|
341 IMPORT_C ~sml_devinf_devinf_s(); |
|
342 |
|
343 TBool NeedsCleanup() const; |
|
344 CXMLElement* BeginElementL( TUint8 aTag, const TXMLElementParams& aParams = TXMLElementParams() ); |
|
345 CXMLElement::TAction EndElementL( TAny* aCallbacks, TUint8 aTag ); |
|
346 } *SmlDevInfDevInfPtr_t, SmlDevInfDevInf_t; |
|
347 |
|
348 #endif // __SML_DEVINFDTD_H__ |