diff -r 171e07ac910f -r c8156a91d13c mpxplugins/viewplugins/views/waitnotedialog/src/mpxwaitnotedialog.cpp --- a/mpxplugins/viewplugins/views/waitnotedialog/src/mpxwaitnotedialog.cpp Mon Mar 15 12:40:11 2010 +0200 +++ b/mpxplugins/viewplugins/views/waitnotedialog/src/mpxwaitnotedialog.cpp Wed Mar 31 21:26:33 2010 +0300 @@ -90,6 +90,10 @@ iWaitDialog->SetCallback( NULL ); TRAP_IGNORE( iWaitDialog->ProcessFinishedL() ); } + if( iProcessWaitDialog ) + { + TRAP_IGNORE( iProcessWaitDialog->ProcessFinishedL() ); + } if( iResourceOffset ) { @@ -473,4 +477,38 @@ MPX_DEBUG1("<--CMPXWaitNoteDialog::DisplayNoteDialogL for COVER DISPLAY End"); } +// --------------------------------------------------------------------------- +// Display a generic process wait dialog +// --------------------------------------------------------------------------- +// +void CMPXWaitNoteDialog::DisplayProcessWaitDialogL( TInt aDlgRsc, + const TDesC& aLabel, + CAknWaitDialog::TTone aTone ) + { + if(iProcessWaitDialog ) + { + iProcessWaitDialog->ProcessFinishedL(); + iProcessWaitDialog = NULL; + } + + iProcessWaitDialog = new ( ELeave ) CAknWaitDialog( + ( CEikDialog** )&iProcessWaitDialog, + iVisDelayOff ); + + iProcessWaitDialog->PrepareLC( aDlgRsc ); + iProcessWaitDialog->SetTextL( aLabel ); + iProcessWaitDialog->RunLD(); + } + +// --------------------------------------------------------------------------- +// Cancel the process wait dialog +// --------------------------------------------------------------------------- +// +void CMPXWaitNoteDialog::CancelProcessWaitDialogL() + { + if( iProcessWaitDialog ) + { + iProcessWaitDialog->ProcessFinishedL(); + } + } // End of file