bluetoothengine/btnotif/src/btnumcmpnotifier.cpp
branchRCL_3
changeset 72 4b59561a31c0
parent 61 269724087bed
equal deleted inserted replaced
64:1934667b0e2b 72:4b59561a31c0
    88     iInfo.iPriority=ENotifierPriorityVHigh;
    88     iInfo.iPriority=ENotifierPriorityVHigh;
    89     return iInfo;
    89     return iInfo;
    90     }
    90     }
    91 
    91 
    92 // ----------------------------------------------------------
    92 // ----------------------------------------------------------
    93 // CBTNumCmpNotifier::ProcessStartParamsL
    93 // CBTNumCmpNotifier::GetParamsL
    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 CBTNumCmpNotifier::ProcessStartParamsL()
    98 void CBTNumCmpNotifier::GetParamsL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage)
    99     {
    99     {
   100     FLOG(_L("[BTNOTIF]\t CBTNumCmpNotifier::ProcessStartParamsL()"));
   100     FLOG(_L("[BTNOTIF]\t CBTNumCmpNotifier::GetParamsL()"));
   101 
   101 
   102     CBTNPairNotifierBase::ProcessStartParamsL();
   102     CBTNPairNotifierBase::GetParamsL( aBuffer, aReplySlot, aMessage );
   103     
   103     
   104     TBTNumericComparisonParamsPckg pckg;
   104     TBTNumericComparisonParamsPckg pckg;
   105  	pckg.Copy(*iParamBuffer);
   105  	pckg.Copy(aBuffer);
   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 CBTNumCmpNotifier: outgoing pair in progress, reject incoming pair"));
   110         FLOG(_L("[BTNOTIF]\t CBTNumCmpNotifier: outgoing pair in progress, reject incoming pair"));
   118 	iPasskeyToShow.Insert(3,_L(" "));
   118 	iPasskeyToShow.Insert(3,_L(" "));
   119 
   119 
   120 	// base class
   120 	// base class
   121 	ProcessParamsGetDeviceL( iBTAddr, pckg().DeviceName() );
   121 	ProcessParamsGetDeviceL( iBTAddr, pckg().DeviceName() );
   122 	
   122 	
   123 	FLOG(_L("[BTNOTIF]\t CBTNumCmpNotifier::ProcessStartParamsL() completed"));
   123 	FLOG(_L("[BTNOTIF]\t CBTNumCmpNotifier::GetParamsL() completed"));
   124     }
   124     }
   125 
   125 
   126 // ----------------------------------------------------------
   126 // ----------------------------------------------------------
   127 // CBTNumCmpNotifier::HandleGetDeviceCompletedL
   127 // CBTNumCmpNotifier::HandleGetDeviceCompletedL
   128 // Ask user response and return it to caller.
   128 // Ask user response and return it to caller.