equal
deleted
inserted
replaced
35 #include "liwtlsdata.h" |
35 #include "liwtlsdata.h" |
36 #include "data_caging_path_literals.hrh" |
36 #include "data_caging_path_literals.hrh" |
37 |
37 |
38 #include "liwxmlhandler.h" |
38 #include "liwxmlhandler.h" |
39 #include "liwservicedata.h" |
39 #include "liwservicedata.h" |
40 |
40 #include <e32property.h> |
41 #include <rtsecmgrscriptsession.h> |
41 #include <rtsecmgrscriptsession.h> |
42 |
42 |
43 // CONSTANTS |
43 // CONSTANTS |
44 // Max number of empty menu resource slots. |
44 // Max number of empty menu resource slots. |
45 const TInt KMaxMenuResources = 16; |
45 const TInt KMaxMenuResources = 16; |
51 // The range reserved for individual menu pane. |
51 // The range reserved for individual menu pane. |
52 const TInt KIndividualMenuPaneIdRange = 10000; |
52 const TInt KIndividualMenuPaneIdRange = 10000; |
53 |
53 |
54 // The whole range that is reserved to all menu panes. Currently value is 170 000. |
54 // The whole range that is reserved to all menu panes. Currently value is 170 000. |
55 const TInt KMenuPaneCommandRange = (KMaxMenuResources + 1) * KIndividualMenuPaneIdRange; |
55 const TInt KMenuPaneCommandRange = (KMaxMenuResources + 1) * KIndividualMenuPaneIdRange; |
|
56 |
|
57 const TUid KMyPropertyCat = { 0x10282822 }; |
|
58 |
|
59 enum TMyPropertyKeys { EMyPropertyState = 115, EMyPropertyFinalState = 116}; |
56 |
60 |
57 _LIT(KLiwResourceFile, "liwServiceHandler.rsc"); |
61 _LIT(KLiwResourceFile, "liwServiceHandler.rsc"); |
58 _LIT(KLiwZDrive, "z:"); |
62 _LIT(KLiwZDrive, "z:"); |
59 _LIT8(KDataSeparator, "||"); |
63 _LIT8(KDataSeparator, "||"); |
60 _LIT(KPerExtension,".per"); |
64 _LIT(KPerExtension,".per"); |
423 |
427 |
424 |
428 |
425 TInt CLiwServiceHandlerImpl::AttachL(const RCriteriaArray& aInterest) |
429 TInt CLiwServiceHandlerImpl::AttachL(const RCriteriaArray& aInterest) |
426 { |
430 { |
427 return (this->AttachL(aInterest,NULL)); |
431 return (this->AttachL(aInterest,NULL)); |
|
432 } |
|
433 |
|
434 TInt CLiwServiceHandlerImpl::AttachL(const RCriteriaArray& aInterest,CRTSecMgrScriptSession* aSecMgrScriptSession,TInt aWidgetId) |
|
435 { |
|
436 iWidgetId = aWidgetId; |
|
437 return (this->AttachL(aInterest,aSecMgrScriptSession)); |
428 } |
438 } |
429 |
439 |
430 TInt CLiwServiceHandlerImpl::AttachL(const RCriteriaArray& aInterest ,CRTSecMgrScriptSession* aSecMgrScriptSession) |
440 TInt CLiwServiceHandlerImpl::AttachL(const RCriteriaArray& aInterest ,CRTSecMgrScriptSession* aSecMgrScriptSession) |
431 { |
441 { |
432 RCriteriaArray interest, filtered; |
442 RCriteriaArray interest, filtered; |
2855 |
2865 |
2856 if(aScriptSession) |
2866 if(aScriptSession) |
2857 { |
2867 { |
2858 if(aScriptSession->PromptOption() == RTPROMPTUI_PROVIDER) |
2868 if(aScriptSession->PromptOption() == RTPROMPTUI_PROVIDER) |
2859 { |
2869 { |
2860 GetProviderResourceFile(provResourcePath, pServiceData->GetMetaData()); |
2870 GetProviderResourceFile(provResourcePath, pServiceData->GetMetaData()); |
2861 isAllowed = aScriptSession->IsAllowed(provCaps, pChosenImpl->ImplementationUid(), provResourcePath); |
2871 RProperty::Set( KMyPropertyCat, EMyPropertyState , iWidgetId ); |
2862 } |
2872 isAllowed = aScriptSession->IsAllowed(provCaps, pChosenImpl->ImplementationUid(), provResourcePath); |
|
2873 RProperty::Set( KMyPropertyCat, EMyPropertyFinalState , iWidgetId ); |
|
2874 } |
2863 else |
2875 else |
|
2876 { |
|
2877 RProperty::Set( KMyPropertyCat, EMyPropertyState , iWidgetId ); |
2864 isAllowed = aScriptSession->IsAllowed(provCaps); |
2878 isAllowed = aScriptSession->IsAllowed(provCaps); |
|
2879 RProperty::Set( KMyPropertyCat, EMyPropertyFinalState , iWidgetId ); |
|
2880 } |
2865 } |
2881 } |
2866 |
2882 |
2867 if(KErrNone==isAllowed) |
2883 if(KErrNone==isAllowed) |
2868 { |
2884 { |
2869 CLiwServiceIfBase* iface = iEcomMonitor->CreateImplementationL( |
2885 CLiwServiceIfBase* iface = iEcomMonitor->CreateImplementationL( |