phonebookui/Phonebook2/NamesListExtension/src/NamesListExView.cpp
branchRCL_3
changeset 32 2828b4d142c0
parent 23 5586b4d2ec3e
child 39 a6539d1e8e43
equal deleted inserted replaced
26:0d28c1c5b6dd 32:2828b4d142c0
   411 
   411 
   412     if ( EAknCmdHideInBackground != aCommandId )
   412     if ( EAknCmdHideInBackground != aCommandId )
   413         {
   413         {
   414         iCurrentCommandId = aCommandId;
   414         iCurrentCommandId = aCommandId;
   415         }
   415         }
       
   416     
       
   417     if ( EPbk2CmdOpenCca == aCommandId )
       
   418     	{
       
   419         iControl->SetOpeningCca( ETrue );
       
   420     	}
   416 
   421 
   417     // No command handling in this class, forward to Commands
   422     // No command handling in this class, forward to Commands
   418     if (!iCommandHandler->HandleCommandL( aCommandId, *iControlProxy, &iView ))
   423     if (!iCommandHandler->HandleCommandL( aCommandId, *iControlProxy, &iView ))
   419         {
   424         {
   420         iControl->ProcessCommandL(aCommandId);
   425         iControl->ProcessCommandL(aCommandId);
   701 //
   706 //
   702 void CPbk2NamesListExView::DoDeactivate()
   707 void CPbk2NamesListExView::DoDeactivate()
   703     {
   708     {
   704     PBK2_DEBUG_PRINT(PBK2_DEBUG_STRING
   709     PBK2_DEBUG_PRINT(PBK2_DEBUG_STRING
   705         ("CPbk2NamesListExView(%x)::DoDeactivate()"), this);
   710         ("CPbk2NamesListExView(%x)::DoDeactivate()"), this);
   706 
   711     
       
   712     // CCA Connection should be closed when Name List View deactivated
       
   713     if( iCCAConnection )
       
   714         {
       
   715         iCCAConnection->Close();
       
   716         iCCAConnection = NULL;
       
   717         }
       
   718     
   707     if ( iCommandHandler )
   719     if ( iCommandHandler )
   708         {
   720         {
   709         iCommandHandler->RemoveMenuCommandObserver( *this );
   721         iCommandHandler->RemoveMenuCommandObserver( *this );
   710         }
   722         }
   711 
   723 
  1318         // before one command is executing, and then get foreground later after the command
  1330         // before one command is executing, and then get foreground later after the command
  1319         // finished, which would cause the control to be set invisible. So reset the flag
  1331         // finished, which would cause the control to be set invisible. So reset the flag
  1320         // after a command is finished.
  1332         // after a command is finished.
  1321         iCtrlVisibleStateBeforeLosingForground = ETrue;
  1333         iCtrlVisibleStateBeforeLosingForground = ETrue;
  1322 
  1334 
       
  1335         if( EPbk2CmdOpenCca == iCurrentCommandId )
       
  1336             {
       
  1337             iControl->SetOpeningCca( EFalse );
       
  1338             }
       
  1339             
  1323         iControl->AllowPointerEvents( ETrue );
  1340         iControl->AllowPointerEvents( ETrue );
  1324         iControl->ShowThumbnail();
  1341         iControl->ShowThumbnail();
  1325 
  1342 
  1326         TBool drawToolbar( EFalse );
  1343         TBool drawToolbar( EFalse );
  1327         // Check the orientation of the screen.
  1344         // Check the orientation of the screen.