bluetoothengine/btnotif/src/BTNInqNotifier.cpp
branchRCL_3
changeset 72 4b59561a31c0
parent 61 269724087bed
--- a/bluetoothengine/btnotif/src/BTNInqNotifier.cpp	Wed Sep 15 12:23:51 2010 +0300
+++ b/bluetoothengine/btnotif/src/BTNInqNotifier.cpp	Wed Oct 13 14:43:49 2010 +0300
@@ -77,21 +77,30 @@
     }
 
 // ----------------------------------------------------------
-// CBTInqNotifier::ProcessStartParamsL
+// CBTInqNotifier::GetParamsL
 // Initialize parameters and launch device search.
 // ----------------------------------------------------------
 //
-void CBTInqNotifier::ProcessStartParamsL()
+void CBTInqNotifier::GetParamsL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage)
     {
-    FLOG(_L("[BTNOTIF]\t CBTInqNotifier::ProcessStartParamsL()"));
+    FLOG(_L("[BTNOTIF]\t CBTInqNotifier::GetParamsL()"));
 
+    if( !iMessage.IsNull() )
+        {
+        aMessage.Complete(KErrInUse);
+        return;
+        }
+
+    iMessage = aMessage;
+    iReplySlot = aReplySlot;
+    
     TBTDeviceClass cod;
     TBTDeviceSelectionParamsPckg pckg;
-    pckg.Copy(*iParamBuffer); 
+    pckg.Copy(aBuffer); 
 
     LaunchInquiryL(pckg().DeviceClass());
     
-    FLOG(_L("[BTNOTIF]\t CBTInqNotifier::ProcessStartParamsL() completed "));
+    FLOG(_L("[BTNOTIF]\t CBTInqNotifier::GetParamsL() completed "));
     }
 
 // ----------------------------------------------------------