CDRMLicenseChecker Class Reference

#include <mw/DRMLicenseChecker.h>

Link against: DRMLicenseChecker.lib

class CDRMLicenseChecker : public CBase

Inherits from

  • CDRMLicenseChecker

    Detailed Description

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

    Since
    Series 60 2.5

    Member Enumeration Documentation

    Enum anonymous

    EnumeratorValueDescription
    ENoRights-100000
    ERightsExpired-100001

    Constructor & Destructor Documentation

    ~CDRMLicenseChecker ( )

    IMPORT_C~CDRMLicenseChecker()[virtual]

    Destructor.

    Member Function Documentation

    CheckLicense ( const TDesC &, HBufC8 *& )

    IMPORT_C TIntCheckLicense(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.

    Since
    Series 60 2.6

    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.

    NewL ( )

    IMPORT_C CDRMLicenseChecker *NewL()[static]

    Two-phased constructor.