88 iInfo.iPriority=ENotifierPriorityVHigh; |
88 iInfo.iPriority=ENotifierPriorityVHigh; |
89 return iInfo; |
89 return iInfo; |
90 } |
90 } |
91 |
91 |
92 // ---------------------------------------------------------- |
92 // ---------------------------------------------------------- |
93 // CBTUserConfNotifier::ProcessStartParamsL |
93 // CBTUserConfNotifier::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 CBTUserConfNotifier::ProcessStartParamsL() |
98 void CBTUserConfNotifier::GetParamsL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage) |
99 { |
99 { |
100 FLOG(_L("[BTNOTIF]\t CBTUserConfNotifier::ProcessStartParamsL()")); |
100 FLOG(_L("[BTNOTIF]\t CBTUserConfNotifier::GetParamsL()")); |
101 |
101 |
102 CBTNPairNotifierBase::ProcessStartParamsL(); |
102 CBTNPairNotifierBase::GetParamsL( aBuffer, aReplySlot, aMessage ); |
103 |
103 |
104 TBTUserConfirmationParamsPckgCopy pckg; |
104 TBTUserConfirmationParamsPckgCopy 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 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::ProcessStartParamsL() completed")); |
120 FLOG(_L("[BTNOTIF]\t CBTUserConfNotifier::GetParamsL() 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. |