|
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 #ifdef _DEBUG |
|
20 # define __IF_DEBUG(t) {RDebug::t;} |
|
21 #else |
|
22 # define __IF_DEBUG(t) |
|
23 #endif |
|
24 |
|
25 // --------------------------------------------------------------------------- |
|
26 // |
|
27 // --------------------------------------------------------------------------- |
|
28 // |
|
29 void CDpsXmlParser::GetAttribute(TDpsAttribute& aAttrib) const |
|
30 { |
|
31 aAttrib = iAttrib; |
|
32 } |
|
33 |
|
34 // --------------------------------------------------------------------------- |
|
35 // |
|
36 // --------------------------------------------------------------------------- |
|
37 // |
|
38 TBool CDpsXmlParser::HasAttribute() const |
|
39 { |
|
40 return iAttrib != 0; |
|
41 } |
|
42 |
|
43 // --------------------------------------------------------------------------- |
|
44 // |
|
45 // --------------------------------------------------------------------------- |
|
46 // |
|
47 TDpsOperation CDpsXmlParser::Operation() const |
|
48 { |
|
49 return iDpsOperation; |
|
50 } |
|
51 |
|
52 // --------------------------------------------------------------------------- |
|
53 // |
|
54 // --------------------------------------------------------------------------- |
|
55 // |
|
56 TDpsEvent CDpsXmlParser::Event() const |
|
57 { |
|
58 return iDpsEvent; |
|
59 } |
|
60 |
|
61 // --------------------------------------------------------------------------- |
|
62 // |
|
63 // --------------------------------------------------------------------------- |
|
64 // |
|
65 void CDpsXmlParser::GetParameters(TDpsArgArray& aParams) const |
|
66 { |
|
67 aParams = iDpsArgs; |
|
68 } |
|
69 |
|
70 // --------------------------------------------------------------------------- |
|
71 // |
|
72 // --------------------------------------------------------------------------- |
|
73 // |
|
74 TBool CDpsXmlParser::IsEvent() const |
|
75 { |
|
76 return iDpsEvent != EDpsEvtEmpty; |
|
77 } |
|
78 |
|
79 |
|
80 // --------------------------------------------------------------------------- |
|
81 // |
|
82 // --------------------------------------------------------------------------- |
|
83 // |
|
84 void CDpsXmlParser::SetParameters(TDpsArgArray& aParams) |
|
85 { |
|
86 iDpsArgs = aParams; |
|
87 } |
|
88 |
|
89 // --------------------------------------------------------------------------- |
|
90 // |
|
91 // --------------------------------------------------------------------------- |
|
92 // |
|
93 void CDpsXmlParser::SetOperationResult(TDpsResult& aResult) const |
|
94 { |
|
95 aResult.iMajorCode = iDpsResult.iMajorCode; |
|
96 aResult.iMinorCode = iDpsResult.iMinorCode; |
|
97 } |