25 #include "sapidata.h" |
25 #include "sapidata.h" |
26 #include "sapidatapluginconst.h" |
26 #include "sapidatapluginconst.h" |
27 #include "sapidataobserver.h" |
27 #include "sapidataobserver.h" |
28 #include "sapidataplugin.h" |
28 #include "sapidataplugin.h" |
29 |
29 |
|
30 const TUint KDisableNotification = 0x2000; |
30 // ======== MEMBER FUNCTIONS ======== |
31 // ======== MEMBER FUNCTIONS ======== |
31 |
32 |
32 // --------------------------------------------------------------------------- |
33 // --------------------------------------------------------------------------- |
33 // Symbian 2nd phase constructor can leave |
34 // Symbian 2nd phase constructor can leave |
34 // --------------------------------------------------------------------------- |
35 // --------------------------------------------------------------------------- |
756 inParamList->Reset(); |
757 inParamList->Reset(); |
757 outParamList->Reset(); |
758 outParamList->Reset(); |
758 } |
759 } |
759 |
760 |
760 // --------------------------------------------------------------------------- |
761 // --------------------------------------------------------------------------- |
|
762 // TriggerActiveL |
|
763 // --------------------------------------------------------------------------- |
|
764 // |
|
765 void CSapiData::TriggerActiveL() |
|
766 { |
|
767 |
|
768 CLiwGenericParamList* inParamList = &iServiceHandler->InParamListL(); |
|
769 CLiwGenericParamList* outParamList = &iServiceHandler->OutParamListL(); |
|
770 |
|
771 TLiwGenericParam type( KType, TLiwVariant( KPubData ) ); |
|
772 inParamList->AppendL( type ); |
|
773 |
|
774 CLiwDefaultMap* filter = CreateFilterLC( KAll(), KAll() ); |
|
775 filter->InsertL(KActionTrigger, TLiwVariant( KActive() )); |
|
776 |
|
777 TLiwGenericParam item( KFilter, TLiwVariant( filter )); |
|
778 inParamList->AppendL( item ); |
|
779 if(iInterface) |
|
780 { |
|
781 iInterface->ExecuteCmdL( KExecuteAction, *inParamList, *outParamList, KDisableNotification ); |
|
782 } |
|
783 else |
|
784 { |
|
785 User::Leave( KErrNotSupported ); |
|
786 } |
|
787 CleanupStack::PopAndDestroy( filter ); |
|
788 inParamList->Reset(); |
|
789 outParamList->Reset(); |
|
790 } |
|
791 // --------------------------------------------------------------------------- |
761 // UpdatePublisherStatusL |
792 // UpdatePublisherStatusL |
762 // --------------------------------------------------------------------------- |
793 // --------------------------------------------------------------------------- |
763 // |
794 // |
764 void CSapiData::UpdatePublisherStatusL( TDesC& aPublisher ) |
795 void CSapiData::UpdatePublisherStatusL( TDesC& aPublisher ) |
765 { |
796 { |