equal
deleted
inserted
replaced
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 |
20 |
21 #include <f32file.h> |
21 #include <f32file.h> |
22 #include <s32file.h> |
22 #include <s32file.h> |
23 #include <apmstd.h> |
23 #include <apmstd.h> |
|
24 #include <featmgr.h> |
24 #include <wspdecoder.h> |
25 #include <wspdecoder.h> |
25 #include <wspencoder.h> |
26 #include <wspencoder.h> |
26 |
27 |
27 #include <barsc.h> |
28 #include <barsc.h> |
28 #include <barsread.h> |
29 #include <barsread.h> |
1819 // DRMCommon::ConstructL |
1820 // DRMCommon::ConstructL |
1820 // Symbian 2nd phase constructor can leave. |
1821 // Symbian 2nd phase constructor can leave. |
1821 // ----------------------------------------------------------------------------- |
1822 // ----------------------------------------------------------------------------- |
1822 EXPORT_C void DRMCommon::ConstructL() |
1823 EXPORT_C void DRMCommon::ConstructL() |
1823 { |
1824 { |
1824 } |
1825 FeatureManager::InitializeLibL(); |
|
1826 } |
1825 |
1827 |
1826 // ----------------------------------------------------------------------------- |
1828 // ----------------------------------------------------------------------------- |
1827 // DRMCommon::NewL |
1829 // DRMCommon::NewL |
1828 // Two-phased constructor. |
1830 // Two-phased constructor. |
1829 // ----------------------------------------------------------------------------- |
1831 // ----------------------------------------------------------------------------- |
1838 |
1840 |
1839 |
1841 |
1840 // Destructor |
1842 // Destructor |
1841 EXPORT_C DRMCommon::~DRMCommon() |
1843 EXPORT_C DRMCommon::~DRMCommon() |
1842 { |
1844 { |
|
1845 FeatureManager::UnInitializeLib(); |
1843 } |
1846 } |
1844 |
1847 |
1845 // ----------------------------------------------------------------------------- |
1848 // ----------------------------------------------------------------------------- |
1846 // DRMCommon::CheckContentRights |
1849 // DRMCommon::CheckContentRights |
1847 // Checks if the give rights for a specific content URI are available. |
1850 // Checks if the give rights for a specific content URI are available. |
2259 DRMCommon::EForwardLock | |
2262 DRMCommon::EForwardLock | |
2260 DRMCommon::ECombinedDelivery | |
2263 DRMCommon::ECombinedDelivery | |
2261 DRMCommon::ESeparateDelivery | |
2264 DRMCommon::ESeparateDelivery | |
2262 DRMCommon::ESuperDistribution; |
2265 DRMCommon::ESuperDistribution; |
2263 #ifdef __DRM_OMA2 |
2266 #ifdef __DRM_OMA2 |
2264 aOMALevel = EOMA_2_0; |
2267 if ( FeatureManager::FeatureSupported( KFeatureIdFfOmadrm2Support ) ) |
|
2268 { |
|
2269 aOMALevel = EOMA_2_0; |
|
2270 } |
|
2271 else |
|
2272 { |
|
2273 aOMALevel = EOMA_1_0; |
|
2274 } |
|
2275 |
2265 #else |
2276 #else |
2266 aOMALevel = EOMA_1_0; |
2277 aOMALevel = EOMA_1_0; |
2267 #endif |
2278 #endif |
2268 return EOk; |
2279 return EOk; |
2269 } |
2280 } |