|
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: Interface for UID information exchange. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <SmlDataProvider.h> |
|
20 #include <SyncMLDataFilter.h> |
|
21 |
|
22 // ------------------------------------------------------------------------------------------------ |
|
23 // MSmlDataItemUidSet::ItemCount |
|
24 // Returns the number of items in the set. |
|
25 // ------------------------------------------------------------------------------------------------ |
|
26 EXPORT_C TInt MSmlDataItemUidSet::ItemCount() const |
|
27 { |
|
28 return DoItemCount(); |
|
29 } |
|
30 |
|
31 // ------------------------------------------------------------------------------------------------ |
|
32 // MSmlDataItemUidSet::ItemIndex |
|
33 // Returns the index of the specified item UID in the set, or -1 if the item UID is not present. |
|
34 // ------------------------------------------------------------------------------------------------ |
|
35 EXPORT_C TInt MSmlDataItemUidSet::ItemIndex( TSmlDbItemUid aItemId ) const |
|
36 { |
|
37 return DoItemIndex( aItemId ); |
|
38 } |
|
39 |
|
40 // ------------------------------------------------------------------------------------------------ |
|
41 // MSmlDataItemUidSet::ItemAt |
|
42 // Retuns the item UID at the specified index in the set. |
|
43 // ------------------------------------------------------------------------------------------------ |
|
44 EXPORT_C TSmlDbItemUid MSmlDataItemUidSet::ItemAt( TInt aIndex ) const |
|
45 { |
|
46 return DoItemAt( aIndex ); |
|
47 } |
|
48 |
|
49 // ------------------------------------------------------------------------------------------------ |
|
50 // MSmlDataItemUidSet::ExternalizeL |
|
51 // Externalizes UIDs from set. |
|
52 // ------------------------------------------------------------------------------------------------ |
|
53 EXPORT_C void MSmlDataItemUidSet::ExternalizeL( RWriteStream& aStream ) const |
|
54 { |
|
55 return DoExternalizeL( aStream ); |
|
56 } |
|
57 |
|
58 // End of File |