diff -r e686773b3f54 -r 04ab22b956c2 phonebookui/Phonebook2/ccapplication/ccamycardplugin/inc/ccappmycard.h --- a/phonebookui/Phonebook2/ccapplication/ccamycardplugin/inc/ccappmycard.h Tue Feb 02 10:12:17 2010 +0200 +++ b/phonebookui/Phonebook2/ccapplication/ccamycardplugin/inc/ccappmycard.h Fri Feb 19 22:40:27 2010 +0200 @@ -24,6 +24,7 @@ #include #include #include +#include class CVPbkContactManager; class MVPbkContactLink; @@ -37,6 +38,7 @@ class CCreateMyCard; class CPbk2ApplicationServices; class CCCAppMyCardPlugin; +class MPbk2DialogEliminator; /** * MyCard Observer class @@ -75,7 +77,8 @@ public MVPbkSingleContactLinkOperationObserver, public MVPbkSingleContactOperationObserver, public MVPbkContactObserver, - public MPbk2EditedContactObserver + public MPbk2EditedContactObserver, + public MPbk2ExitCallback { public: @@ -185,6 +188,9 @@ MVPbkStoreContact* aEditedContact ); void ContactEditingAborted(); +private: // From MPbk2ExitCallback + TBool OkToExitL( TInt aCommandId ); + private: // constructors inline CCCAppMyCard( CCCAppMyCardPlugin& aPlugin ); inline void ConstructL(RFs* aFs); @@ -219,6 +225,11 @@ */ static TInt CloseCcaL( TAny* aPtr ); + /** + * Async callback function for closing editor dialog. + */ + static TInt ExitDlgL( TAny* aPtr ); + /* * Closes the CCA */ @@ -251,10 +262,14 @@ CAsyncCallBack* iCloseCallBack; /// Own: Asynchronous callback for create CAsyncCallBack* iCreateCallBack; + /// Own: Asynchronous callback for close dialog + CAsyncCallBack* iDlgCloseCallBack; /// Ref: plugin CCCAppMyCardPlugin& iPlugin; /// Focused contact field index for the editor TInt iFocusedFieldIndex; + /// Now own. Editor dialog eliminator + MPbk2DialogEliminator* iEditorEliminator; }; #endif // CCAPPMYCARD_H