29
|
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: This class parses the dps xml script.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#include "dpsxmlparser.h"
|
|
20 |
#include "dpsconst.h"
|
|
21 |
#include "pictbridge.h"
|
|
22 |
#include "dpsxmlstring.h"
|
49
|
23 |
#include "OstTraceDefinitions.h"
|
|
24 |
#ifdef OST_TRACE_COMPILER_IN_USE
|
|
25 |
#include "dpsxmlparserTraces.h"
|
|
26 |
#endif
|
29
|
27 |
|
|
28 |
|
|
29 |
// ---------------------------------------------------------------------------
|
|
30 |
//
|
|
31 |
// ---------------------------------------------------------------------------
|
|
32 |
//
|
|
33 |
CDpsXmlParser* CDpsXmlParser::NewL(CDpsEngine* aEngine)
|
|
34 |
{
|
|
35 |
CDpsXmlParser* self = new (ELeave) CDpsXmlParser(aEngine);
|
|
36 |
return self;
|
|
37 |
}
|
|
38 |
|
|
39 |
// ---------------------------------------------------------------------------
|
|
40 |
//
|
|
41 |
// ---------------------------------------------------------------------------
|
|
42 |
//
|
|
43 |
CDpsXmlParser::~CDpsXmlParser()
|
|
44 |
{
|
49
|
45 |
OstTraceFunctionEntry0( CDPSXMLPARSER_CDPSXMLPARSER_DES_ENTRY );
|
29
|
46 |
iDpsArgs.Close();
|
49
|
47 |
OstTraceFunctionExit0( CDPSXMLPARSER_CDPSXMLPARSER_DES_EXIT );
|
29
|
48 |
}
|
|
49 |
|
|
50 |
// ---------------------------------------------------------------------------
|
|
51 |
//
|
|
52 |
// ---------------------------------------------------------------------------
|
|
53 |
//
|
|
54 |
CDpsXmlParser::CDpsXmlParser(CDpsEngine* aEngine) : iEngine(aEngine)
|
|
55 |
{
|
49
|
56 |
OstTraceFunctionEntry0( DUP1_CDPSXMLPARSER_CDPSXMLPARSER_CONS_ENTRY );
|
29
|
57 |
Reset();
|
49
|
58 |
OstTraceFunctionExit0( DUP1_CDPSXMLPARSER_CDPSXMLPARSER_CONS_EXIT );
|
29
|
59 |
}
|
|
60 |
|
|
61 |
// ---------------------------------------------------------------------------
|
|
62 |
//
|
|
63 |
// ---------------------------------------------------------------------------
|
|
64 |
//
|
|
65 |
void CDpsXmlParser::OnStartDocumentL(
|
|
66 |
const RDocumentParameters& /*aDocParam*/, TInt aErrorCode)
|
|
67 |
{
|
49
|
68 |
OstTraceFunctionEntry0( CDPSXMLPARSER_ONSTARTDOCUMENTL_ENTRY );
|
29
|
69 |
if (aErrorCode != KErrNone)
|
|
70 |
{
|
49
|
71 |
OstTrace1( TRACE_ERROR, CDPSXMLPARSER_ONSTARTDOCUMENTL, "---, error code is %d", aErrorCode );
|
29
|
72 |
User::Leave(aErrorCode);
|
|
73 |
}
|
49
|
74 |
OstTraceFunctionExit0( CDPSXMLPARSER_ONSTARTDOCUMENTL_EXIT );
|
29
|
75 |
}
|
|
76 |
|
|
77 |
// ---------------------------------------------------------------------------
|
|
78 |
//
|
|
79 |
// ---------------------------------------------------------------------------
|
|
80 |
//
|
|
81 |
void CDpsXmlParser::OnEndDocumentL(TInt aErrorCode)
|
|
82 |
{
|
49
|
83 |
OstTraceFunctionEntry0( CDPSXMLPARSER_ONENDDOCUMENTL_ENTRY );
|
29
|
84 |
if (aErrorCode != KErrNone)
|
|
85 |
{
|
49
|
86 |
OstTrace1( TRACE_ERROR, CDPSXMLPARSER_ONENDDOCUMENTL, "---, error code is %d", aErrorCode );
|
29
|
87 |
User::Leave(aErrorCode);
|
|
88 |
}
|
|
89 |
|
49
|
90 |
OstTraceFunctionExit0( CDPSXMLPARSER_ONENDDOCUMENTL_EXIT );
|
29
|
91 |
}
|
|
92 |
|
|
93 |
// ---------------------------------------------------------------------------
|
|
94 |
//
|
|
95 |
// ---------------------------------------------------------------------------
|
|
96 |
//
|
|
97 |
void CDpsXmlParser::OnStartElementL(const RTagInfo& aElement,
|
|
98 |
const RAttributeArray& aAttributes,
|
|
99 |
TInt aErrCode)
|
|
100 |
{
|
49
|
101 |
OstTraceFunctionEntry0( CDPSXMLPARSER_ONSTARTELEMENTL_ENTRY );
|
29
|
102 |
|
|
103 |
if (aErrCode != KErrNone)
|
|
104 |
{
|
49
|
105 |
OstTrace1( TRACE_ERROR, CDPSXMLPARSER_ONSTARTELEMENTL, "---, error code is %d", aErrCode );
|
29
|
106 |
User::Leave(aErrCode);
|
|
107 |
}
|
|
108 |
if (aAttributes.Count() > 1)
|
|
109 |
{
|
49
|
110 |
OstTrace0( TRACE_ERROR, DUP1_CDPSXMLPARSER_ONSTARTELEMENTL, "---cannot have more than one attribute!" );
|
29
|
111 |
User::Leave(KErrArgument);
|
|
112 |
}
|
|
113 |
|
|
114 |
// Gets the name of the tag
|
|
115 |
const TDesC8& name = aElement.LocalName().DesC();
|
|
116 |
|
49
|
117 |
OstTraceExt1( TRACE_NORMAL, DUP2_CDPSXMLPARSER_ONSTARTELEMENTL, "---Start---%s", name );
|
29
|
118 |
//Checks the element
|
|
119 |
// this is the first layer <dps>
|
|
120 |
if (!name.Compare(KDpsXml))
|
|
121 |
{
|
|
122 |
iAction = EDpsXmlStart;
|
|
123 |
}
|
|
124 |
// this is the second layer <input|output>
|
|
125 |
else if (!name.Compare(KDpsXmlOutput))
|
|
126 |
{
|
|
127 |
iAction = EDpsXmlOutput;
|
|
128 |
}
|
|
129 |
else if (!name.Compare(KDpsXmlInput))
|
|
130 |
{
|
|
131 |
// operation and event cannot be distiguised here
|
|
132 |
iAction = EDpsXmlInput;
|
|
133 |
}
|
|
134 |
// this is the third layer <operation|event|result>
|
|
135 |
else if (iAction == EDpsXmlOutput && !name.Compare(KDpsXmlResult))
|
|
136 |
{
|
|
137 |
// output must be result
|
|
138 |
iAction = EDpsXmlResult;
|
|
139 |
}
|
|
140 |
else if (iAction == EDpsXmlInput &&
|
|
141 |
(!name.Compare(iEngine->DpsParameters()->iDpsEventStrings[0]) ||
|
|
142 |
!name.Compare(iEngine->DpsParameters()->iDpsEventStrings[1])))
|
|
143 |
{
|
|
144 |
if (!name.Compare(iEngine->DpsParameters()->iDpsEventStrings[0]))
|
|
145 |
{
|
|
146 |
iDpsEvent = EDpsEvtNotifyJobStatus;
|
|
147 |
}
|
|
148 |
else
|
|
149 |
{
|
|
150 |
iDpsEvent = EDpsEvtNotifyDeviceStatus;
|
|
151 |
}
|
|
152 |
iAction = EDpsXmlEvent;
|
|
153 |
}
|
|
154 |
else if (iAction == EDpsXmlInput || iAction == EDpsXmlResult)
|
|
155 |
{
|
|
156 |
iAction = EDpsXmlOperation;
|
|
157 |
for (TInt i= 0; i < EDpsOpMax-1; i++) //i=0 as AppendL() method adds item on first free position in array
|
|
158 |
{
|
|
159 |
if (!name.Compare(iEngine->DpsParameters()->iDpsOperationStrings[i]))
|
|
160 |
{
|
49
|
161 |
OstTraceExt1( TRACE_NORMAL, DUP3_CDPSXMLPARSER_ONSTARTELEMENTL, "---found the operation---%s", name );
|
29
|
162 |
iDpsOperation = (TDpsOperation)(i+1);// i+1 to by pass first operation EDpsOpEmpty in enum which is not added to array
|
|
163 |
break;
|
|
164 |
}
|
|
165 |
}
|
|
166 |
}
|
|
167 |
|
|
168 |
// below is the fourth layer, e.g. the argument list/element. there
|
|
169 |
// could be many arugments, but only one element
|
|
170 |
else if (iAction == EDpsXmlOperation || iAction == EDpsXmlEvent)
|
|
171 |
{
|
|
172 |
// only element in output is capability
|
|
173 |
if (!name.Compare(iEngine->DpsParameters()->iDpsElementStrings[0]))
|
|
174 |
{
|
49
|
175 |
OstTraceExt1( TRACE_NORMAL, DUP4_CDPSXMLPARSER_ONSTARTELEMENTL, "---the element is %s", name );
|
29
|
176 |
iElement = EDpsCapability;
|
|
177 |
}
|
|
178 |
else
|
|
179 |
{
|
|
180 |
for (TInt i = 0; i < EDpsArgMax; i++)
|
|
181 |
{
|
|
182 |
if (!name.Compare(iEngine->DpsParameters()->iDpsArgStrings[i]))
|
|
183 |
{
|
49
|
184 |
OstTraceExt1( TRACE_NORMAL, DUP5_CDPSXMLPARSER_ONSTARTELEMENTL, "---the argument is %s", name );
|
29
|
185 |
TDpsArg arg;
|
|
186 |
arg.iElement = (TDpsArgument)i;
|
|
187 |
arg.iContent.Copy(_L(""));
|
|
188 |
iDpsArgs.Append(arg);
|
|
189 |
break;
|
|
190 |
}
|
|
191 |
}
|
|
192 |
}
|
|
193 |
|
|
194 |
}
|
|
195 |
else
|
|
196 |
{
|
|
197 |
// something wrong
|
49
|
198 |
OstTraceExt1( TRACE_ERROR, DUP6_CDPSXMLPARSER_ONSTARTELEMENTL, "--- non-PB element! %S", name );
|
29
|
199 |
User::Leave(KErrNotSupported);
|
|
200 |
}
|
|
201 |
if (aAttributes.Count() == 1)
|
|
202 |
{
|
|
203 |
ParseAttributesL(aAttributes, name);
|
|
204 |
}
|
49
|
205 |
OstTraceFunctionExit0( CDPSXMLPARSER_ONSTARTELEMENTL_EXIT );
|
29
|
206 |
}
|
|
207 |
|
|
208 |
// ---------------------------------------------------------------------------
|
|
209 |
//
|
|
210 |
// ---------------------------------------------------------------------------
|
|
211 |
//
|
|
212 |
void CDpsXmlParser::ParseAttributesL(const RAttributeArray& aAttributes,
|
|
213 |
const TDesC8& tag)
|
|
214 |
{
|
49
|
215 |
OstTraceFunctionEntry0( CDPSXMLPARSER_PARSEATTRIBUTESL_ENTRY );
|
29
|
216 |
// element
|
|
217 |
const TDesC8& name = aAttributes[0].Attribute().LocalName().DesC();
|
|
218 |
// only "layouts" and "paperTypes" have attributes
|
|
219 |
if (tag.Compare(KDpsXmlPaperTypes) && tag.Compare(KDpsXmlLayouts))
|
|
220 |
{
|
|
221 |
// error
|
49
|
222 |
OstTraceExt1( TRACE_ERROR, CDPSXMLPARSER_PARSEATTRIBUTESL, "--- this tag %s have no attribute", name );
|
29
|
223 |
User::Leave(KErrArgument);
|
|
224 |
}
|
|
225 |
// the element of the attributes must be "paperSize"
|
|
226 |
if (name.Compare(KDpsXmlPaperSize))
|
|
227 |
{
|
|
228 |
// error
|
49
|
229 |
OstTraceExt1( TRACE_ERROR, DUP1_CDPSXMLPARSER_PARSEATTRIBUTESL, "--- wrong attribute--- %s", name );
|
29
|
230 |
User::Leave(KErrArgument);
|
|
231 |
}
|
|
232 |
// value
|
|
233 |
HBufC8* value = aAttributes[0].Value().DesC().AllocLC();
|
|
234 |
TUint32 result;
|
|
235 |
TLex8 converter(*value);
|
|
236 |
TInt error = converter.Val(result, EHex);
|
|
237 |
if (error != KErrNone)
|
|
238 |
{
|
49
|
239 |
OstTrace1( TRACE_ERROR, DUP2_CDPSXMLPARSER_PARSEATTRIBUTESL, "--- convert error %d", error );
|
29
|
240 |
User::Leave(error);
|
|
241 |
}
|
|
242 |
iAttrib = result >> KShiftLength;
|
|
243 |
CleanupStack::PopAndDestroy(value);
|
49
|
244 |
OstTrace1( TRACE_NORMAL, DUP3_CDPSXMLPARSER_PARSEATTRIBUTESL, "--- attribte value %x", result );
|
|
245 |
|
|
246 |
OstTraceFunctionExit0( CDPSXMLPARSER_PARSEATTRIBUTESL_EXIT );
|
29
|
247 |
}
|
|
248 |
|
|
249 |
// ---------------------------------------------------------------------------
|
|
250 |
//
|
|
251 |
// ---------------------------------------------------------------------------
|
|
252 |
//
|
|
253 |
void CDpsXmlParser::OnEndElementL(const RTagInfo& aElement,
|
|
254 |
TInt aErrorCode)
|
|
255 |
{
|
49
|
256 |
OstTraceFunctionEntry0( CDPSXMLPARSER_ONENDELEMENTL_ENTRY );
|
29
|
257 |
|
|
258 |
if (aErrorCode != KErrNone)
|
|
259 |
{
|
49
|
260 |
OstTrace1( TRACE_ERROR, CDPSXMLPARSER_ONENDELEMENTL, "--- error code is %d", aErrorCode );
|
29
|
261 |
User::Leave(aErrorCode);
|
|
262 |
}
|
|
263 |
|
|
264 |
// Get the name of the tag
|
|
265 |
const TDesC8& name = aElement.LocalName().DesC();
|
49
|
266 |
OstTraceExt1( TRACE_NORMAL, DUP1_CDPSXMLPARSER_ONENDELEMENTL, "%s", name );
|
|
267 |
OstTraceFunctionExit0( CDPSXMLPARSER_ONENDELEMENTL_EXIT );
|
29
|
268 |
}
|
|
269 |
|
|
270 |
// ---------------------------------------------------------------------------
|
|
271 |
//
|
|
272 |
// ---------------------------------------------------------------------------
|
|
273 |
//
|
|
274 |
void CDpsXmlParser::OnContentL(const TDesC8& aBytes, TInt aErrorCode)
|
|
275 |
{
|
49
|
276 |
OstTraceFunctionEntry0( CDPSXMLPARSER_ONCONTENTL_ENTRY );
|
|
277 |
OstTraceExt1( TRACE_NORMAL, CDPSXMLPARSER_ONCONTENTL, "content is %s", aBytes );
|
29
|
278 |
|
|
279 |
if (aErrorCode != KErrNone)
|
|
280 |
{
|
49
|
281 |
OstTrace1( TRACE_ERROR, DUP1_CDPSXMLPARSER_ONCONTENTL, "--- error code %d", aErrorCode );
|
29
|
282 |
User::Leave(aErrorCode);
|
|
283 |
}
|
|
284 |
if (aBytes[0] >= KSOH && aBytes[0] <= KSpace)
|
|
285 |
{
|
49
|
286 |
OstTrace1( TRACE_NORMAl, DUP2_CDPSXMLPARSER_ONCONTENTL, "the unprintable char %d", aBytes[0] );
|
|
287 |
OstTraceFunctionExit0( CDPSXMLPARSER_ONCONTENTL_EXIT );
|
29
|
288 |
return;
|
|
289 |
}
|
|
290 |
// parses the result
|
|
291 |
if (iAction == EDpsXmlResult)
|
|
292 |
{
|
|
293 |
TUint32 value;
|
|
294 |
TLex8 converter(aBytes);
|
|
295 |
TInt error = converter.Val(value, EHex);
|
|
296 |
if (error != KErrNone)
|
|
297 |
{
|
49
|
298 |
OstTrace1( TRACE_ERROR, DUP3_CDPSXMLPARSER_ONCONTENTL, "--- convert error %d", error );
|
29
|
299 |
User::Leave(error);
|
|
300 |
}
|
49
|
301 |
OstTrace1( TRACE_NORMAL, DUP4_CDPSXMLPARSER_ONCONTENTL, "--- result %x", value);
|
|
302 |
|
29
|
303 |
// we have got the result
|
|
304 |
iDpsResult.iMajorCode =
|
|
305 |
static_cast<TDpsResultMajorCode>(value >> KShiftLength);
|
|
306 |
iDpsResult.iMinorCode =
|
|
307 |
static_cast<TDpsResultMinorCode>(value & KDpsMinorMask);
|
|
308 |
}
|
|
309 |
// gets the argument
|
|
310 |
else if (iAction == EDpsXmlOperation || iAction == EDpsXmlEvent)
|
|
311 |
{
|
|
312 |
iDpsArgs[iDpsArgs.Count() - 1].iContent.Copy(aBytes);
|
|
313 |
}
|
49
|
314 |
OstTraceFunctionExit0( DUP1_CDPSXMLPARSER_ONCONTENTL_EXIT );
|
29
|
315 |
}
|
|
316 |
|
|
317 |
// ---------------------------------------------------------------------------
|
|
318 |
//
|
|
319 |
// ---------------------------------------------------------------------------
|
|
320 |
//
|
|
321 |
void CDpsXmlParser::OnStartPrefixMappingL(const RString& /*aPrefix*/,
|
|
322 |
const RString& /*aUri*/,
|
|
323 |
TInt aErrorCode)
|
|
324 |
{
|
49
|
325 |
OstTraceFunctionEntry0( CDPSXMLPARSER_ONSTARTPREFIXMAPPINGL_ENTRY );
|
29
|
326 |
if (aErrorCode != KErrNone)
|
|
327 |
{
|
49
|
328 |
OstTrace1( TRACE_ERROR, CDPSXMLPARSER_ONSTARTPREFIXMAPPINGL, "--- error code %d", aErrorCode );
|
29
|
329 |
User::Leave(aErrorCode);
|
|
330 |
}
|
49
|
331 |
OstTraceFunctionExit0( CDPSXMLPARSER_ONSTARTPREFIXMAPPINGL_EXIT );
|
29
|
332 |
}
|
|
333 |
|
|
334 |
// ---------------------------------------------------------------------------
|
|
335 |
//
|
|
336 |
// ---------------------------------------------------------------------------
|
|
337 |
//
|
|
338 |
void CDpsXmlParser::OnEndPrefixMappingL(const RString& /*aPrefix*/,
|
|
339 |
TInt aErrorCode)
|
|
340 |
{
|
49
|
341 |
OstTraceFunctionEntry0( CDPSXMLPARSER_ONENDPREFIXMAPPINGL_ENTRY );
|
29
|
342 |
if (aErrorCode != KErrNone)
|
|
343 |
{
|
49
|
344 |
OstTrace1( TRACE_ERROR, CDPSXMLPARSER_ONENDPREFIXMAPPINGL, "--- error code %d", aErrorCode );
|
29
|
345 |
User::Leave(aErrorCode);
|
|
346 |
}
|
49
|
347 |
OstTraceFunctionExit0( CDPSXMLPARSER_ONENDPREFIXMAPPINGL_EXIT );
|
29
|
348 |
}
|
|
349 |
|
|
350 |
// ---------------------------------------------------------------------------
|
|
351 |
//
|
|
352 |
// ---------------------------------------------------------------------------
|
|
353 |
//
|
|
354 |
void CDpsXmlParser::OnIgnorableWhiteSpaceL(const TDesC8& /*aBytes*/,
|
|
355 |
TInt aErrorCode)
|
|
356 |
{
|
49
|
357 |
OstTraceFunctionEntry0( CDPSXMLPARSER_ONIGNORABLEWHITESPACEL_ENTRY );
|
29
|
358 |
if (aErrorCode != KErrNone)
|
|
359 |
{
|
49
|
360 |
OstTrace1( TRACE_ERROR, CDPSXMLPARSER_ONIGNORABLEWHITESPACEL, "--- error code %d", aErrorCode );
|
29
|
361 |
User::Leave(aErrorCode);
|
|
362 |
}
|
49
|
363 |
OstTraceFunctionExit0( CDPSXMLPARSER_ONIGNORABLEWHITESPACEL_EXIT );
|
29
|
364 |
}
|
|
365 |
|
|
366 |
// ---------------------------------------------------------------------------
|
|
367 |
//
|
|
368 |
// ---------------------------------------------------------------------------
|
|
369 |
//
|
|
370 |
void CDpsXmlParser::OnSkippedEntityL(const RString& /*aName*/,
|
|
371 |
TInt aErrorCode)
|
|
372 |
{
|
49
|
373 |
OstTraceFunctionEntry0( CDPSXMLPARSER_ONSKIPPEDENTITYL_ENTRY );
|
29
|
374 |
if (aErrorCode != KErrNone)
|
|
375 |
{
|
49
|
376 |
OstTrace1( TRACE_ERROR, CDPSXMLPARSER_ONSKIPPEDENTITYL, "--- error code %d", aErrorCode );
|
29
|
377 |
User::Leave(aErrorCode);
|
|
378 |
}
|
49
|
379 |
OstTraceFunctionExit0( CDPSXMLPARSER_ONSKIPPEDENTITYL_EXIT );
|
29
|
380 |
}
|
|
381 |
|
|
382 |
// ---------------------------------------------------------------------------
|
|
383 |
//
|
|
384 |
// ---------------------------------------------------------------------------
|
|
385 |
//
|
|
386 |
void CDpsXmlParser::OnProcessingInstructionL(const TDesC8& /*aTarget*/,
|
|
387 |
const TDesC8& /*aData*/,
|
|
388 |
TInt aErrorCode)
|
|
389 |
{
|
49
|
390 |
OstTraceFunctionEntry0( CDPSXMLPARSER_ONPROCESSINGINSTRUCTIONL_ENTRY );
|
29
|
391 |
if (aErrorCode != KErrNone)
|
|
392 |
{
|
49
|
393 |
OstTrace1( TRACE_ERROR, CDPSXMLPARSER_ONPROCESSINGINSTRUCTIONL, "--- error code %d", aErrorCode );
|
29
|
394 |
User::Leave(aErrorCode);
|
|
395 |
}
|
49
|
396 |
OstTraceFunctionExit0( CDPSXMLPARSER_ONPROCESSINGINSTRUCTIONL_EXIT );
|
29
|
397 |
}
|
|
398 |
|
|
399 |
// ---------------------------------------------------------------------------
|
|
400 |
//
|
|
401 |
// ---------------------------------------------------------------------------
|
|
402 |
//
|
|
403 |
void CDpsXmlParser::OnError(TInt aErrorCode)
|
|
404 |
{
|
49
|
405 |
OstTraceFunctionEntry0( CDPSXMLPARSER_ONERROR_ENTRY );
|
29
|
406 |
if (aErrorCode != KErrNone)
|
|
407 |
{
|
49
|
408 |
OstTrace1( TRACE_NORMAL, CDPSXMLPARSER_ONERROR, "---error code %d", aErrorCode );
|
29
|
409 |
}
|
49
|
410 |
OstTraceFunctionExit0( CDPSXMLPARSER_ONERROR_EXIT );
|
29
|
411 |
}
|
|
412 |
|
|
413 |
// ---------------------------------------------------------------------------
|
|
414 |
//
|
|
415 |
// ---------------------------------------------------------------------------
|
|
416 |
//
|
|
417 |
|
|
418 |
TAny* CDpsXmlParser::GetExtendedInterface(const TInt32 aUid)
|
|
419 |
{
|
|
420 |
return aUid == MDpsExtensionHandler::EInterfaceUid ?
|
|
421 |
static_cast<MDpsExtensionHandler*>(this) : 0;
|
|
422 |
}
|
|
423 |
|
|
424 |
// ---------------------------------------------------------------------------
|
|
425 |
//
|
|
426 |
// ---------------------------------------------------------------------------
|
|
427 |
//
|
|
428 |
void CDpsXmlParser::Reset()
|
|
429 |
{
|
|
430 |
iDpsArgs.Reset();
|
|
431 |
iAction = EDpsXmlEmpty;
|
|
432 |
iDpsEvent = EDpsEvtEmpty;
|
|
433 |
iDpsOperation = EDpsOpEmpty;
|
|
434 |
iElement = EDpsEleEmpty;
|
|
435 |
iAttrib = 0;
|
|
436 |
}
|
|
437 |
|