00001 /* 00002 * ============================================================================== 00003 * Name : drmlicensechecker.h 00004 * Part of : OMA DRM / DRM License Checker 00005 * Interface : SDK, DRM License Checker API 00006 * Description : DRM License Checker interface definition 00007 * Version : %version: 1 % << Don't touch! Updated by Synergy at check-out. 00008 * 00009 * Copyright (c) 2002 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. All rights are reserved. Copying, 00013 * including reproducing, storing, adapting or translating, any 00014 * or all of this material requires the prior written consent of 00015 * Nokia Corporation. This material also contains confidential 00016 * information which may not be disclosed to others without the 00017 * prior written consent of Nokia Corporation. 00018 * ============================================================================== 00019 */ 00020 00021 #ifndef DRMLICENSECHECKER_H 00022 #define DRMLICENSECHECKER_H 00023 00030 class CDRMLicenseChecker: public CBase 00031 { 00032 public: // Local enumerations and types 00033 00034 enum 00035 { 00036 ENoRights = -100000, 00037 ERightsExpired = -100001, 00038 }; 00039 00040 public: // Constructors and destructor 00041 00045 IMPORT_C static CDRMLicenseChecker* NewL(); 00046 00050 IMPORT_C virtual ~CDRMLicenseChecker(); 00051 00052 public: // New functions 00053 00069 IMPORT_C TInt CheckLicense( 00070 const TDesC& aDataFile, 00071 HBufC8*& aDataBuffer); 00072 00073 private: 00074 00078 CDRMLicenseChecker(); 00079 00083 void ConstructL(); 00084 00096 void CheckLicenseL( 00097 const TDesC& aDataFile, 00098 HBufC8*& aDataBuffer); 00099 00100 }; 00101 00102 #endif // DRMLICENSECHECKER_H 00103 00104 // End of File