|
1 /* |
|
2 * Copyright (c) 2008 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: Contact list container implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "s_vimpststoragecontactlist.h" |
|
21 |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // MyVIMPSTStorageContactListStub::ListId |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 const TDesC& MyVIMPSTStorageContactListStub::ListId() const |
|
28 { |
|
29 return KNullDesC; |
|
30 } |
|
31 |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // MyVIMPSTStorageContactListStub::DisplayName |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 TPtrC MyVIMPSTStorageContactListStub::DisplayName() const |
|
38 { |
|
39 const TDesC& des ( KNullDesC ) ; |
|
40 return des; |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // MyVIMPSTStorageContactListStub::SetDisplayName |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 void MyVIMPSTStorageContactListStub::SetDisplayNameL( const TDesC& /*aDisplayName*/ ) |
|
48 { |
|
49 |
|
50 } |
|
51 |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // MyVIMPSTStorageContactListStub::Sort |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 void MyVIMPSTStorageContactListStub::Sort() |
|
58 { |
|
59 |
|
60 } |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // MyVIMPSTStorageContactListStub::ResortContact |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 void MyVIMPSTStorageContactListStub::ResortContact( MVIMPSTStorageContact* /*aContact*/ ) |
|
67 { |
|
68 } |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // MyVIMPSTStorageContactListStub::ContactFindById |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 void MyVIMPSTStorageContactListStub::ResortUnKnownContact( MVIMPSTStorageContact* /*aContact*/ ) |
|
75 { |
|
76 } |
|
77 |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // MyVIMPSTStorageContactListStub::FindIndexOfContact |
|
81 // From MVIMPSTContactList |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 TInt MyVIMPSTStorageContactListStub::FindIndexOfContact( const MVIMPSTStorageContact* /*aContact*/, |
|
85 TVIMPSTEnums::TFilterType /*aFilter*/ ) const |
|
86 { |
|
87 return KErrNotFound; |
|
88 } |
|
89 |
|
90 // ----------------------------------------------------------------------------- |
|
91 // MyVIMPSTStorageContactListStub::Count |
|
92 // From MVIMPSTStorageContactList |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 TInt MyVIMPSTStorageContactListStub::Count() const |
|
96 { |
|
97 return 0; |
|
98 } |
|
99 |
|
100 |
|
101 // ----------------------------------------------------------------------------- |
|
102 // MyVIMPSTStorageContactListStub::operator[] |
|
103 // From MVIMPSTStorageContactList |
|
104 // ----------------------------------------------------------------------------- |
|
105 // |
|
106 MVIMPSTStorageContact& MyVIMPSTStorageContactListStub::operator[]( TInt /*aIndex */) const |
|
107 { |
|
108 MVIMPSTStorageContact* contact = NULL; |
|
109 return *contact; |
|
110 } |
|
111 |
|
112 |
|
113 // ----------------------------------------------------------------------------- |
|
114 // MyVIMPSTStorageContactListStub::FilteredContact |
|
115 // From MVIMPSTContactList |
|
116 // ----------------------------------------------------------------------------- |
|
117 // |
|
118 MVIMPSTStorageContact& MyVIMPSTStorageContactListStub::FilteredContact( |
|
119 TInt /*aIndex*/, TVIMPSTEnums::TFilterType /*aFilter*/ ) const |
|
120 { |
|
121 MVIMPSTStorageContact* contact = NULL; |
|
122 return *contact; |
|
123 } |
|
124 |
|
125 // ----------------------------------------------------------------------------- |
|
126 // MyVIMPSTStorageContactListStub::FilteredCount |
|
127 // From MVIMPSTContactList |
|
128 // ----------------------------------------------------------------------------- |
|
129 // |
|
130 TInt MyVIMPSTStorageContactListStub::FilteredCount( |
|
131 TVIMPSTEnums::TFilterType /*aFilter*/ ) const |
|
132 { |
|
133 return 0; |
|
134 } |
|
135 |
|
136 // ----------------------------------------------------------------------------- |
|
137 // MyVIMPSTStorageContactListStub::FilterAllowsContact |
|
138 // ----------------------------------------------------------------------------- |
|
139 // |
|
140 TBool MyVIMPSTStorageContactListStub::FilterAllowsContact( const MVIMPSTStorageContact* /*aContact*/, |
|
141 TVIMPSTEnums::TFilterType /*aFilter*/ ) const |
|
142 { |
|
143 TBool showContact( EFalse ); |
|
144 |
|
145 return showContact; |
|
146 } |
|
147 // End of File |