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

  • ContentAccess::CRightsInfo

Constructor & Destructor Documentation

CRightsInfo()

CRightsInfo()[private]

CRightsInfo(TInt, TRightsStatus)

CRightsInfo(TIntaRightsType,
TRightsStatusaRightsStatus
)[private]

Parameters

TInt aRightsType
TRightsStatus aRightsStatus

~CRightsInfo()

~CRightsInfo()[virtual]

Member Functions Documentation

ConstructL(const TDesC &, const TDesC &)

voidConstructL(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 voidExternalizeL(RWriteStream &aStream)const

Write this CRightsInfo object to a stream

Parameters

RWriteStream & aStreamThe stream

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)[private]

Parameters

RReadStream & aStream

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

IMPORT_C CRightsInfo *NewL(const TDesC &aDescription,
const TDesC &aUniqueId,
TIntaRightsTypeMask,
TRightsStatusaRightsStatus
)[static]

Construct a new CRightsInfo

Parameters

const TDesC & aDescriptionA generic text description of the rights supplied by the agent "Content XYZ Expiry date mm/dd/yy" etc
const TDesC & aUniqueIdA uniqueId used to refer to this particular rights object within the agent it came from
TInt aRightsTypeMaskA bitmask of TRightsType entries applicable to this rights object
TRightsStatus aRightsStatusThe 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 TRightsStatusRightsStatus()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 TIntRightsType()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]