33 class CCustomFilteredContactView; |
33 class CCustomFilteredContactView; |
34 |
34 |
35 |
35 |
36 /** |
36 /** |
37 * Virtual phonebook filtered contact view. This class filters contacts |
37 * Virtual phonebook filtered contact view. This class filters contacts |
38 * based on field types. |
38 * based on field types. |
39 */ |
39 */ |
40 NONSHARABLE_CLASS( CFilteredContactView ): |
40 NONSHARABLE_CLASS( CFilteredContactView ): |
41 public CViewBase, |
41 public CViewBase, |
42 public MVPbkContactViewObserver |
42 public MVPbkContactViewObserver, |
|
43 public MVPbkContactViewObserverExtension |
43 { |
44 { |
44 public: // Constructor and destructor |
45 public: // Constructor and destructor |
45 |
46 |
46 /** |
47 /** |
47 * Creates a new instance of this class. |
48 * Creates a new instance of this class. |
54 * @return A new instance of this class. |
55 * @return A new instance of this class. |
55 */ |
56 */ |
56 static CFilteredContactView* NewLC( |
57 static CFilteredContactView* NewLC( |
57 const CVPbkContactViewDefinition& aViewDefinition, |
58 const CVPbkContactViewDefinition& aViewDefinition, |
58 MVPbkContactViewObserver& aObserver, |
59 MVPbkContactViewObserver& aObserver, |
59 CContactStore& aParentStore, |
60 CContactStore& aParentStore, |
60 const MVPbkFieldTypeList& aSortOrder, |
61 const MVPbkFieldTypeList& aSortOrder, |
61 RFs& aFs ); |
62 RFs& aFs ); |
62 /** |
63 /** |
63 * Destructor. |
64 * Destructor. |
64 */ |
65 */ |
78 void ContactViewReady( |
79 void ContactViewReady( |
79 MVPbkContactViewBase& aView ); |
80 MVPbkContactViewBase& aView ); |
80 void ContactViewUnavailable( |
81 void ContactViewUnavailable( |
81 MVPbkContactViewBase& aView ); |
82 MVPbkContactViewBase& aView ); |
82 void ContactAddedToView( |
83 void ContactAddedToView( |
83 MVPbkContactViewBase& aView, |
84 MVPbkContactViewBase& aView, |
84 TInt aIndex, |
85 TInt aIndex, |
85 const MVPbkContactLink& aContactLink ); |
86 const MVPbkContactLink& aContactLink ); |
86 void ContactRemovedFromView( |
87 void ContactRemovedFromView( |
87 MVPbkContactViewBase& aView, |
88 MVPbkContactViewBase& aView, |
88 TInt aIndex, |
89 TInt aIndex, |
89 const MVPbkContactLink& aContactLink ); |
90 const MVPbkContactLink& aContactLink ); |
90 void ContactViewError( |
91 void ContactViewError( |
91 MVPbkContactViewBase& aView, |
92 MVPbkContactViewBase& aView, |
92 TInt aError, |
93 TInt aError, |
93 TBool aErrorNotified ); |
94 TBool aErrorNotified ); |
|
95 TAny* ContactViewObserverExtension( TUid aExtensionUid ); |
|
96 |
|
97 private: // From MVPbkContactViewObserverExtension |
|
98 void FilteredContactRemovedFromView( |
|
99 MVPbkContactViewBase& aView ); |
94 |
100 |
95 private: // Implementation |
101 private: // Implementation |
96 CFilteredContactView( |
102 CFilteredContactView( |
97 CContactStore& aParentStore, |
103 CContactStore& aParentStore, |
98 RFs& aFs ); |
104 RFs& aFs ); |