bluetoothengine/btnotif/src/btuserconfnotifier.cpp
branchRCL_3
changeset 61 269724087bed
parent 11 a42ed326b458
child 72 4b59561a31c0
equal deleted inserted replaced
56:9386f31cc85b 61:269724087bed
    88     iInfo.iPriority=ENotifierPriorityVHigh;
    88     iInfo.iPriority=ENotifierPriorityVHigh;
    89     return iInfo;
    89     return iInfo;
    90     }
    90     }
    91 
    91 
    92 // ----------------------------------------------------------
    92 // ----------------------------------------------------------
    93 // CBTUserConfNotifier::GetParamsL
    93 // CBTUserConfNotifier::ProcessStartParamsL
    94 // Initialize parameters and check if device is already
    94 // Initialize parameters and check if device is already
    95 // in registry. Jump to RunL as soon as possible.
    95 // in registry. Jump to RunL as soon as possible.
    96 // ----------------------------------------------------------
    96 // ----------------------------------------------------------
    97 //
    97 //
    98 void CBTUserConfNotifier::GetParamsL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage)
    98 void CBTUserConfNotifier::ProcessStartParamsL()
    99     {
    99     {
   100     FLOG(_L("[BTNOTIF]\t CBTUserConfNotifier::GetParamsL()"));
   100     FLOG(_L("[BTNOTIF]\t CBTUserConfNotifier::ProcessStartParamsL()"));
   101 
   101 
   102     CBTNPairNotifierBase::GetParamsL( aBuffer, aReplySlot, aMessage );
   102     CBTNPairNotifierBase::ProcessStartParamsL();
   103     
   103     
   104     TBTUserConfirmationParamsPckgCopy pckg;
   104     TBTUserConfirmationParamsPckgCopy pckg;
   105  	pckg.Copy(aBuffer);
   105  	pckg.Copy(*iParamBuffer);
   106  	iBTAddr = pckg().DeviceAddress();
   106  	iBTAddr = pckg().DeviceAddress();
   107     if ( OtherOutgoPairing( iBTAddr) )
   107     if ( OtherOutgoPairing( iBTAddr) )
   108         {
   108         {
   109         // We won't allow incoming pairing during outgoing pairing:
   109         // We won't allow incoming pairing during outgoing pairing:
   110         FLOG(_L("[BTNOTIF]\t CBTUserConfNotifier: outgoing pair in progress, reject incoming pair"));
   110         FLOG(_L("[BTNOTIF]\t CBTUserConfNotifier: outgoing pair in progress, reject incoming pair"));
   115 	iLocallyInitiated = pckg().LocallyInitiated(); 
   115 	iLocallyInitiated = pckg().LocallyInitiated(); 
   116 
   116 
   117 	// base class
   117 	// base class
   118 	ProcessParamsGetDeviceL( iBTAddr, pckg().DeviceName() );
   118 	ProcessParamsGetDeviceL( iBTAddr, pckg().DeviceName() );
   119 	
   119 	
   120 	FLOG(_L("[BTNOTIF]\t CBTUserConfNotifier::GetParamsL() completed"));
   120 	FLOG(_L("[BTNOTIF]\t CBTUserConfNotifier::ProcessStartParamsL() completed"));
   121     }
   121     }
   122 
   122 
   123 // ----------------------------------------------------------
   123 // ----------------------------------------------------------
   124 // CBTUserConfNotifier::HandleGetDeviceCompletedL
   124 // CBTUserConfNotifier::HandleGetDeviceCompletedL
   125 // Ask user response and return it to caller.
   125 // Ask user response and return it to caller.