bluetoothengine/btnotif/src/BTNPinNotifier.cpp
branchRCL_3
changeset 72 4b59561a31c0
parent 61 269724087bed
--- a/bluetoothengine/btnotif/src/BTNPinNotifier.cpp	Wed Sep 15 12:23:51 2010 +0300
+++ b/bluetoothengine/btnotif/src/BTNPinNotifier.cpp	Wed Oct 13 14:43:49 2010 +0300
@@ -99,15 +99,15 @@
 // in registry. Jump to RunL as soon as possible.
 // ----------------------------------------------------------
 //
-void CBTPinNotifier::ProcessStartParamsL()
+void CBTPinNotifier::GetParamsL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage)
     {
-    FLOG(_L("[BTNOTIF]\t CBTPinNotifier::ProcessStartParamsL() >>"));
+    FLOG(_L("[BTNOTIF]\t CBTPinNotifier::GetParamsL() >>"));
 
-    CBTNPairNotifierBase::ProcessStartParamsL();
+    CBTNPairNotifierBase::GetParamsL( aBuffer, aReplySlot, aMessage );
 
     TBTPinCodeEntryNotifierParams param;
  	TPckgC<TBTPinCodeEntryNotifierParams> pckg(param);
- 	pckg.Set(*iParamBuffer);
+ 	pckg.Set(aBuffer);
 
     iBTAddr = pckg().DeviceAddress();
     if ( OtherOutgoPairing(iBTAddr) )
@@ -123,7 +123,7 @@
     iStrongPinRequired = pckg().StrongPinCodeRequired();
     ProcessParamsGetDeviceL( iBTAddr, pckg().DeviceName() );
     
-    FLOG(_L("[BTNOTIF]\t CBTPinNotifier::ProcessStartParamsL() <<"));
+    FLOG(_L("[BTNOTIF]\t CBTPinNotifier::GetParamsL() <<"));
     }
 
 // ----------------------------------------------------------
@@ -263,7 +263,6 @@
                 aRBuf, R_BT_MIN_PASSKEY_PROMPT, devName, 1 );
 
         RBuf tmpBuf;
-        tmpBuf.CreateL( aRBuf.MaxLength() );
         tmpBuf.CleanupClosePushL();
         tmpBuf.Swap( aRBuf );
         aRBuf.ReAllocL( aRBuf.MaxLength() + sizeof(TUint));