|
1 /* |
|
2 * Copyright (c) 2005 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: Inline functions for AiwContactSelectionDataTypes. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 ///////////////////////////////////////////////////////////////////////////// |
|
23 // |
|
24 // TAiwContactSelectionDataBase inline methods |
|
25 // |
|
26 ///////////////////////////////////////////////////////////////////////////// |
|
27 inline TAiwContactSelectionDataBase::TAiwContactSelectionDataBase() : |
|
28 iSelectionDataType( EAiwContactSelectionDataTypeNotDefined ) |
|
29 { |
|
30 } |
|
31 |
|
32 inline TAiwContactSelectionDataType TAiwContactSelectionDataBase:: |
|
33 SelectionDataTypeFromBuffer( const TDesC8& aBuffer ) |
|
34 { |
|
35 TPckgBuf<TAiwContactSelectionDataBase> |
|
36 data(EAiwContactSelectionDataTypeNotDefined); |
|
37 data.Copy(aBuffer.Ptr(), |
|
38 sizeof(TAiwContactSelectionDataBase)); |
|
39 |
|
40 return data().SelectionDataType(); |
|
41 } |
|
42 |
|
43 inline TAiwContactSelectionDataBase::TAiwContactSelectionDataBase( |
|
44 TAiwContactSelectionDataType aSelectionDataType ) : |
|
45 iSelectionDataType( aSelectionDataType ) |
|
46 { |
|
47 } |
|
48 |
|
49 inline TAiwContactSelectionDataType |
|
50 TAiwContactSelectionDataBase::SelectionDataType() const |
|
51 { |
|
52 return iSelectionDataType; |
|
53 } |
|
54 |
|
55 ///////////////////////////////////////////////////////////////////////////// |
|
56 // |
|
57 // TAiwSingleEntrySelectionDataV1 inline methods |
|
58 // |
|
59 ///////////////////////////////////////////////////////////////////////////// |
|
60 inline TAiwSingleEntrySelectionDataV1::TAiwSingleEntrySelectionDataV1() : |
|
61 TAiwContactSelectionDataBase( KSelectionDataType ), |
|
62 iFlags( 0 ) |
|
63 { |
|
64 } |
|
65 |
|
66 inline TAiwSingleEntrySelectionDataV1& |
|
67 TAiwSingleEntrySelectionDataV1::SetFlags( TUint aFlags ) |
|
68 { |
|
69 iFlags = aFlags; |
|
70 return *this; |
|
71 } |
|
72 |
|
73 inline TUint TAiwSingleEntrySelectionDataV1::Flags() const |
|
74 { |
|
75 return iFlags; |
|
76 } |
|
77 |
|
78 ///////////////////////////////////////////////////////////////////////////// |
|
79 // |
|
80 // TAiwSingleEntrySelectionDataV2 inline methods |
|
81 // |
|
82 ///////////////////////////////////////////////////////////////////////////// |
|
83 inline TAiwSingleEntrySelectionDataV2::TAiwSingleEntrySelectionDataV2() : |
|
84 TAiwContactSelectionDataBase( KSelectionDataType ), |
|
85 iFlags( 0 ), iFetchFilter( NULL ) |
|
86 { |
|
87 } |
|
88 |
|
89 inline TAiwSingleEntrySelectionDataV2& |
|
90 TAiwSingleEntrySelectionDataV2::SetFlags( TUint aFlags ) |
|
91 { |
|
92 iFlags = aFlags; |
|
93 return *this; |
|
94 } |
|
95 |
|
96 inline TAiwSingleEntrySelectionDataV2& |
|
97 TAiwSingleEntrySelectionDataV2::SetFetchFilter |
|
98 ( CVPbkFieldTypeSelector* aFilter ) |
|
99 { |
|
100 iFetchFilter = aFilter; |
|
101 return *this; |
|
102 } |
|
103 |
|
104 inline TUint TAiwSingleEntrySelectionDataV2::Flags() const |
|
105 { |
|
106 return iFlags; |
|
107 } |
|
108 |
|
109 inline CVPbkFieldTypeSelector* |
|
110 TAiwSingleEntrySelectionDataV2::FetchFilter() const |
|
111 { |
|
112 return iFetchFilter; |
|
113 } |
|
114 |
|
115 ///////////////////////////////////////////////////////////////////////////// |
|
116 // |
|
117 // TAiwMultipleEntrySelectionDataV1 inline methods |
|
118 // |
|
119 ///////////////////////////////////////////////////////////////////////////// |
|
120 inline TAiwMultipleEntrySelectionDataV1::TAiwMultipleEntrySelectionDataV1() : |
|
121 TAiwContactSelectionDataBase( KSelectionDataType ), |
|
122 iFlags( 0 ) |
|
123 { |
|
124 } |
|
125 |
|
126 inline TAiwMultipleEntrySelectionDataV1& |
|
127 TAiwMultipleEntrySelectionDataV1::SetFlags( TUint aFlags ) |
|
128 { |
|
129 iFlags = aFlags; |
|
130 return *this; |
|
131 } |
|
132 |
|
133 inline TUint TAiwMultipleEntrySelectionDataV1::Flags() const |
|
134 { |
|
135 return iFlags; |
|
136 } |
|
137 |
|
138 ///////////////////////////////////////////////////////////////////////////// |
|
139 // |
|
140 // TAiwMultipleEntrySelectionDataV2 inline methods |
|
141 // |
|
142 ///////////////////////////////////////////////////////////////////////////// |
|
143 inline TAiwMultipleEntrySelectionDataV2::TAiwMultipleEntrySelectionDataV2() : |
|
144 TAiwContactSelectionDataBase( KSelectionDataType ), |
|
145 iFlags( 0 ), iFetchFilter( NULL ) |
|
146 { |
|
147 } |
|
148 |
|
149 inline TAiwMultipleEntrySelectionDataV2& |
|
150 TAiwMultipleEntrySelectionDataV2::SetFlags( TUint aFlags ) |
|
151 { |
|
152 iFlags = aFlags; |
|
153 return *this; |
|
154 } |
|
155 |
|
156 inline TAiwMultipleEntrySelectionDataV2& |
|
157 TAiwMultipleEntrySelectionDataV2::SetFetchFilter |
|
158 ( CVPbkFieldTypeSelector* aFilter ) |
|
159 { |
|
160 iFetchFilter = aFilter; |
|
161 return *this; |
|
162 } |
|
163 |
|
164 inline TUint TAiwMultipleEntrySelectionDataV2::Flags() const |
|
165 { |
|
166 return iFlags; |
|
167 } |
|
168 |
|
169 inline CVPbkFieldTypeSelector* |
|
170 TAiwMultipleEntrySelectionDataV2::FetchFilter() const |
|
171 { |
|
172 return iFetchFilter; |
|
173 } |
|
174 |
|
175 ///////////////////////////////////////////////////////////////////////////// |
|
176 // |
|
177 // TAiwSingleItemSelectionDataV1 inline methods |
|
178 // |
|
179 ///////////////////////////////////////////////////////////////////////////// |
|
180 inline TAiwSingleItemSelectionDataV1::TAiwSingleItemSelectionDataV1() : |
|
181 TAiwContactSelectionDataBase( KSelectionDataType ), |
|
182 iFlags( 0 ), iAddressSelectType( EAiwAllItemsSelect ), |
|
183 iCommAddressSelectType( EAiwCommEmpty ), |
|
184 iDefaultPriorities( NULL ) |
|
185 { |
|
186 } |
|
187 |
|
188 inline TAiwSingleItemSelectionDataV1& |
|
189 TAiwSingleItemSelectionDataV1::SetFlags( TUint aFlags ) |
|
190 { |
|
191 iFlags = aFlags; |
|
192 return *this; |
|
193 } |
|
194 |
|
195 inline TAiwSingleItemSelectionDataV1& |
|
196 TAiwSingleItemSelectionDataV1::SetAddressSelectType( |
|
197 TAiwAddressSelectType aAddressSelectType ) |
|
198 { |
|
199 iAddressSelectType = aAddressSelectType; |
|
200 return *this; |
|
201 } |
|
202 |
|
203 inline TAiwSingleItemSelectionDataV1& |
|
204 TAiwSingleItemSelectionDataV1::SetCommAddressSelectType( |
|
205 TAiwCommAddressSelectType aCommAddressSelectType ) |
|
206 { |
|
207 iCommAddressSelectType = aCommAddressSelectType; |
|
208 return *this; |
|
209 } |
|
210 |
|
211 inline TAiwSingleItemSelectionDataV1& |
|
212 TAiwSingleItemSelectionDataV1::SetDefaultPriorities( |
|
213 RVPbkContactFieldDefaultPriorities& aDefaultPriorities ) |
|
214 { |
|
215 iDefaultPriorities = &aDefaultPriorities; |
|
216 return *this; |
|
217 } |
|
218 |
|
219 inline TUint TAiwSingleItemSelectionDataV1::Flags() const |
|
220 { |
|
221 return iFlags; |
|
222 } |
|
223 |
|
224 inline TAiwAddressSelectType |
|
225 TAiwSingleItemSelectionDataV1::AddressSelectType() const |
|
226 { |
|
227 return iAddressSelectType; |
|
228 } |
|
229 |
|
230 inline TAiwCommAddressSelectType |
|
231 TAiwSingleItemSelectionDataV1::CommAddressSelectType() const |
|
232 { |
|
233 return iCommAddressSelectType; |
|
234 } |
|
235 |
|
236 inline RVPbkContactFieldDefaultPriorities* |
|
237 TAiwSingleItemSelectionDataV1::DefaultPriorities() const |
|
238 { |
|
239 return iDefaultPriorities; |
|
240 } |
|
241 |
|
242 ///////////////////////////////////////////////////////////////////////////// |
|
243 // |
|
244 // TAiwSingleItemSelectionDataV2 inline methods |
|
245 // |
|
246 ///////////////////////////////////////////////////////////////////////////// |
|
247 inline TAiwSingleItemSelectionDataV2::TAiwSingleItemSelectionDataV2() : |
|
248 TAiwContactSelectionDataBase( KSelectionDataType ), |
|
249 iFlags( 0 ), iAddressSelectResourceId( KErrNotFound), |
|
250 iDefaultPriorities( NULL ) |
|
251 { |
|
252 } |
|
253 |
|
254 inline TAiwSingleItemSelectionDataV2& |
|
255 TAiwSingleItemSelectionDataV2::SetFlags( TUint aFlags ) |
|
256 { |
|
257 iFlags = aFlags; |
|
258 return *this; |
|
259 } |
|
260 |
|
261 inline TAiwSingleItemSelectionDataV2& |
|
262 TAiwSingleItemSelectionDataV2::SetAddressSelectResourceId( |
|
263 TInt aAddressSelectResourceId ) |
|
264 { |
|
265 iAddressSelectResourceId = aAddressSelectResourceId; |
|
266 return *this; |
|
267 } |
|
268 |
|
269 inline TAiwSingleItemSelectionDataV2& |
|
270 TAiwSingleItemSelectionDataV2::SetDefaultPriorities( |
|
271 RVPbkContactFieldDefaultPriorities& aDefaultPriorities ) |
|
272 { |
|
273 iDefaultPriorities = &aDefaultPriorities; |
|
274 return *this; |
|
275 } |
|
276 |
|
277 inline TUint TAiwSingleItemSelectionDataV2::Flags() const |
|
278 { |
|
279 return iFlags; |
|
280 } |
|
281 |
|
282 inline TInt TAiwSingleItemSelectionDataV2::AddressSelectResourceId() const |
|
283 { |
|
284 return iAddressSelectResourceId; |
|
285 } |
|
286 |
|
287 inline RVPbkContactFieldDefaultPriorities* |
|
288 TAiwSingleItemSelectionDataV2::DefaultPriorities() const |
|
289 { |
|
290 return iDefaultPriorities; |
|
291 } |
|
292 |
|
293 ///////////////////////////////////////////////////////////////////////////// |
|
294 // |
|
295 // TAiwSingleItemSelectionDataV3 inline methods |
|
296 // |
|
297 ///////////////////////////////////////////////////////////////////////////// |
|
298 inline TAiwSingleItemSelectionDataV3::TAiwSingleItemSelectionDataV3() : |
|
299 TAiwContactSelectionDataBase( KSelectionDataType ), |
|
300 iFlags( 0 ), iAddressSelectType( EAiwAllItemsSelect ), |
|
301 iCommAddressSelectType( EAiwCommEmpty ), |
|
302 iDefaultPriorities( NULL ), iFetchFilter( NULL ) |
|
303 { |
|
304 } |
|
305 |
|
306 inline TAiwSingleItemSelectionDataV3& |
|
307 TAiwSingleItemSelectionDataV3::SetFlags( TUint aFlags ) |
|
308 { |
|
309 iFlags = aFlags; |
|
310 return *this; |
|
311 } |
|
312 |
|
313 inline TAiwSingleItemSelectionDataV3& |
|
314 TAiwSingleItemSelectionDataV3::SetAddressSelectType( |
|
315 TAiwAddressSelectType aAddressSelectType ) |
|
316 { |
|
317 iAddressSelectType = aAddressSelectType; |
|
318 return *this; |
|
319 } |
|
320 |
|
321 inline TAiwSingleItemSelectionDataV3& |
|
322 TAiwSingleItemSelectionDataV3::SetCommAddressSelectType( |
|
323 TAiwCommAddressSelectType aCommAddressSelectType ) |
|
324 { |
|
325 iCommAddressSelectType = aCommAddressSelectType; |
|
326 return *this; |
|
327 } |
|
328 |
|
329 inline TAiwSingleItemSelectionDataV3& |
|
330 TAiwSingleItemSelectionDataV3::SetDefaultPriorities( |
|
331 RVPbkContactFieldDefaultPriorities& aDefaultPriorities ) |
|
332 { |
|
333 iDefaultPriorities = &aDefaultPriorities; |
|
334 return *this; |
|
335 } |
|
336 |
|
337 inline TAiwSingleItemSelectionDataV3& |
|
338 TAiwSingleItemSelectionDataV3::SetFetchFilter |
|
339 ( CVPbkFieldTypeSelector* aFilter ) |
|
340 { |
|
341 iFetchFilter = aFilter; |
|
342 return *this; |
|
343 } |
|
344 |
|
345 inline TUint TAiwSingleItemSelectionDataV3::Flags() const |
|
346 { |
|
347 return iFlags; |
|
348 } |
|
349 |
|
350 inline TAiwAddressSelectType |
|
351 TAiwSingleItemSelectionDataV3::AddressSelectType() const |
|
352 { |
|
353 return iAddressSelectType; |
|
354 } |
|
355 |
|
356 inline TAiwCommAddressSelectType |
|
357 TAiwSingleItemSelectionDataV3::CommAddressSelectType() const |
|
358 { |
|
359 return iCommAddressSelectType; |
|
360 } |
|
361 |
|
362 inline RVPbkContactFieldDefaultPriorities* |
|
363 TAiwSingleItemSelectionDataV3::DefaultPriorities() const |
|
364 { |
|
365 return iDefaultPriorities; |
|
366 } |
|
367 |
|
368 inline CVPbkFieldTypeSelector* |
|
369 TAiwSingleItemSelectionDataV3::FetchFilter() const |
|
370 { |
|
371 return iFetchFilter; |
|
372 } |
|
373 |
|
374 ///////////////////////////////////////////////////////////////////////////// |
|
375 // |
|
376 // TAiwMultipleItemSelectionDataV1 inline methods |
|
377 // |
|
378 ///////////////////////////////////////////////////////////////////////////// |
|
379 inline TAiwMultipleItemSelectionDataV1::TAiwMultipleItemSelectionDataV1() : |
|
380 TAiwContactSelectionDataBase( KSelectionDataType ), |
|
381 iFlags( 0 ), iAddressSelectType( EAiwAllItemsSelect ), |
|
382 iDefaultPriorities( NULL ), iFetchFilter( NULL ) |
|
383 { |
|
384 } |
|
385 |
|
386 inline TAiwMultipleItemSelectionDataV1& |
|
387 TAiwMultipleItemSelectionDataV1::SetFlags( TUint aFlags ) |
|
388 { |
|
389 iFlags = aFlags; |
|
390 return *this; |
|
391 } |
|
392 |
|
393 inline TAiwMultipleItemSelectionDataV1& |
|
394 TAiwMultipleItemSelectionDataV1::SetAddressSelectType( |
|
395 TAiwAddressSelectType aAddressSelectType ) |
|
396 { |
|
397 iAddressSelectType = aAddressSelectType; |
|
398 return *this; |
|
399 } |
|
400 |
|
401 inline TAiwMultipleItemSelectionDataV1& |
|
402 TAiwMultipleItemSelectionDataV1::SetDefaultPriorities( |
|
403 RVPbkContactFieldDefaultPriorities& aDefaultPriorities ) |
|
404 { |
|
405 iDefaultPriorities = &aDefaultPriorities; |
|
406 return *this; |
|
407 } |
|
408 |
|
409 inline TAiwMultipleItemSelectionDataV1& |
|
410 TAiwMultipleItemSelectionDataV1::SetFetchFilter |
|
411 ( CVPbkFieldTypeSelector* aFilter ) |
|
412 { |
|
413 iFetchFilter = aFilter; |
|
414 return *this; |
|
415 } |
|
416 |
|
417 inline TUint TAiwMultipleItemSelectionDataV1::Flags() const |
|
418 { |
|
419 return iFlags; |
|
420 } |
|
421 |
|
422 inline TAiwAddressSelectType |
|
423 TAiwMultipleItemSelectionDataV1::AddressSelectType() const |
|
424 { |
|
425 return iAddressSelectType; |
|
426 } |
|
427 |
|
428 inline RVPbkContactFieldDefaultPriorities* |
|
429 TAiwMultipleItemSelectionDataV1::DefaultPriorities() const |
|
430 { |
|
431 return iDefaultPriorities; |
|
432 } |
|
433 |
|
434 inline CVPbkFieldTypeSelector* |
|
435 TAiwMultipleItemSelectionDataV1::FetchFilter() const |
|
436 { |
|
437 return iFetchFilter; |
|
438 } |
|
439 |
|
440 // End of File |