bluetoothengine/btui/Ecom/src/BTUIPairedDevicesView.cpp
branchRCL_3
changeset 72 4b59561a31c0
parent 56 9386f31cc85b
equal deleted inserted replaced
64:1934667b0e2b 72:4b59561a31c0
   903 	        {
   903 	        {
   904             // Launch wait note              
   904             // Launch wait note              
   905             OpenWaitNoteL(iWaitForConnectDlg,R_BT_CONNECTING_TO_WAIT_NOTE,R_BT_CONNECTING_TO ,
   905             OpenWaitNoteL(iWaitForConnectDlg,R_BT_CONNECTING_TO_WAIT_NOTE,R_BT_CONNECTING_TO ,
   906                 ECmdShowBtWaitConnectingToNote,aDevice.iName); 
   906                 ECmdShowBtWaitConnectingToNote,aDevice.iName); 
   907 	        }
   907 	        }
       
   908 	    
       
   909 	    __ASSERT_DEBUG(iConnectDevice == NULL,PANIC(EBTPanicClassMemberVariableNotNull));
   908 		iConnectDevice=new(ELeave) TBTDevice(aDevice);            
   910 		iConnectDevice=new(ELeave) TBTDevice(aDevice);            
   909 		iConnectDevice->iOperation=EOpConnect;
   911 		iConnectDevice->iOperation=EOpConnect;
   910 		     
   912 		     
   911 		if( currentPowerMode == EBTPowerOff )
   913 		if( currentPowerMode == EBTPowerOff )
   912 			{
   914 			{
   913 				// turn on the flag IsConnectDevice
   915             // turn on the flag IsConnectDevice
   914 				//
   916             iIsConnectDevice = ETrue;
   915 				iIsConnectDevice = ETrue;
       
   916 			}
   917 			}
   917         else
   918         else
   918         	{	
   919         	{	
   919         		// connect device
   920             // connect device
   920         		//
   921             iModel->ChangeDevice(*iConnectDevice);        		
   921         		iModel->ChangeDevice(*iConnectDevice);
   922             // reset IsConnectDevice flag
   922         		
   923             iIsConnectDevice = EFalse;
   923         		// reset IsConnectDevice flag
       
   924         		iIsConnectDevice = EFalse;
       
   925         	}
   924         	}
   926         }
   925         }
   927     TRACE_FUNC_EXIT
   926     TRACE_FUNC_EXIT
   928 	}
   927 	}
   929 	
   928