mpxplugins/viewplugins/views/waitnotedialog/src/mpxwaitnotedialog.cpp
branchRCL_3
changeset 17 c8156a91d13c
parent 0 ff3acec5bc43
child 21 a1247965635c
equal deleted inserted replaced
15:171e07ac910f 17:c8156a91d13c
    88     if( iWaitDialog )
    88     if( iWaitDialog )
    89         {
    89         {
    90         iWaitDialog->SetCallback( NULL );
    90         iWaitDialog->SetCallback( NULL );
    91         TRAP_IGNORE( iWaitDialog->ProcessFinishedL() );
    91         TRAP_IGNORE( iWaitDialog->ProcessFinishedL() );
    92         }
    92         }
       
    93     if( iProcessWaitDialog )
       
    94         {
       
    95         TRAP_IGNORE( iProcessWaitDialog->ProcessFinishedL() );
       
    96         }
    93 
    97 
    94     if( iResourceOffset )
    98     if( iResourceOffset )
    95         {
    99         {
    96         CEikonEnv::Static()->DeleteResourceFile( iResourceOffset );
   100         CEikonEnv::Static()->DeleteResourceFile( iResourceOffset );
    97         }
   101         }
   471 
   475 
   472     note->RunLD();
   476     note->RunLD();
   473     MPX_DEBUG1("<--CMPXWaitNoteDialog::DisplayNoteDialogL for COVER DISPLAY End");
   477     MPX_DEBUG1("<--CMPXWaitNoteDialog::DisplayNoteDialogL for COVER DISPLAY End");
   474     }
   478     }
   475 
   479 
       
   480 // ---------------------------------------------------------------------------
       
   481 // Display a generic process wait dialog
       
   482 // ---------------------------------------------------------------------------
       
   483 //
       
   484 void CMPXWaitNoteDialog::DisplayProcessWaitDialogL( TInt aDlgRsc, 
       
   485                                              const TDesC& aLabel,
       
   486                                              CAknWaitDialog::TTone aTone )
       
   487     {
       
   488     if(iProcessWaitDialog )
       
   489         {        
       
   490         iProcessWaitDialog->ProcessFinishedL();
       
   491         iProcessWaitDialog = NULL;
       
   492         }
       
   493 
       
   494     iProcessWaitDialog = new ( ELeave ) CAknWaitDialog(
       
   495                                     ( CEikDialog** )&iProcessWaitDialog,
       
   496                                     iVisDelayOff );
       
   497     
       
   498     iProcessWaitDialog->PrepareLC( aDlgRsc );
       
   499     iProcessWaitDialog->SetTextL( aLabel );
       
   500     iProcessWaitDialog->RunLD();
       
   501     }
       
   502 
       
   503 // ---------------------------------------------------------------------------
       
   504 // Cancel the process wait dialog
       
   505 // ---------------------------------------------------------------------------
       
   506 //
       
   507 void CMPXWaitNoteDialog::CancelProcessWaitDialogL()
       
   508     {
       
   509     if( iProcessWaitDialog )
       
   510         {
       
   511         iProcessWaitDialog->ProcessFinishedL();
       
   512         }
       
   513     }
   476 // End of file
   514 // End of file