bluetoothengine/bteng/src/btengclient.cpp
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
   253     return SendReceive( EBTEngCancelEventNotifier, TIpcArgs() );
   253     return SendReceive( EBTEngCancelEventNotifier, TIpcArgs() );
   254     }
   254     }
   255 
   255 
   256 
   256 
   257 // ---------------------------------------------------------------------------
   257 // ---------------------------------------------------------------------------
       
   258 // Set a pairing observer in BTEngine.
       
   259 // ---------------------------------------------------------------------------
       
   260 //
       
   261 TInt RBTEng::SetPairingObserver( const TBTDevAddr& aAddr, TBool aActivate )
       
   262     {
       
   263     TBTDevAddrPckgBuf addrPkg( aAddr );
       
   264     return SendReceive( EBTEngSetPairingObserver, TIpcArgs( &addrPkg, aActivate ) );
       
   265     }
       
   266 
       
   267 
       
   268 // ---------------------------------------------------------------------------
   258 // ?implementation_description
   269 // ?implementation_description
   259 // ---------------------------------------------------------------------------
   270 // ---------------------------------------------------------------------------
   260 //
   271 //
   261 TInt RBTEng::PrepareDiscovery()
   272 TInt RBTEng::PrepareDiscovery()
   262     {
   273     {
   263     return SendReceive( EBTEngPrepareDiscovery, TIpcArgs() );
   274     return SendReceive( EBTEngPrepareDiscovery, TIpcArgs() );
   264     }
   275     }
       
   276 
       
   277 // ---------------------------------------------------------------------------
       
   278 // Start to pair a device in BTEngine.
       
   279 // ---------------------------------------------------------------------------
       
   280 //
       
   281 void RBTEng::PairDevice( const TBTDevAddrPckgBuf& aAddr, 
       
   282         const TUint32& aDeviceClass, TRequestStatus& aStatus  )
       
   283     {
       
   284     SendReceive( EBTEngPairDevice, TIpcArgs( &aAddr, aDeviceClass ), aStatus );    
       
   285     }
       
   286 
       
   287 // ---------------------------------------------------------------------------
       
   288 // cancel pairing request
       
   289 // ---------------------------------------------------------------------------
       
   290 //
       
   291 void RBTEng::CancelPairDevice( )
       
   292     {
       
   293     (void) SendReceive( EBTEngCancelPairDevice);        
       
   294     }