1 |
|
2 /* |
|
3 * Copyright (c) 2006, 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
4 * All rights reserved. |
|
5 * This component and the accompanying materials are made available |
|
6 * under the terms of "Eclipse Public License v1.0" |
|
7 * which accompanies this distribution, and is available |
|
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 * |
|
10 * Initial Contributors: |
|
11 * Nokia Corporation - initial contribution. |
|
12 * |
|
13 * Contributors: |
|
14 * |
|
15 * Description: s_enginecontmgtextfeatures.cpp |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef S_STORAGEITEMMODEL_H_ |
|
20 #define S_STORAGEITEMMODEL_H_ |
|
21 |
|
22 |
|
23 #include "mvimpststorageitemmodel.h" |
|
24 class MVIMPSTStorageContact; |
|
25 class MVIMPSTStorageContactList; |
|
26 // INCLUDES |
|
27 #include <e32std.h> |
|
28 #include <e32base.h> |
|
29 |
|
30 |
|
31 |
|
32 class vimpststorageitemlist_stub : public MVIMPSTStorageItemModel |
|
33 { |
|
34 public: // New functions |
|
35 |
|
36 |
|
37 static MVIMPSTStorageItemModel* NewL(); |
|
38 /** |
|
39 * @return TInt Count of items |
|
40 */ |
|
41 TInt Count() const; |
|
42 |
|
43 /** |
|
44 * Returns List item at given index. |
|
45 * @param aIndex |
|
46 * @return SItem List item |
|
47 */ |
|
48 MVIMPSTStorageItemModel::SItem Item( TInt aIndex ) const; |
|
49 |
|
50 |
|
51 /** |
|
52 * Get index for contact. |
|
53 * @param aContact. Contact item to be found. |
|
54 * @return TInt Index of contact. If contact not found returns KErrNotFound |
|
55 */ |
|
56 TInt IndexOfContact( MVIMPSTStorageContact* aContact ) const; |
|
57 |
|
58 /** |
|
59 * Get index for list |
|
60 * @param aList. Contact item to be found. |
|
61 * @param aIgnoreOwnItem. If ETrue own item is not taken into account |
|
62 * when resolving index. |
|
63 * @param aIgnoreEmptyLists If ETrue, empty lists are ignored. |
|
64 * @return TInt Index of list. If list not found returns KErrNotFound |
|
65 */ |
|
66 TInt IndexOfList( MVIMPSTStorageContactList* aList, |
|
67 TBool aIgnoreOwnItem = EFalse, |
|
68 TBool aIgnoreEmptyLists = ETrue ) const; |
|
69 |
|
70 /** |
|
71 * @see MDesCArray |
|
72 */ |
|
73 TInt MdcaCount() const; |
|
74 |
|
75 /** |
|
76 * @see MDesCArray |
|
77 */ |
|
78 TPtrC MdcaPoint(TInt aIndex) const; |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 }; |
|
87 |
|
88 #endif /* S_STORAGEITEMMODEL_H_ */ |
|
89 |
|
90 // End of File |
|