117 * @param aContactManager Contact manager which already has its stores opened. |
117 * @param aContactManager Contact manager which already has its stores opened. |
118 * @param aObserver Receives notification when operation is complete |
118 * @param aObserver Receives notification when operation is complete |
119 * @param aErrorObserver Error observer is notified in case of an error |
119 * @param aErrorObserver Error observer is notified in case of an error |
120 * @param aOperation valid values EAddToTop, |
120 * @param aOperation valid values EAddToTop, |
121 * ERemoveFromTop, |
121 * ERemoveFromTop, |
122 * EReorderTop |
122 * EReorderTop |
123 * |
123 * @param aTopView Top contact view which already has been constructed. |
|
124 * If a NULL value is passed, own top contact view is |
|
125 * constructed. |
|
126 * |
124 * @return Contact operation handle |
127 * @return Contact operation handle |
125 */ |
128 */ |
126 static MVPbkContactOperationBase* NewTopOperationL( |
129 static MVPbkContactOperationBase* NewTopOperationL( |
127 CVPbkContactManager& aContactManager, |
130 CVPbkContactManager& aContactManager, |
128 const MVPbkContactLinkArray& aContactLinks, |
131 const MVPbkContactLinkArray& aContactLinks, |
129 MVPbkOperationObserver& aObserver, |
132 MVPbkOperationObserver& aObserver, |
130 MVPbkOperationErrorObserver& aErrorObserver, |
133 MVPbkOperationErrorObserver& aErrorObserver, |
131 TTopOperation aOperation ); |
134 TTopOperation aOperation, |
|
135 MVPbkContactViewBase* aViewRef = NULL |
|
136 ); |
|
137 |
132 |
138 |
133 /** |
139 /** |
134 * Destructor. Cancels any ongoing requests. |
140 * Destructor. Cancels any ongoing requests. |
135 */ |
141 */ |
136 ~CVPbkTopContactOperation(); |
142 ~CVPbkTopContactOperation(); |
271 const TTopOperation iCurrentOperation; |
277 const TTopOperation iCurrentOperation; |
272 TTopManagementState iNextState; |
278 TTopManagementState iNextState; |
273 |
279 |
274 CVPbkContactManager& iContactManager; // not owned |
280 CVPbkContactManager& iContactManager; // not owned |
275 MVPbkContactViewBase* iView; // owned |
281 MVPbkContactViewBase* iView; // owned |
|
282 // A handle to externally provided top contact view |
|
283 MVPbkContactViewBase* iViewRef; // Not owned. |
|
284 |
276 MVPbkContactStore* iContactStore; // not owned |
285 MVPbkContactStore* iContactStore; // not owned |
277 CVPbkContactLinkArray* iInputLinks; // owned |
286 CVPbkContactLinkArray* iInputLinks; // owned |
278 RPointerArray<MVPbkStoreContact> iContacts; // owns the contacts |
287 RPointerArray<MVPbkStoreContact> iContacts; // owns the contacts |
279 MVPbkContactOperationBase* iContactOperation; // own |
288 MVPbkContactOperationBase* iContactOperation; // own |
280 CVPbkContactEasyManager* iContactEasyManager; //own |
289 CVPbkContactEasyManager* iContactEasyManager; //own |