diff -r 613943a21004 -r 9386f31cc85b bluetoothengine/bteng/src/btengclient.cpp --- a/bluetoothengine/bteng/src/btengclient.cpp Tue Aug 31 15:25:10 2010 +0300 +++ b/bluetoothengine/bteng/src/btengclient.cpp Wed Sep 01 12:20:04 2010 +0100 @@ -255,6 +255,17 @@ // --------------------------------------------------------------------------- +// Set a pairing observer in BTEngine. +// --------------------------------------------------------------------------- +// +TInt RBTEng::SetPairingObserver( const TBTDevAddr& aAddr, TBool aActivate ) + { + TBTDevAddrPckgBuf addrPkg( aAddr ); + return SendReceive( EBTEngSetPairingObserver, TIpcArgs( &addrPkg, aActivate ) ); + } + + +// --------------------------------------------------------------------------- // ?implementation_description // --------------------------------------------------------------------------- // @@ -262,3 +273,22 @@ { return SendReceive( EBTEngPrepareDiscovery, TIpcArgs() ); } + +// --------------------------------------------------------------------------- +// Start to pair a device in BTEngine. +// --------------------------------------------------------------------------- +// +void RBTEng::PairDevice( const TBTDevAddrPckgBuf& aAddr, + const TUint32& aDeviceClass, TRequestStatus& aStatus ) + { + SendReceive( EBTEngPairDevice, TIpcArgs( &aAddr, aDeviceClass ), aStatus ); + } + +// --------------------------------------------------------------------------- +// cancel pairing request +// --------------------------------------------------------------------------- +// +void RBTEng::CancelPairDevice( ) + { + (void) SendReceive( EBTEngCancelPairDevice); + }