CDRMLicenseChecker Class Reference

API published in: S60 2nd Ed FP 2

Link against: drmlicensechecker.lib

Capability Information

Required Capabilities

None


#include <drmlicensechecker.h>

Detailed Description

Check and decrypt protected data files encrypted by the license manager.

Public Types

enum   { ENoRights = -100000, ERightsExpired = -100001 }

Public Member Functions

virtual IMPORT_C  ~CDRMLicenseChecker ()
  Destructor.
IMPORT_C TInt  CheckLicense (const TDesC &aDataFile, HBufC8 *&aDataBuffer)
  This function performs a license check by decrypting a data file and returning the decrypted contents of the data file.

Static Public Member Functions

static IMPORT_C CDRMLicenseChecker NewL ()
  Two-phased constructor.

Member Enumeration Documentation

anonymous enum
 
Enumerator:
ENoRights 
ERightsExpired 

Constructor & Destructor Documentation

virtual IMPORT_C CDRMLicenseChecker::~CDRMLicenseChecker  )  [virtual]
 

Destructor.


Member Function Documentation

IMPORT_C TInt CDRMLicenseChecker::CheckLicense const TDesC &  aDataFile,
HBufC8 *&  aDataBuffer
 

This function performs a license check by decrypting a data file and returning the decrypted contents of the data file.

A license check can only succeed if a rights object associated with the calling application exists and sufficient rights are present. If the license check fails, an error is returned.

Parameters:
aDataFile,:  the data file to be decrypted
aDataBuffer,:  memory buffer which will contain the decrypted contents of the data file.
Returns:
ENoRights, ERightsExpired if the data file could not be opened because of insufficient rights, Symbian-wide error codes or KErrNone in case of success.
static IMPORT_C CDRMLicenseChecker* CDRMLicenseChecker::NewL  )  [static]
 

Two-phased constructor.


The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top