phonebookui/Phonebook2/NamesListExtension/src/NamesListExView.cpp
branchRCL_3
changeset 11 2828b4d142c0
parent 8 5586b4d2ec3e
child 13 a6539d1e8e43
--- a/phonebookui/Phonebook2/NamesListExtension/src/NamesListExView.cpp	Tue Apr 27 16:23:35 2010 +0300
+++ b/phonebookui/Phonebook2/NamesListExtension/src/NamesListExView.cpp	Tue May 11 16:00:21 2010 +0300
@@ -413,6 +413,11 @@
         {
         iCurrentCommandId = aCommandId;
         }
+    
+    if ( EPbk2CmdOpenCca == aCommandId )
+    	{
+        iControl->SetOpeningCca( ETrue );
+    	}
 
     // No command handling in this class, forward to Commands
     if (!iCommandHandler->HandleCommandL( aCommandId, *iControlProxy, &iView ))
@@ -703,7 +708,14 @@
     {
     PBK2_DEBUG_PRINT(PBK2_DEBUG_STRING
         ("CPbk2NamesListExView(%x)::DoDeactivate()"), this);
-
+    
+    // CCA Connection should be closed when Name List View deactivated
+    if( iCCAConnection )
+        {
+        iCCAConnection->Close();
+        iCCAConnection = NULL;
+        }
+    
     if ( iCommandHandler )
         {
         iCommandHandler->RemoveMenuCommandObserver( *this );
@@ -1320,6 +1332,11 @@
         // after a command is finished.
         iCtrlVisibleStateBeforeLosingForground = ETrue;
 
+        if( EPbk2CmdOpenCca == iCurrentCommandId )
+            {
+            iControl->SetOpeningCca( EFalse );
+            }
+            
         iControl->AllowPointerEvents( ETrue );
         iControl->ShowThumbnail();