equal
deleted
inserted
replaced
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include <featmgr.h> |
|
21 #include <DRMRights.h> |
20 #include <DRMRights.h> |
22 #include <DRMRightsClient.h> |
21 #include <DRMRightsClient.h> |
23 // #include <GenericParam.h> // from S60 |
22 // #include <GenericParam.h> // from S60 |
24 #include "RoapEngBase.h" |
23 #include "RoapEngBase.h" |
25 #include "RoapHttpHandler.h" |
24 #include "RoapHttpHandler.h" |
49 delete iHttpHandler; |
48 delete iHttpHandler; |
50 delete iStoredRiContext; |
49 delete iStoredRiContext; |
51 iReturnedROs.ResetAndDestroy(); |
50 iReturnedROs.ResetAndDestroy(); |
52 delete iDomainRightsResp; |
51 delete iDomainRightsResp; |
53 delete iRiAlias; |
52 delete iRiAlias; |
54 |
|
55 FeatureManager::UnInitializeLib(); |
|
56 } |
53 } |
57 |
54 |
58 // --------------------------------------------------------- |
55 // --------------------------------------------------------- |
59 // CRoapEngBase::CRoapEngBase() |
56 // CRoapEngBase::CRoapEngBase() |
60 // --------------------------------------------------------- |
57 // --------------------------------------------------------- |
79 iAllowedToContactRi = EFalse; |
76 iAllowedToContactRi = EFalse; |
80 iUseRiContextUrl = EFalse; |
77 iUseRiContextUrl = EFalse; |
81 iImplicitJoinDomain = EFalse; |
78 iImplicitJoinDomain = EFalse; |
82 iReRegistered = EFalse; |
79 iReRegistered = EFalse; |
83 iRiAlias = NULL; |
80 iRiAlias = NULL; |
84 |
|
85 FeatureManager::InitializeLibL(); |
|
86 } |
81 } |
87 |
82 |
88 |
83 |
89 // --------------------------------------------------------- |
84 // --------------------------------------------------------- |
90 // CRoapEngBase::SetTriggerL() |
85 // CRoapEngBase::SetTriggerL() |
97 TDomainOperation& aDomainOperation, |
92 TDomainOperation& aDomainOperation, |
98 RPointerArray<HBufC8>& aContentIdList ) |
93 RPointerArray<HBufC8>& aContentIdList ) |
99 { |
94 { |
100 LOGLIT( "CRoapEngBase::SetTriggerL" ) |
95 LOGLIT( "CRoapEngBase::SetTriggerL" ) |
101 |
96 |
102 if ( !( FeatureManager::FeatureSupported( |
97 #ifndef __DRM_OMA2 |
103 KFeatureIdFfOmadrm2Support ) ) ) |
98 User::Leave(KErrNotSupported); |
104 { |
99 #endif |
105 User::Leave(KErrNotSupported); |
100 |
106 } |
|
107 |
|
108 __ASSERT_ALWAYS( iState == EInit || iState == EReady, \ |
101 __ASSERT_ALWAYS( iState == EInit || iState == EReady, \ |
109 User::Invariant() ); |
102 User::Invariant() ); |
110 TBool registered = EFalse; |
103 TBool registered = EFalse; |
111 TBool isValidDomainGeneration = ETrue; |
104 TBool isValidDomainGeneration = ETrue; |
112 TInt error = KErrNone; |
105 TInt error = KErrNone; |