79 const MVPbkFieldTypeList& aSortOrder, |
79 const MVPbkFieldTypeList& aSortOrder, |
80 CVPbkFieldTypeSelector* aFilter, |
80 CVPbkFieldTypeSelector* aFilter, |
81 TUint32 aFlags ) const; |
81 TUint32 aFlags ) const; |
82 |
82 |
83 /** |
83 /** |
|
84 * Creates a contact view for the stores specified in the |
|
85 * given array. |
|
86 * |
|
87 * @param aUriArray Array of URIs of stores to include |
|
88 * in the view. |
|
89 * @param aObserver Observer for the view. |
|
90 * @param aSortOrder Sort order for the view. |
|
91 * @param aFilter Field type selector used to filter the view. |
|
92 * @param aFlags TVPbkContactViewFlag flags for view modifying |
|
93 * @param aContactSelector Filter for contacts |
|
94 * @return The contact view. |
|
95 */ |
|
96 IMPORT_C MVPbkContactViewBase* CreateContactViewForStoresLC( |
|
97 const CVPbkContactStoreUriArray& aUriArray, |
|
98 MVPbkContactViewObserver& aObserver, |
|
99 const MVPbkFieldTypeList& aSortOrder, |
|
100 CVPbkFieldTypeSelector* aFilter, |
|
101 TUint32 aFlags, |
|
102 MVPbkContactSelector* aContactSelector ) const; |
|
103 |
|
104 /** |
84 * Creates a TOP-NON-TOP contact view for the stores specified in the |
105 * Creates a TOP-NON-TOP contact view for the stores specified in the |
85 * given array. |
106 * given array. |
86 * |
107 * |
87 * @param aUriArray Array of URIs of stores to include |
108 * @param aUriArray Array of URIs of stores to include |
88 * in the view. |
109 * in the view. |
96 const CVPbkContactStoreUriArray& aUriArray, |
117 const CVPbkContactStoreUriArray& aUriArray, |
97 MVPbkContactViewObserver& aObserver, |
118 MVPbkContactViewObserver& aObserver, |
98 const MVPbkFieldTypeList& aSortOrder, |
119 const MVPbkFieldTypeList& aSortOrder, |
99 CVPbkFieldTypeSelector* aFilter, |
120 CVPbkFieldTypeSelector* aFilter, |
100 TUint32 aFlags, |
121 TUint32 aFlags, |
101 MVPbkContactSelector& aContactSelector ) const; |
122 MVPbkContactSelector& aContactSelector ) const; |
102 |
123 |
103 /** |
124 /** |
104 * Creates a group view for the stores specified in the |
125 * Creates a group view for the stores specified in the |
105 * given array. |
126 * given array. |
106 * |
127 * |
107 * @param aUriArray Array of URIs of stores to include |
128 * @param aUriArray Array of URIs of stores to include |
108 * in the view. |
129 * in the view. |
109 * @param aObserver Observer for the view. |
130 * @param aObserver Observer for the view. |
110 * @param aSortOrder Sort order for the view. |
131 * @param aSortOrder Sort order for the view. |
111 * @param aFilter Field type selector used to filter the view. |
132 * @param aFilter Field type selector used to filter the view. |
112 * @param aFlags TVPbkContactViewFlag flags for view modifying |
133 * @param aFlags TVPbkContactViewFlag flags for view modifying |
113 * @return The contact view. |
134 * @return The contact view. |
114 */ |
135 */ |
115 IMPORT_C MVPbkContactViewBase* CreateGroupViewForStoresLC( |
136 IMPORT_C MVPbkContactViewBase* CreateGroupViewForStoresLC( |
116 const CVPbkContactStoreUriArray& aUriArray, |
137 const CVPbkContactStoreUriArray& aUriArray, |
117 MVPbkContactViewObserver& aObserver, |
138 MVPbkContactViewObserver& aObserver, |
118 const MVPbkFieldTypeList& aSortOrder, |
139 const MVPbkFieldTypeList& aSortOrder, |
119 CVPbkFieldTypeSelector* aFilter, |
140 CVPbkFieldTypeSelector* aFilter, |
120 TUint32 aFlags ) const; |
141 TUint32 aFlags ) const; |
121 |
142 |
122 private: // Implementation |
143 private: // Implementation |
123 CPbk2ContactViewBuilder( |
144 CPbk2ContactViewBuilder( |
124 CVPbkContactManager& aContactManager, |
145 CVPbkContactManager& aContactManager, |
125 CPbk2StorePropertyArray& aStoreProperties ); |
146 CPbk2StorePropertyArray& aStoreProperties ); |
126 CVPbkContactViewDefinition* BuildMainViewStructureLC( |
147 CVPbkContactViewDefinition* BuildMainViewStructureLC( |
131 const CVPbkContactStoreUriArray& aUriArray, |
152 const CVPbkContactStoreUriArray& aUriArray, |
132 MVPbkContactViewObserver& aObserver, |
153 MVPbkContactViewObserver& aObserver, |
133 const MVPbkFieldTypeList& aSortOrder, |
154 const MVPbkFieldTypeList& aSortOrder, |
134 CVPbkFieldTypeSelector* aFilter, |
155 CVPbkFieldTypeSelector* aFilter, |
135 TUint32 aFlags, |
156 TUint32 aFlags, |
136 TBool aTopContacts = EFalse ) const; |
157 TBool aTopContacts = EFalse, |
|
158 MVPbkContactSelector* aContactSelector = NULL) const; |
137 static TBool IncludeThisViewInTopContactMode( |
159 static TBool IncludeThisViewInTopContactMode( |
138 TPbk2ContactViewType aViewType ); |
160 TPbk2ContactViewType aViewType ); |
139 void SetTopRelatedFilteringL( |
161 void SetTopRelatedFilteringL( |
140 CVPbkContactViewDefinition& aNewSubViewDef, |
162 CVPbkContactViewDefinition& aNewSubViewDef, |
141 TPbk2ContactViewType aViewType, |
163 TPbk2ContactViewType aViewType, |