44 // caf |
44 // caf |
45 #include <caf/data.h> |
45 #include <caf/data.h> |
46 #include <caf/caftypes.h> |
46 #include <caf/caftypes.h> |
47 |
47 |
48 // launching embedded details view |
48 // launching embedded details view |
49 #include <aknlaunchappservice.h> |
49 #include <AknLaunchAppService.h> |
50 #include <aiwgenericparam.h> |
50 #include <AiwGenericParam.h> |
51 #include <apgcli.h> |
51 #include <apgcli.h> |
52 |
52 |
53 // character conversions |
53 // character conversions |
54 #include <utf.h> |
54 #include <utf.h> |
55 |
55 |
59 // resources |
59 // resources |
60 #include <data_caging_path_literals.hrh> |
60 #include <data_caging_path_literals.hrh> |
61 #include <drmutility.rsg> |
61 #include <drmutility.rsg> |
62 |
62 |
63 // drm |
63 // drm |
64 #include <oma2agent.h> |
64 #include <Oma2Agent.h> |
65 #include <drmagents.h> |
65 #include <drmagents.h> |
66 #include <drmpermission.h> |
66 #include <DrmPermission.h> |
67 #include <drmconstraint.h> |
67 #include <DrmConstraint.h> |
68 #include <drmrightsclient.h> |
68 #include <DRMRightsClient.h> |
69 #include <drmutility.h> |
69 #include <drmutility.h> |
70 #include <drmutilitytypes.h> |
70 #include <drmutilitytypes.h> |
71 #include <drmasyncobserver.h> |
71 #include <drmasyncobserver.h> |
72 #include <drmhandleerrorobserver.h> |
72 #include <drmhandleerrorobserver.h> |
73 |
73 |
75 #include <e32debug.h> |
75 #include <e32debug.h> |
76 #endif |
76 #endif |
77 |
77 |
78 #include "drmutilitycommon.h" |
78 #include "drmutilitycommon.h" |
79 #include "drmutilityui.h" |
79 #include "drmutilityui.h" |
80 #include "drmuihandlingimpl.h" |
80 #include "DrmUiHandlingImpl.h" |
81 #include "drmuihandlingdata.h" |
81 #include "drmuihandlingdata.h" |
82 #include "drmutilitydownloadmanager.h" |
82 #include "DrmUtilityDownloadManager.h" |
83 #include "drmutilityinternaltypes.h" |
83 #include "drmutilityinternaltypes.h" |
84 #include "drmuicheckrightsobserver.h" |
84 #include "drmuicheckrightsobserver.h" |
85 #include "drmutilitywmdrm.h" |
85 #include "drmutilitywmdrm.h" |
86 #include "drmutilitywmdrmwrapper.h" |
86 #include "drmutilitywmdrmwrapper.h" |
87 |
87 |
88 #include "roapstorageclient.h" |
88 #include "RoapStorageClient.h" |
89 #include "drmtypes.h" |
89 #include "DRMTypes.h" |
90 #include "drmsettingsplugininternalcrkeys.h" |
90 #include "drmsettingsplugininternalcrkeys.h" |
91 #include "drmricontext.h" |
91 #include "DRMRIContext.h" |
92 #include "drmdomaincontext.h" |
92 #include "DRMDomainContext.h" |
93 |
93 |
94 #include "drmutilityinternalcrkeys.h" // Cenrep extension for OmaBased |
94 #include "DrmUtilityInternalcrkeys.h" // Cenrep extension for OmaBased |
95 |
95 |
96 // CONSTANTS |
96 // CONSTANTS |
97 const TInt KCommandHandleErrorFile( 1 ); |
97 const TInt KCommandHandleErrorFile( 1 ); |
98 const TInt KCommandHandleErrorData( 2 ); |
98 const TInt KCommandHandleErrorData( 2 ); |
99 const TInt KCommandCheckRightsAmountFile( 3 ); |
99 const TInt KCommandCheckRightsAmountFile( 3 ); |
1610 // valid rights |
1610 // valid rights |
1611 if ( !omaError ) |
1611 if ( !omaError ) |
1612 { |
1612 { |
1613 permission = iOmaClient.GetActiveRightsL( aIntent, *aContentUri, |
1613 permission = iOmaClient.GetActiveRightsL( aIntent, *aContentUri, |
1614 reason ); |
1614 reason ); |
1615 |
1615 |
1616 if( !permission ) |
1616 if( !permission ) |
1617 { |
1617 { |
1618 User::Leave( KErrCANoPermission); //coverity check |
1618 User::Leave( KErrCANoPermission); //coverity check |
1619 } |
1619 } |
1620 |
1620 |
1621 CleanupStack::PushL( permission ); |
1621 CleanupStack::PushL( permission ); |
1622 |
1622 |
1623 toplevel = permission->TopLevelConstraint(); |
1623 toplevel = permission->TopLevelConstraint(); |
1624 constraint = permission->ConstraintForIntent( aIntent ); |
1624 constraint = permission->ConstraintForIntent( aIntent ); |
1625 |
1625 |