equal
deleted
inserted
replaced
158 |
158 |
159 StartForcedDisableTimer( CScpServiceHandlerBase::ForceSipProfileDisable ); |
159 StartForcedDisableTimer( CScpServiceHandlerBase::ForceSipProfileDisable ); |
160 } |
160 } |
161 |
161 |
162 // ----------------------------------------------------------------------------- |
162 // ----------------------------------------------------------------------------- |
|
163 // CScpServiceHandlerBase::PerformInstantForceSipProfileDisable |
|
164 // ----------------------------------------------------------------------------- |
|
165 // |
|
166 void CScpServiceHandlerBase::PerformInstantForceSipProfileDisable() |
|
167 { |
|
168 SCPLOGSTRING2( |
|
169 "CScpServiceHandlerBase[0x%x]::PerformInstantForceSipProfileDisable", |
|
170 this ); |
|
171 HandleSipProfileForcedDisable( ETrue ); |
|
172 } |
|
173 |
|
174 // ----------------------------------------------------------------------------- |
163 // CScpServiceHandlerBase::StartForcedDisableTimer |
175 // CScpServiceHandlerBase::StartForcedDisableTimer |
164 // ----------------------------------------------------------------------------- |
176 // ----------------------------------------------------------------------------- |
165 // |
177 // |
166 void CScpServiceHandlerBase::StartForcedDisableTimer( TInt (*aFunction)(TAny* aPtr) ) |
178 void CScpServiceHandlerBase::StartForcedDisableTimer( TInt (*aFunction)(TAny* aPtr) ) |
167 { |
179 { |
193 |
205 |
194 // ----------------------------------------------------------------------------- |
206 // ----------------------------------------------------------------------------- |
195 // CScpServiceHandlerBase::HandleSipProfileForcedDisable |
207 // CScpServiceHandlerBase::HandleSipProfileForcedDisable |
196 // ----------------------------------------------------------------------------- |
208 // ----------------------------------------------------------------------------- |
197 // |
209 // |
198 void CScpServiceHandlerBase::HandleSipProfileForcedDisable() |
210 void CScpServiceHandlerBase::HandleSipProfileForcedDisable( |
|
211 TBool aForceDisableSipProfile ) |
199 { |
212 { |
200 SCPLOGSTRING2( |
213 SCPLOGSTRING2( |
201 "CScpServiceHandlerBase[0x%x]::HandleSipProfileForcedDisable", this ); |
214 "CScpServiceHandlerBase[0x%x]::HandleSipProfileForcedDisable", this ); |
202 |
215 |
|
216 if ( aForceDisableSipProfile ) |
|
217 { |
|
218 CScpProfileHandler& profileHandler = iSubService.ProfileHandler(); |
|
219 |
|
220 CScpSipConnection* sipConnection = |
|
221 profileHandler.GetSipConnection( iSubService.SipProfileId() ); |
|
222 |
|
223 if ( sipConnection ) |
|
224 { |
|
225 sipConnection->ForceDisable(); |
|
226 } |
|
227 } |
|
228 |
203 HandleSipConnectionEvent( iSubService.SipProfileId(), EScpDeregistered ); |
229 HandleSipConnectionEvent( iSubService.SipProfileId(), EScpDeregistered ); |
204 } |
230 } |
205 |
231 |
206 // ----------------------------------------------------------------------------- |
232 // ----------------------------------------------------------------------------- |
207 // CScpServiceHandlerBase::ForceSipProfileDisable |
233 // CScpServiceHandlerBase::ForceSipProfileDisable |
212 SCPLOGSTRING( "CScpServiceHandlerBase::ForceSipProfileDisable" ); |
238 SCPLOGSTRING( "CScpServiceHandlerBase::ForceSipProfileDisable" ); |
213 |
239 |
214 CScpServiceHandlerBase* self = static_cast<CScpServiceHandlerBase*>( aSelf ); |
240 CScpServiceHandlerBase* self = static_cast<CScpServiceHandlerBase*>( aSelf ); |
215 |
241 |
216 self->CancelDisableTimer(); |
242 self->CancelDisableTimer(); |
217 self->HandleSipProfileForcedDisable(); |
243 self->HandleSipProfileForcedDisable( EFalse ); |
218 |
244 |
219 return 1; |
245 return 1; |
220 } |
246 } |
221 |
247 |
222 |
248 |