ContentAccess::CRightsInfo Class Reference

class ContentAccess::CRightsInfo : public CBase

Rights class to store a summary description of the rights and a unique reference to the rights object within an Agent

Inherits from

Constructor & Destructor Documentation

CRightsInfo()

CRightsInfo ( ) [private]

CRightsInfo(TInt, TRightsStatus)

CRightsInfo ( TInt aRightsType,
TRightsStatus aRightsStatus
) [private]

Parameters

TInt aRightsType
TRightsStatus aRightsStatus

~CRightsInfo()

~CRightsInfo ( ) [virtual]

Member Functions Documentation

ConstructL(const TDesC &, const TDesC &)

void ConstructL ( const TDesC & aDescription,
const TDesC & aUniqueId
) [private]

Parameters

const TDesC & aDescription
const TDesC & aUniqueId

Description()

IMPORT_C const TDesC & Description ( ) const
returns a string describing the rights object
capability
DRM Access to DRM rights is not permitted for processes without DRM capability.

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const

Write this CRightsInfo object to a stream

Parameters

RWriteStream & aStream The stream

InternalizeL(RReadStream &)

void InternalizeL ( RReadStream & aStream ) [private]

Parameters

RReadStream & aStream

NewL(const TDesC &, const TDesC &, TInt, TRightsStatus)

IMPORT_C CRightsInfo * NewL ( const TDesC & aDescription,
const TDesC & aUniqueId,
TInt aRightsTypeMask,
TRightsStatus aRightsStatus
) [static]

Construct a new CRightsInfo

Parameters

const TDesC & aDescription A generic text description of the rights supplied by the agent "Content XYZ Expiry date mm/dd/yy" etc
const TDesC & aUniqueId A uniqueId used to refer to this particular rights object within the agent it came from
TInt aRightsTypeMask A bitmask of TRightsType entries applicable to this rights object
TRightsStatus aRightsStatus The current status of this rights object

NewL(RReadStream &)

IMPORT_C CRightsInfo * NewL ( RReadStream & aStream ) [static]

Construct a new CRightsInfo from a stream

Parameters

RReadStream & aStream

RightsStatus()

IMPORT_C TRightsStatus RightsStatus ( ) const

The state of the rights

ContentAccess::TRightsStatus
capability
DRM Access to DRM rights is not permitted for processes without DRM capability.

RightsType()

IMPORT_C TInt RightsType ( ) const

Returns a bit mask of TRightsTypeMask flags. A rights object can be stateless and/or consumable

ContentAccess::TRightsTypeMask
capability
DRM Access to DRM rights is not permitted for processes without DRM capability.

UniqueId()

IMPORT_C const TDesC & UniqueId ( ) const
returns a string with a unique Id used to identify a particular rights object
capability
DRM Access to DRM rights is not permitted for processes without DRM capability.

Member Data Documentation

HBufC * iDescription

HBufC * iDescription [private]

TRightsStatus iRightsStatus

TRightsStatus iRightsStatus [private]

TInt iRightsType

TInt iRightsType [private]

HBufC * iUniqueId

HBufC * iUniqueId [private]