photosgallery/viewframework/commandhandlers/commandhandlerbase/src/glxmpxcommandcommandhandler.cpp
branchRCL_3
changeset 27 34937ec34dac
parent 26 5b3385a43d68
equal deleted inserted replaced
26:5b3385a43d68 27:34937ec34dac
   529     TRACER("CGlxMpxCommandCommandHandler::ProgressNoteL(TInt aCommandId)");
   529     TRACER("CGlxMpxCommandCommandHandler::ProgressNoteL(TInt aCommandId)");
   530 
   530 
   531     // get progress note 
   531     // get progress note 
   532     HBufC* progressText = ProgressTextL(aCommandId);
   532     HBufC* progressText = ProgressTextL(aCommandId);
   533     __ASSERT_DEBUG(progressText, Panic(EGlxPanicNullDescriptor));
   533     __ASSERT_DEBUG(progressText, Panic(EGlxPanicNullDescriptor));
   534 	CleanupStack::PushL(progressText);
   534     CleanupStack::PushL(progressText);
   535     // construct progress dialog
   535     // construct progress dialog
   536 	iProgressDialog = new(ELeave)CAknProgressDialog(
   536     iProgressDialog = new (ELeave) CAknProgressDialog(
   537 			(REINTERPRET_CAST(CEikDialog**,&iProgressDialog)));
   537             (REINTERPRET_CAST(CEikDialog**,&iProgressDialog)));
   538 	iProgressDialog->PrepareLC(R_GLX_PROGRESS_NOTE); 
   538     iProgressDialog->PrepareLC(R_GLX_PROGRESS_NOTE);
   539 	iProgressDialog->SetTextL(*progressText);
   539     if (aCommandId == EGlxCmdRename)
   540 	iProgressDialog->SetCallback(this);
   540         {
   541 	
   541         iProgressDialog->ButtonGroupContainer().SetCommandSetL(
       
   542                 R_AVKON_SOFTKEYS_EMPTY);
       
   543         }
       
   544     iProgressDialog->SetTextL(*progressText);
       
   545     iProgressDialog->SetCallback(this);
       
   546 
   542     // pick up progress info so that progress notification can be later updated
   547     // pick up progress info so that progress notification can be later updated
   543 	iProgressInfo = iProgressDialog->GetProgressInfoL();
   548     iProgressInfo = iProgressDialog->GetProgressInfoL();
   544 	
   549 
   545     // launch the note
   550     // launch the note
   546 	iProgressDialog->RunLD();
   551     iProgressDialog->RunLD();
   547 	CleanupStack::PopAndDestroy(progressText); 
   552     CleanupStack::PopAndDestroy(progressText);
   548 	}
   553     }
   549 
   554 
   550 // -----------------------------------------------------------------------------
   555 // -----------------------------------------------------------------------------
   551 // DismissProgressNoteL
   556 // DismissProgressNoteL
   552 // -----------------------------------------------------------------------------
   557 // -----------------------------------------------------------------------------
   553 //	
   558 //