|
1 /* |
|
2 * Copyright (c) 2006 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: Contains implementations of inline functions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // ----------------------------------------------------------------------------- |
|
21 // Returns the iExecuted member of the object |
|
22 // ----------------------------------------------------------------------------- |
|
23 // |
|
24 TBool CSmlDmBmCommandElement::Executed() |
|
25 { |
|
26 return iExecuted; |
|
27 } |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // Returns the iStatus member of the object |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 CSmlDmAdapter::TError CSmlDmBmCommandElement::Status() |
|
34 { |
|
35 return iStatus; |
|
36 } |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // Returns the iLeaf member of the object |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 TBool CSmlDmBmCommandElement::Leaf() |
|
43 { |
|
44 return iLeaf; |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // Returns the iStatusRef member of the object |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 TInt CSmlDmBmCommandElement::StatusRef() |
|
52 { |
|
53 return iStatusRef; |
|
54 } |
|
55 |
|
56 // ----------------------------------------------------------------------------- |
|
57 // Returns the iResultRef member of the object |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 TInt CSmlDmBmCommandElement::ResultRef() |
|
61 { |
|
62 return iResultRef; |
|
63 } |
|
64 |
|
65 // ----------------------------------------------------------------------------- |
|
66 // Returns the iCmdType member of the object |
|
67 // ----------------------------------------------------------------------------- |
|
68 // |
|
69 CNSmlDmBmAdapter::TCommandType CSmlDmBmCommandElement::CmdType() |
|
70 { |
|
71 return iCmdType; |
|
72 } |
|
73 |
|
74 // ----------------------------------------------------------------------------- |
|
75 // Returns the iData member of the object |
|
76 // ----------------------------------------------------------------------------- |
|
77 // |
|
78 const HBufC8* CSmlDmBmCommandElement::Data() |
|
79 { |
|
80 return iData; |
|
81 } |
|
82 |
|
83 // ----------------------------------------------------------------------------- |
|
84 // Returns the iLastUriSeg member of the object |
|
85 // ----------------------------------------------------------------------------- |
|
86 // |
|
87 const HBufC8* CSmlDmBmCommandElement::LastUriSeg() |
|
88 { |
|
89 return iLastUriSeg; |
|
90 } |
|
91 |
|
92 // ----------------------------------------------------------------------------- |
|
93 // Sets the iExecuted member of the object |
|
94 // ----------------------------------------------------------------------------- |
|
95 // |
|
96 void CSmlDmBmCommandElement::SetExecuted( TBool aExecuted ) |
|
97 { |
|
98 iExecuted = aExecuted; |
|
99 } |
|
100 |
|
101 // ----------------------------------------------------------------------------- |
|
102 // Sets the iStatus member of the object |
|
103 // ----------------------------------------------------------------------------- |
|
104 // |
|
105 void CSmlDmBmCommandElement::SetStatus( CSmlDmAdapter::TError aStatus ) |
|
106 { |
|
107 iStatus = aStatus; |
|
108 } |
|
109 |
|
110 |
|
111 // ----------------------------------------------------------------------------- |
|
112 // Sets the iData member of the object. Ownership of aData argument will be |
|
113 // transfered to the CSmlDmBmCommandElement |
|
114 // ----------------------------------------------------------------------------- |
|
115 // |
|
116 void CSmlDmBmCommandElement::SetDataL( const TDesC8& aData ) |
|
117 { |
|
118 if ( aData.Length() > iData->Length() ) |
|
119 { |
|
120 iData = iData->ReAllocL( aData.Length() ); |
|
121 } |
|
122 *iData = aData; |
|
123 } |
|
124 |
|
125 //Function definitions for CSmlDmBmSettingsElement |
|
126 // ----------------------------------------------------------------------------- |
|
127 // Returns reference to iNodeBuf |
|
128 // ----------------------------------------------------------------------------- |
|
129 RPointerArray<CSmlDmBmCommandElement>& CSmlDmBmSettingsElement::NodeBuf() |
|
130 { |
|
131 return iNodeBuf; |
|
132 } |
|
133 |
|
134 // ----------------------------------------------------------------------------- |
|
135 // Returns iMappingName |
|
136 // ----------------------------------------------------------------------------- |
|
137 const HBufC8* CSmlDmBmSettingsElement::MappingName() |
|
138 { |
|
139 return iMappingName; |
|
140 } |
|
141 |
|
142 // ----------------------------------------------------------------------------- |
|
143 // Returns iExecuted |
|
144 // ----------------------------------------------------------------------------- |
|
145 TBool CSmlDmBmSettingsElement::Executed() |
|
146 { |
|
147 return iExecuted; |
|
148 } |
|
149 |
|
150 // ----------------------------------------------------------------------------- |
|
151 // Sets the iExecuted member value |
|
152 // ----------------------------------------------------------------------------- |
|
153 void CSmlDmBmSettingsElement::SetExecuted( TBool aExecuted ) |
|
154 { |
|
155 iExecuted = aExecuted; |
|
156 } |
|
157 |
|
158 |
|
159 // ----------------------------------------------------------------------------- |
|
160 // Returns iLuid |
|
161 // ----------------------------------------------------------------------------- |
|
162 TBool CSmlDmBmSettingsElement::Luid() |
|
163 { |
|
164 return iLuid; |
|
165 } |
|
166 |
|
167 // ----------------------------------------------------------------------------- |
|
168 // Sets the iExecuted member value |
|
169 // ----------------------------------------------------------------------------- |
|
170 void CSmlDmBmSettingsElement::SetLuid( TInt aLuid ) |
|
171 { |
|
172 iLuid = aLuid; |
|
173 } |