--- a/phonebookui/Phonebook2/MMCExtension/src/CPmuCopyToDriveCmd.cpp Tue Sep 14 20:54:53 2010 +0300
+++ b/phonebookui/Phonebook2/MMCExtension/src/CPmuCopyToDriveCmd.cpp Wed Sep 15 11:56:55 2010 +0300
@@ -239,15 +239,14 @@
}
else
{
- iState = EPmuCopyToMmcCmdComplete;
- IssueRequest();
+ // Stop the process dialog when complete the process of copying
+ iDecorator->ProcessStopped();
}
break;
}
case EPmuCopyToMmcCmdComplete:
{
- // Copy complete, decorator calls processdismissed
- iDecorator->ProcessStopped();
+ CommandCompleted();
break;
}
default:
@@ -327,19 +326,8 @@
//
void CPmuCopyToMmcCmd::ProcessDismissed( TInt /*aCancelCode*/ )
{
- Cancel();
- delete iRetrieveOperation;
- iRetrieveOperation = NULL;
- delete iExportOperation;
- iExportOperation = NULL;
-
- // It is a not big deal if result note is not shown to user
- TRAP_IGNORE( ShowResultsL() );
- if ( iUiControl )
- {
- iUiControl->UpdateAfterCommandExecution();
- }
- iCommandObserver->CommandFinished( *this );
+ iState = EPmuCopyToMmcCmdComplete;
+ IssueRequest();
}
// --------------------------------------------------------------------------
@@ -653,4 +641,25 @@
return err;
}
+// --------------------------------------------------------------------------
+// CPmuCopyToMmcCmd::CommandCompleted
+// --------------------------------------------------------------------------
+//
+void CPmuCopyToMmcCmd::CommandCompleted()
+ {
+ Cancel();
+ delete iRetrieveOperation;
+ iRetrieveOperation = NULL;
+ delete iExportOperation;
+ iExportOperation = NULL;
+
+ // It is a not big deal if result note is not shown to user
+ TRAP_IGNORE( ShowResultsL() );
+ if ( iUiControl )
+ {
+ iUiControl->UpdateAfterCommandExecution();
+ }
+ iCommandObserver->CommandFinished( *this );
+ }
+
// End of File