bluetoothengine/btnotif/src/BTNPinNotifier.cpp
branchRCL_3
changeset 61 269724087bed
parent 56 9386f31cc85b
child 72 4b59561a31c0
--- a/bluetoothengine/btnotif/src/BTNPinNotifier.cpp	Wed Sep 01 12:20:04 2010 +0100
+++ b/bluetoothengine/btnotif/src/BTNPinNotifier.cpp	Tue Sep 14 21:37:10 2010 +0300
@@ -99,15 +99,15 @@
 // in registry. Jump to RunL as soon as possible.
 // ----------------------------------------------------------
 //
-void CBTPinNotifier::GetParamsL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage)
+void CBTPinNotifier::ProcessStartParamsL()
     {
-    FLOG(_L("[BTNOTIF]\t CBTPinNotifier::GetParamsL() >>"));
+    FLOG(_L("[BTNOTIF]\t CBTPinNotifier::ProcessStartParamsL() >>"));
 
-    CBTNPairNotifierBase::GetParamsL( aBuffer, aReplySlot, aMessage );
+    CBTNPairNotifierBase::ProcessStartParamsL();
 
     TBTPinCodeEntryNotifierParams param;
  	TPckgC<TBTPinCodeEntryNotifierParams> pckg(param);
- 	pckg.Set(aBuffer);
+ 	pckg.Set(*iParamBuffer);
 
     iBTAddr = pckg().DeviceAddress();
     if ( OtherOutgoPairing(iBTAddr) )
@@ -123,7 +123,7 @@
     iStrongPinRequired = pckg().StrongPinCodeRequired();
     ProcessParamsGetDeviceL( iBTAddr, pckg().DeviceName() );
     
-    FLOG(_L("[BTNOTIF]\t CBTPinNotifier::GetParamsL() <<"));
+    FLOG(_L("[BTNOTIF]\t CBTPinNotifier::ProcessStartParamsL() <<"));
     }
 
 // ----------------------------------------------------------
@@ -263,6 +263,7 @@
                 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));