|
1 /* |
|
2 * Copyright (c) 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: Contains implementations of inline functions. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // ----------------------------------------------------------------------------- |
|
20 // Returns the iExecuted member of the object |
|
21 // ----------------------------------------------------------------------------- |
|
22 // |
|
23 TBool CSmlDmAOCommandElement::Executed() |
|
24 { |
|
25 return iExecuted; |
|
26 } |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // Returns the iStatus member of the object |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 CSmlDmAdapter::TError CSmlDmAOCommandElement::Status() |
|
33 { |
|
34 return iStatus; |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // Returns the iLeaf member of the object |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 TBool CSmlDmAOCommandElement::Leaf() |
|
42 { |
|
43 return iLeaf; |
|
44 } |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // Returns the iStatusRef member of the object |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 TInt CSmlDmAOCommandElement::StatusRef() |
|
51 { |
|
52 return iStatusRef; |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // Returns the iResultRef member of the object |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 TInt CSmlDmAOCommandElement::ResultRef() |
|
60 { |
|
61 return iResultRef; |
|
62 } |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // Returns the iCmdType member of the object |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 CNSmlDmAOAdapter::TCommandType CSmlDmAOCommandElement::CmdType() |
|
69 { |
|
70 return iCmdType; |
|
71 } |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // Returns the iData member of the object |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 const HBufC8* CSmlDmAOCommandElement::Data() |
|
78 { |
|
79 return iData; |
|
80 } |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // Returns the iLastUriSeg member of the object |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 const HBufC8* CSmlDmAOCommandElement::LastUriSeg() |
|
87 { |
|
88 return iLastUriSeg; |
|
89 } |
|
90 |
|
91 // ----------------------------------------------------------------------------- |
|
92 // Sets the iExecuted member of the object |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 void CSmlDmAOCommandElement::SetExecuted( TBool aExecuted ) |
|
96 { |
|
97 iExecuted = aExecuted; |
|
98 } |
|
99 |
|
100 // ----------------------------------------------------------------------------- |
|
101 // Sets the iStatus member of the object |
|
102 // ----------------------------------------------------------------------------- |
|
103 // |
|
104 void CSmlDmAOCommandElement::SetStatus( CSmlDmAdapter::TError aStatus ) |
|
105 { |
|
106 iStatus = aStatus; |
|
107 } |
|
108 |
|
109 |
|
110 // ----------------------------------------------------------------------------- |
|
111 // Sets the iData member of the object. Ownership of aData argument will be |
|
112 // transfered to the CSmlDmAOCommandElement |
|
113 // ----------------------------------------------------------------------------- |
|
114 // |
|
115 void CSmlDmAOCommandElement::SetData( HBufC8* aData ) |
|
116 { |
|
117 iData = aData; |
|
118 } |
|
119 |