220 // |
220 // |
221 void CLbtTriggerModifyAOOperation::CancelModifyOperation() |
221 void CLbtTriggerModifyAOOperation::CancelModifyOperation() |
222 { |
222 { |
223 FUNC_ENTER("CLbtTriggerModifyAOOperation::CancelModifyOperation"); |
223 FUNC_ENTER("CLbtTriggerModifyAOOperation::CancelModifyOperation"); |
224 Cancel(); |
224 Cancel(); |
225 |
225 |
226 if( iStatus.Int() == KLbtErrPartial ) |
226 // HandleOperationClosureL might leave either when it tries to unload strategy |
|
227 // or during notification. Nothing can be done when this happens. Hence it will |
|
228 // be ignored. |
|
229 if( iStatus.Int() == KLbtErrPartial ) |
227 { |
230 { |
228 LOG("Partial completion"); |
231 LOG("Partial completion"); |
229 iObserver.HandleOperationClosureL( this,KErrNone ); |
232 TRAP_IGNORE( iObserver.HandleOperationClosureL( this,KErrNone ) ); |
230 } |
233 } |
231 else |
234 else |
232 { |
235 { |
233 iObserver.HandleOperationClosureL( this,iStatus.Int() ); |
236 TRAP_IGNORE( iObserver.HandleOperationClosureL( this,iStatus.Int() ) ); |
234 } |
237 } |
235 } |
238 } |
236 |
239 |
237 // --------------------------------------------------------------------------- |
240 // --------------------------------------------------------------------------- |
238 // CLbtTriggerModifyAOOperation::GetTriggerId |
241 // CLbtTriggerModifyAOOperation::GetTriggerId |
311 CLbtTriggerFilterByAttribute* filter = |
314 CLbtTriggerFilterByAttribute* filter = |
312 CLbtTriggerFilterByAttribute::NewLC(); |
315 CLbtTriggerFilterByAttribute::NewLC(); |
313 filter->AddTriggerIdL( iTriggerId ); |
316 filter->AddTriggerIdL( iTriggerId ); |
314 options->SetFilter( filter ); |
317 options->SetFilter( filter ); |
315 CleanupStack::Pop(filter); |
318 CleanupStack::Pop(filter); |
316 // ToDo : if msg from LT client API then add SID filter as well. |
|
317 break; |
319 break; |
318 } |
320 } |
319 case ELbtDeleteTriggers: |
321 case ELbtDeleteTriggers: |
320 case ELbtSetTriggersState: |
322 case ELbtSetTriggersState: |
321 { |
323 { |
322 CLbtTriggerFilterBase* filter = |
324 CLbtTriggerFilterBase* filter = |
323 InternalizeFilterFromIpcLC( iMessage, KParamFilter ); |
325 InternalizeFilterFromIpcLC( iMessage, KParamFilter ); |
324 options->SetFilter( filter ); |
326 options->SetFilter( filter ); |
325 CleanupStack::Pop(filter); |
327 CleanupStack::Pop(filter); |
326 // ToDo : if msg from LT client API then add SID filter as well. |
328 break; |
327 break; |
|
328 } |
329 } |
329 } |
330 } |
330 |
331 |
331 containerOptions->SetListOptions( options ); |
332 containerOptions->SetListOptions( options ); |
332 CleanupStack::Pop( options ); |
333 CleanupStack::Pop( options ); |
510 // |
511 // |
511 void CLbtTriggerModifyAOOperation::HandleModifyTriggerStateOpL() |
512 void CLbtTriggerModifyAOOperation::HandleModifyTriggerStateOpL() |
512 { |
513 { |
513 FUNC_ENTER("CLbtTriggerModifyAOOperation::HandleModifyTriggerStateOpL"); |
514 FUNC_ENTER("CLbtTriggerModifyAOOperation::HandleModifyTriggerStateOpL"); |
514 CLbtTriggerFilterBase* filter = NULL; |
515 CLbtTriggerFilterBase* filter = NULL; |
|
516 // coverity[var_decl : FALSE] |
515 CLbtTriggerEntry::TLbtTriggerState triggerState; |
517 CLbtTriggerEntry::TLbtTriggerState triggerState; |
516 |
518 |
517 switch ( iFunction ) |
519 switch ( iFunction ) |
518 { |
520 { |
519 case ELbtSetTriggerState: |
521 case ELbtSetTriggerState: |