equal
deleted
inserted
replaced
22 #include <MVPbkContactStoreObserver.h> |
22 #include <MVPbkContactStoreObserver.h> |
23 #include <MVPbkSingleContactLinkOperationObserver.h> |
23 #include <MVPbkSingleContactLinkOperationObserver.h> |
24 #include <MVPbkContactObserver.h> |
24 #include <MVPbkContactObserver.h> |
25 #include <MVPbkSingleContactOperationObserver.h> |
25 #include <MVPbkSingleContactOperationObserver.h> |
26 #include <MPbk2EditedContactObserver.h> |
26 #include <MPbk2EditedContactObserver.h> |
|
27 #include <MPbk2ExitCallback.h> |
27 |
28 |
28 class CVPbkContactManager; |
29 class CVPbkContactManager; |
29 class MVPbkContactLink; |
30 class MVPbkContactLink; |
30 class MVPbkStoreContact; |
31 class MVPbkStoreContact; |
31 class CPbk2FieldPropertyArray; |
32 class CPbk2FieldPropertyArray; |
35 class CPbk2SortOrderManager; |
36 class CPbk2SortOrderManager; |
36 class RFs; |
37 class RFs; |
37 class CCreateMyCard; |
38 class CCreateMyCard; |
38 class CPbk2ApplicationServices; |
39 class CPbk2ApplicationServices; |
39 class CCCAppMyCardPlugin; |
40 class CCCAppMyCardPlugin; |
|
41 class MPbk2DialogEliminator; |
40 |
42 |
41 /** |
43 /** |
42 * MyCard Observer class |
44 * MyCard Observer class |
43 */ |
45 */ |
44 class MMyCardObserver |
46 class MMyCardObserver |
73 public CBase, |
75 public CBase, |
74 public MVPbkContactStoreObserver, |
76 public MVPbkContactStoreObserver, |
75 public MVPbkSingleContactLinkOperationObserver, |
77 public MVPbkSingleContactLinkOperationObserver, |
76 public MVPbkSingleContactOperationObserver, |
78 public MVPbkSingleContactOperationObserver, |
77 public MVPbkContactObserver, |
79 public MVPbkContactObserver, |
78 public MPbk2EditedContactObserver |
80 public MPbk2EditedContactObserver, |
|
81 public MPbk2ExitCallback |
79 { |
82 { |
80 |
83 |
81 public: |
84 public: |
82 |
85 |
83 /** |
86 /** |
183 MVPbkStoreContact* aEditedContact ); |
186 MVPbkStoreContact* aEditedContact ); |
184 void ContactEditingDeletedContact( |
187 void ContactEditingDeletedContact( |
185 MVPbkStoreContact* aEditedContact ); |
188 MVPbkStoreContact* aEditedContact ); |
186 void ContactEditingAborted(); |
189 void ContactEditingAborted(); |
187 |
190 |
|
191 private: // From MPbk2ExitCallback |
|
192 TBool OkToExitL( TInt aCommandId ); |
|
193 |
188 private: // constructors |
194 private: // constructors |
189 inline CCCAppMyCard( CCCAppMyCardPlugin& aPlugin ); |
195 inline CCCAppMyCard( CCCAppMyCardPlugin& aPlugin ); |
190 inline void ConstructL(RFs* aFs); |
196 inline void ConstructL(RFs* aFs); |
191 |
197 |
192 private: // new functions |
198 private: // new functions |
216 |
222 |
217 /* |
223 /* |
218 * Async callback function for closing CCa. Calls DoCloseCCa |
224 * Async callback function for closing CCa. Calls DoCloseCCa |
219 */ |
225 */ |
220 static TInt CloseCcaL( TAny* aPtr ); |
226 static TInt CloseCcaL( TAny* aPtr ); |
|
227 |
|
228 /** |
|
229 * Async callback function for closing editor dialog. |
|
230 */ |
|
231 static TInt ExitDlgL( TAny* aPtr ); |
221 |
232 |
222 /* |
233 /* |
223 * Closes the CCA |
234 * Closes the CCA |
224 */ |
235 */ |
225 void DoCloseCCaL(); |
236 void DoCloseCCaL(); |
249 CPbk2ApplicationServices* iAppServices; |
260 CPbk2ApplicationServices* iAppServices; |
250 /// Own: Asynchronous callback for close |
261 /// Own: Asynchronous callback for close |
251 CAsyncCallBack* iCloseCallBack; |
262 CAsyncCallBack* iCloseCallBack; |
252 /// Own: Asynchronous callback for create |
263 /// Own: Asynchronous callback for create |
253 CAsyncCallBack* iCreateCallBack; |
264 CAsyncCallBack* iCreateCallBack; |
|
265 /// Own: Asynchronous callback for close dialog |
|
266 CAsyncCallBack* iDlgCloseCallBack; |
254 /// Ref: plugin |
267 /// Ref: plugin |
255 CCCAppMyCardPlugin& iPlugin; |
268 CCCAppMyCardPlugin& iPlugin; |
256 /// Focused contact field index for the editor |
269 /// Focused contact field index for the editor |
257 TInt iFocusedFieldIndex; |
270 TInt iFocusedFieldIndex; |
|
271 /// Now own. Editor dialog eliminator |
|
272 MPbk2DialogEliminator* iEditorEliminator; |
258 }; |
273 }; |
259 |
274 |
260 #endif // CCAPPMYCARD_H |
275 #endif // CCAPPMYCARD_H |
261 |
276 |
262 // End of File |
277 // End of File |