bluetoothengine/btnotif/src/BTNInqNotifier.cpp
branchRCL_3
changeset 24 269724087bed
parent 23 9386f31cc85b
equal deleted inserted replaced
23:9386f31cc85b 24:269724087bed
    75     iInfo.iPriority=ENotifierPriorityVHigh; // User input level
    75     iInfo.iPriority=ENotifierPriorityVHigh; // User input level
    76     return iInfo;
    76     return iInfo;
    77     }
    77     }
    78 
    78 
    79 // ----------------------------------------------------------
    79 // ----------------------------------------------------------
    80 // CBTInqNotifier::GetParamsL
    80 // CBTInqNotifier::ProcessStartParamsL
    81 // Initialize parameters and launch device search.
    81 // Initialize parameters and launch device search.
    82 // ----------------------------------------------------------
    82 // ----------------------------------------------------------
    83 //
    83 //
    84 void CBTInqNotifier::GetParamsL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage)
    84 void CBTInqNotifier::ProcessStartParamsL()
    85     {
    85     {
    86     FLOG(_L("[BTNOTIF]\t CBTInqNotifier::GetParamsL()"));
    86     FLOG(_L("[BTNOTIF]\t CBTInqNotifier::ProcessStartParamsL()"));
    87 
    87 
    88     if( !iMessage.IsNull() )
       
    89         {
       
    90         aMessage.Complete(KErrInUse);
       
    91         return;
       
    92         }
       
    93 
       
    94     iMessage = aMessage;
       
    95     iReplySlot = aReplySlot;
       
    96     
       
    97     TBTDeviceClass cod;
    88     TBTDeviceClass cod;
    98     TBTDeviceSelectionParamsPckg pckg;
    89     TBTDeviceSelectionParamsPckg pckg;
    99     pckg.Copy(aBuffer); 
    90     pckg.Copy(*iParamBuffer); 
   100 
    91 
   101     LaunchInquiryL(pckg().DeviceClass());
    92     LaunchInquiryL(pckg().DeviceClass());
   102     
    93     
   103     FLOG(_L("[BTNOTIF]\t CBTInqNotifier::GetParamsL() completed "));
    94     FLOG(_L("[BTNOTIF]\t CBTInqNotifier::ProcessStartParamsL() completed "));
   104     }
    95     }
   105 
    96 
   106 // ----------------------------------------------------------
    97 // ----------------------------------------------------------
   107 // CBTInqNotifier::NotifyDeviceSearchCompleted
    98 // CBTInqNotifier::NotifyDeviceSearchCompleted
   108 // Notified by InquiryUI, return to caller by completing message
    99 // Notified by InquiryUI, return to caller by completing message