omadrm/drmengine/legacy/src/DRMCommon.cpp
branchRCL_3
changeset 26 1221b68b8a5f
parent 16 457cd4423b8c
child 27 1481bf457703
equal deleted inserted replaced
25:50c53e893c3f 26:1221b68b8a5f
    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>
       
    25 #include <wspdecoder.h>
    24 #include <wspdecoder.h>
    26 #include <wspencoder.h>
    25 #include <wspencoder.h>
    27 
    26 
    28 #include <barsc.h>
    27 #include <barsc.h>
    29 #include <barsread.h>
    28 #include <barsread.h>
  1820 // DRMCommon::ConstructL
  1819 // DRMCommon::ConstructL
  1821 // Symbian 2nd phase constructor can leave.
  1820 // Symbian 2nd phase constructor can leave.
  1822 // -----------------------------------------------------------------------------
  1821 // -----------------------------------------------------------------------------
  1823 EXPORT_C void DRMCommon::ConstructL()
  1822 EXPORT_C void DRMCommon::ConstructL()
  1824     {
  1823     {
  1825     FeatureManager::InitializeLibL();
  1824     }
  1826     } 
       
  1827 
  1825 
  1828 // -----------------------------------------------------------------------------
  1826 // -----------------------------------------------------------------------------
  1829 // DRMCommon::NewL
  1827 // DRMCommon::NewL
  1830 // Two-phased constructor.
  1828 // Two-phased constructor.
  1831 // -----------------------------------------------------------------------------
  1829 // -----------------------------------------------------------------------------
  1840 
  1838 
  1841 
  1839 
  1842 // Destructor
  1840 // Destructor
  1843 EXPORT_C DRMCommon::~DRMCommon()
  1841 EXPORT_C DRMCommon::~DRMCommon()
  1844     {
  1842     {
  1845     FeatureManager::UnInitializeLib();
       
  1846     }
  1843     }
  1847 
  1844 
  1848 // -----------------------------------------------------------------------------
  1845 // -----------------------------------------------------------------------------
  1849 // DRMCommon::CheckContentRights
  1846 // DRMCommon::CheckContentRights
  1850 // Checks if the give rights for a specific content URI are available.
  1847 // Checks if the give rights for a specific content URI are available.
  2262         DRMCommon::EForwardLock |
  2259         DRMCommon::EForwardLock |
  2263         DRMCommon::ECombinedDelivery |
  2260         DRMCommon::ECombinedDelivery |
  2264         DRMCommon::ESeparateDelivery |
  2261         DRMCommon::ESeparateDelivery |
  2265         DRMCommon::ESuperDistribution;
  2262         DRMCommon::ESuperDistribution;
  2266 #ifdef __DRM_OMA2
  2263 #ifdef __DRM_OMA2
  2267     if ( FeatureManager::FeatureSupported( KFeatureIdFfOmadrm2Support ) )
  2264     aOMALevel = EOMA_2_0;
  2268         {
       
  2269         aOMALevel = EOMA_2_0;
       
  2270         }
       
  2271     else
       
  2272         {
       
  2273         aOMALevel = EOMA_1_0;
       
  2274         }
       
  2275     
       
  2276 #else
  2265 #else
  2277     aOMALevel = EOMA_1_0;
  2266     aOMALevel = EOMA_1_0;
  2278 #endif
  2267 #endif
  2279     return EOk;
  2268     return EOk;
  2280     }
  2269     }