1 /* |
|
2 * Copyright (c) 2006, 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: s_enginecontmgtextfeatures.cpp |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include "s_storageitemmodel.h" |
|
20 #include "s_vimpststoragecontact.h" |
|
21 |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CVIMPSTStorageContact::NewL |
|
29 // Two-phased constructor. |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 MVIMPSTStorageItemModel* vimpststorageitemlist_stub::NewL() |
|
33 { |
|
34 MVIMPSTStorageItemModel* list = new(ELeave)vimpststorageitemlist_stub; |
|
35 return list; |
|
36 } |
|
37 |
|
38 |
|
39 |
|
40 TInt vimpststorageitemlist_stub::Count() const |
|
41 { |
|
42 return 1; |
|
43 } |
|
44 |
|
45 /** |
|
46 * Returns List item at given index. |
|
47 * @param aIndex |
|
48 * @return SItem List item |
|
49 |
|
50 */ |
|
51 MVIMPSTStorageItemModel::SItem vimpststorageitemlist_stub::Item( TInt aIndex ) const |
|
52 { |
|
53 MVIMPSTStorageItemModel::SItem item; |
|
54 item.iType = MVIMPSTStorageItemModel::EContactItem; |
|
55 item.iContactList = NULL; |
|
56 item.iContact = vimpststoragecontact_stub::NewL(); |
|
57 return item; |
|
58 } |
|
59 |
|
60 |
|
61 /** |
|
62 * Get index for contact. |
|
63 * @param aContact. Contact item to be found. |
|
64 * @return TInt Index of contact. If contact not found returns KErrNotFound |
|
65 */ |
|
66 TInt vimpststorageitemlist_stub::IndexOfContact( MVIMPSTStorageContact* aContact ) const |
|
67 { |
|
68 return 1; |
|
69 } |
|
70 |
|
71 /** |
|
72 * Get index for list |
|
73 * @param aList. Contact item to be found. |
|
74 * @param aIgnoreOwnItem. If ETrue own item is not taken into account |
|
75 * when resolving index. |
|
76 * @param aIgnoreEmptyLists If ETrue, empty lists are ignored. |
|
77 * @return TInt Index of list. If list not found returns KErrNotFound |
|
78 */ |
|
79 TInt vimpststorageitemlist_stub::IndexOfList( MVIMPSTStorageContactList* aList, |
|
80 TBool aIgnoreOwnItem , |
|
81 TBool aIgnoreEmptyLists ) const |
|
82 { |
|
83 return 1; |
|
84 } |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // CVIMPSTContactListModel::MdcaCount |
|
88 // (other items were commented in a header). |
|
89 // ----------------------------------------------------------------------------- |
|
90 // |
|
91 TInt vimpststorageitemlist_stub::MdcaCount() const |
|
92 { |
|
93 |
|
94 return Count(); |
|
95 } |
|
96 |
|
97 // ----------------------------------------------------------------------------- |
|
98 // CVIMPSTContactListModel::MdcaPoint |
|
99 // (other items were commented in a header). |
|
100 // ----------------------------------------------------------------------------- |
|
101 // |
|
102 TPtrC vimpststorageitemlist_stub::MdcaPoint( TInt /*aIndex */) const |
|
103 { |
|
104 |
|
105 // These will be filtered out |
|
106 return KNullDesC(); |
|
107 } |
|
108 |
|
109 // End of File |
|