|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * inline function assemble for data accessor. |
|
16 * |
|
17 */ |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <e32std.h> |
|
21 #include "impsfields.h" |
|
22 #include "impsconst.h" |
|
23 #include "impskey.h" |
|
24 #include "impserrors.h" |
|
25 #include "impsutils.h" |
|
26 #include "impsdatautils.h" |
|
27 #include "impstdataaccessor.h" |
|
28 |
|
29 // ================= MEMBER FUNCTIONS ======================= |
|
30 |
|
31 // --------------------------------------------------------- |
|
32 // CImpsDataAccessor::NewKeyL |
|
33 // --------------------------------------------------------- |
|
34 // |
|
35 inline MImpsKey* CImpsDataAccessor::NewKeyL() |
|
36 { |
|
37 return iDataAccessor.NewKeyL(); |
|
38 } |
|
39 |
|
40 // --------------------------------------------------------- |
|
41 // CImpsDataAccessor::StoreDescL |
|
42 // mutator for symbian descriptor value |
|
43 // --------------------------------------------------------- |
|
44 // |
|
45 inline void CImpsDataAccessor::StoreDescL( MImpsKey* aKey, TPtrC aValue ) |
|
46 { |
|
47 iDataAccessor.StoreDescL( aKey, aValue ); |
|
48 } |
|
49 |
|
50 // --------------------------------------------------------- |
|
51 // CImpsDataAccessor::StoreDescL8 |
|
52 // mutator for symbian 8-bit descriptor value |
|
53 // --------------------------------------------------------- |
|
54 // |
|
55 inline void CImpsDataAccessor::StoreDesc8L( MImpsKey* aKey, TPtrC8 aValue) |
|
56 { |
|
57 iDataAccessor.StoreDesc8L( aKey, aValue); |
|
58 } |
|
59 |
|
60 // --------------------------------------------------------- |
|
61 // CImpsDataAccessor::StoreInteger |
|
62 // mutator for symbian integer value |
|
63 // --------------------------------------------------------- |
|
64 // |
|
65 inline void CImpsDataAccessor::StoreIntegerL( MImpsKey* aKey, TInt aValue ) |
|
66 { |
|
67 iDataAccessor.StoreIntegerL( aKey, aValue ); |
|
68 } |
|
69 |
|
70 // --------------------------------------------------------- |
|
71 // CImpsDataAccessor::StoreBooleanL |
|
72 // mutator for symbian boolean value |
|
73 // --------------------------------------------------------- |
|
74 // |
|
75 inline void CImpsDataAccessor::StoreBooleanL( MImpsKey* aKey, TBool aValue ) |
|
76 { |
|
77 iDataAccessor.StoreBooleanL( aKey, aValue ); |
|
78 } |
|
79 |
|
80 // --------------------------------------------------------- |
|
81 // CImpsDataAccessor::StoreEmptyL |
|
82 // mutator for symbian empty value |
|
83 // --------------------------------------------------------- |
|
84 // |
|
85 inline void CImpsDataAccessor::StoreEmptyL( MImpsKey* aKey) |
|
86 { |
|
87 iDataAccessor.StoreEmptyL(aKey); |
|
88 } |
|
89 |
|
90 // --------------------------------------------------------- |
|
91 // CImpsDataAccessor::StoreExtL |
|
92 // mutator for extension attribute |
|
93 // --------------------------------------------------------- |
|
94 // |
|
95 inline void CImpsDataAccessor::StoreExtL( MImpsKey* aKey, |
|
96 TPtrC8 aName, TPtrC8 aValue) |
|
97 { |
|
98 iDataAccessor.StoreExtL(aKey, aName, aValue); |
|
99 } |
|
100 |
|
101 //---------------------------------------------------------- |
|
102 // CImpsDataAccessor::RestoreDescL |
|
103 // accessor for symbian descriptor value |
|
104 // --------------------------------------------------------- |
|
105 // |
|
106 |
|
107 inline TBool CImpsDataAccessor::RestoreDescL( MImpsKey* aKey, TDesC*& aDes) |
|
108 { |
|
109 return iDataAccessor.RestoreDescL( aKey, aDes); |
|
110 } |
|
111 |
|
112 //---------------------------------------------------------- |
|
113 // CImpsDataAccessor::RestoreDesc8L |
|
114 // accessor for symbian 8-bit descriptor value |
|
115 // --------------------------------------------------------- |
|
116 // |
|
117 |
|
118 inline TBool CImpsDataAccessor::RestoreDesc8L( MImpsKey* aKey, TDesC8*& aDes ) |
|
119 { |
|
120 return iDataAccessor.RestoreDesc8L( aKey, aDes ); |
|
121 } |
|
122 |
|
123 //---------------------------------------------------------- |
|
124 // CImpsDataAccessor::RestoreIntegerL |
|
125 // accessor for integer value |
|
126 // (covers also boolean and enum types |
|
127 // --------------------------------------------------------- |
|
128 // |
|
129 |
|
130 inline TBool CImpsDataAccessor::RestoreIntegerL( MImpsKey* aKey, TInt& aInt ) |
|
131 { |
|
132 return iDataAccessor.RestoreIntegerL( aKey, aInt ); |
|
133 } |
|
134 |
|
135 //---------------------------------------------------------- |
|
136 // CImpsDataAccessor::RestoreBooleanL |
|
137 // accessor for integer value |
|
138 // (covers also boolean and enum types |
|
139 // --------------------------------------------------------- |
|
140 // |
|
141 |
|
142 inline TBool CImpsDataAccessor::RestoreBooleanL( MImpsKey* aKey, TBool& aBool ) |
|
143 { |
|
144 return iDataAccessor.RestoreBooleanL( aKey, aBool ); |
|
145 } |
|
146 |
|
147 //---------------------------------------------------------- |
|
148 // CImpsDataAccessor::RestoreEmptyL |
|
149 // accessor for integer value |
|
150 // (covers also boolean and enum types |
|
151 // --------------------------------------------------------- |
|
152 // |
|
153 inline TBool CImpsDataAccessor::RestoreEmptyL( MImpsKey* aKey ) |
|
154 { |
|
155 return iDataAccessor.RestoreEmptyL( aKey ); |
|
156 } |
|
157 |
|
158 //---------------------------------------------------------- |
|
159 // CImpsDataAccessor::RestoreExtL |
|
160 // accessor for extension attribute |
|
161 // --------------------------------------------------------- |
|
162 // |
|
163 inline TBool CImpsDataAccessor::RestoreExtL( MImpsKey* aKey, |
|
164 TDesC8*& aName, TDesC8*& aValue) |
|
165 { |
|
166 return iDataAccessor.RestoreExtL( aKey, aName, aValue ); |
|
167 } |
|
168 |
|
169 // --------------------------------------------------------- |
|
170 // CImpsDataAccessor::KeyTypeL |
|
171 // method returns type of related to given key |
|
172 // --------------------------------------------------------- |
|
173 // |
|
174 inline TImpsDataType CImpsDataAccessor::KeyTypeL( MImpsKey* aKey ) |
|
175 { |
|
176 return iDataAccessor.KeyTypeL( aKey ); |
|
177 } |
|
178 |
|
179 // --------------------------------------------------------- |
|
180 // CImpsDataAccessor::RestoreAlternativeL |
|
181 // --------------------------------------------------------- |
|
182 // |
|
183 inline TBool CImpsDataAccessor::RestoreAlternativeL( const MImpsKey* aKey, |
|
184 TInt& aEnum, |
|
185 TInt& aIndex, |
|
186 TImpsKeyType& aType ) const |
|
187 { |
|
188 return iDataAccessor.RestoreAlternativeL( aKey, aEnum, aIndex, aType ); |
|
189 } |
|
190 |
|
191 // --------------------------------------------------------- |
|
192 // CImpsDataAccessor::CheckBranchExistenceL |
|
193 // --------------------------------------------------------- |
|
194 // |
|
195 inline TBool CImpsDataAccessor::CheckBranchExistenceL( |
|
196 const MImpsKey* aKey ) const |
|
197 { |
|
198 return iDataAccessor.CheckBranchExistenceL( aKey ); |
|
199 } |
|
200 |
|
201 // --------------------------------------------------------- |
|
202 // CImpsDataAccessor::NbrOfTransactionsL |
|
203 // --------------------------------------------------------- |
|
204 // |
|
205 inline TInt CImpsDataAccessor::NbrOfTransactionsL( ) const |
|
206 { |
|
207 return iDataAccessor.NbrOfTransactionsL( ); |
|
208 } |
|
209 |
|
210 // --------------------------------------------------------- |
|
211 // CImpsDataAccessor::GetTransactionL |
|
212 // --------------------------------------------------------- |
|
213 // |
|
214 inline TBool CImpsDataAccessor::GetTransactionL( |
|
215 TInt aIndex, CImpsFields* aFields ) const |
|
216 { |
|
217 return iDataAccessor.GetTransactionL( aIndex, aFields ); |
|
218 } |
|
219 |
|
220 // --------------------------------------------------------- |
|
221 // CImpsDataAccessor::GetImpsFields |
|
222 // --------------------------------------------------------- |
|
223 // |
|
224 inline CImpsFields* CImpsDataAccessor::GetImpsFields() const |
|
225 { |
|
226 return iDataAccessor.GetImpsFields(); |
|
227 } |
|
228 |
|
229 #ifdef _DEBUG |
|
230 // --------------------------------------------------------- |
|
231 // CImpsDataAccessor::DumpToFileL |
|
232 // --------------------------------------------------------- |
|
233 // |
|
234 inline void CImpsDataAccessor::DumpToFileL(RFs& aFs, const TDesC& aFilename) |
|
235 { |
|
236 iDataAccessor.DumpToFileL(aFs, aFilename); |
|
237 } |
|
238 #endif |
|
239 // End of File |