equal
deleted
inserted
replaced
431 else if( aReason == EPluginStartup ) |
431 else if( aReason == EPluginStartup ) |
432 { |
432 { |
433 TRAP_IGNORE( PublishL() ); |
433 TRAP_IGNORE( PublishL() ); |
434 TRAP_IGNORE( iData->SetStartupReasonL( KPluginStartup)); |
434 TRAP_IGNORE( iData->SetStartupReasonL( KPluginStartup)); |
435 } |
435 } |
|
436 |
|
437 // Listen for publisher registration to resend the events |
|
438 TRAP_IGNORE( iData->RegisterPublisherObserverL() ); |
436 } |
439 } |
437 |
440 |
438 // ---------------------------------------------------------------------------- |
441 // ---------------------------------------------------------------------------- |
439 // CSapiDataPlugin::Stop |
442 // CSapiDataPlugin::Stop |
440 // |
443 // |
614 |
617 |
615 // Configurations |
618 // Configurations |
616 iData->ConfigureL( configurationItemsArr ); |
619 iData->ConfigureL( configurationItemsArr ); |
617 |
620 |
618 iPluginState = ESuspend; |
621 iPluginState = ESuspend; |
|
622 |
|
623 // Listen the publisher content update |
|
624 iData->RegisterContentObserverL(); |
619 |
625 |
620 // Activate the publisher |
626 // Activate the publisher |
621 iData->ChangePublisherStatusL( KActive ); |
627 iData->ChangePublisherStatusL( KActive ); |
622 // Register for notifications |
|
623 iData->RegisterPublisherObserverL(); |
|
624 // Execute the active trigger |
628 // Execute the active trigger |
625 iData->TriggerActiveL(); |
629 iData->TriggerActiveL(); |
626 // There must be at least 1 milli second delay |
630 |
627 // to register the second observer as both are using the |
|
628 // same MLiwInterface object |
|
629 iData->RegisterContentObserverL(); |
|
630 } |
631 } |
631 |
632 |
632 contentItemsArr.Reset(); |
633 contentItemsArr.Reset(); |
633 configurationItemsArr.Reset(); |
634 configurationItemsArr.Reset(); |
634 |
635 |