CDRMConstraint Class Reference

class CDRMConstraint : public CBase

CDRMConstraint implements a constraint for OMA DRM usage

DrmRights.dll
Since
S60 3.0

Inherits from

Nested Classes and Structures

Constructor & Destructor Documentation

CDRMConstraint()

IMPORT_CCDRMConstraint()[protected]

CDRMConstraint(const CDRMConstraint &)

CDRMConstraint(const CDRMConstraint &aConstraint)[private]

Copy constructor.

Parameters

const CDRMConstraint & aConstraint

~CDRMConstraint()

IMPORT_C~CDRMConstraint()[virtual]

Member Functions Documentation

ConstructL()

voidConstructL()[private]

2nd phase constructor

Consume(const TTime &)

IMPORT_C voidConsume(const TTime &aCurrentTime)

Consume

Consumes rights

Since
3.0

Parameters

const TTime & aCurrentTime: The current secure time

DuplicateL(const CDRMConstraint &)

IMPORT_C voidDuplicateL(const CDRMConstraint &aConstraint)

DuplicateL

copies all data from the given constraint to the current one

Since
3.0

Parameters

const CDRMConstraint & aConstraint: the constraint to copy from

Expired(const TTime &)

IMPORT_C TBoolExpired(const TTime &aTime)const

Expired

returns a boolean valua about the validity of the constraint Future rights are considered not be be expired and EFalse is returned for them

Since
3.0

Parameters

const TTime & aTime: current secure time, if the time is Time::NullTTime() time based constraints will not be considered to be expised and EFalse is returned for them

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

ExternalizeL

Writes the data of the object into the stream

Since
3.0

Parameters

RWriteStream & aStream: the output stream to write to

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

InternalizeL

Reads the data of the object from the stream

Since
3.0

Parameters

RReadStream & aStream: the output stream to write to

Merge(const CDRMConstraint &)

IMPORT_C voidMerge(const CDRMConstraint &aConstraint)

Merge

Merges the two constraints

Since
3.0

Parameters

const CDRMConstraint & aConstraint: the constraint merged to this one

NewL()

IMPORT_C CDRMConstraint *NewL()[static]

NewL

Creates a new CDRMConstraint object and returns a pointer to it.

Since
3.0

NewLC()

IMPORT_C CDRMConstraint *NewLC()[static]

NewLC

Creates a new CDRMConstraint object and returns a pointer to it. The function leaves the object to the cleanup stack.

Since
3.0

ReadInt64L(TInt64 &, RReadStream &)

voidReadInt64L(TInt64 &aRead,
RReadStream &aStream
)[private]

ReadInt64L

Reads the 64 bit integer from the stream

Since
3.0

Parameters

TInt64 & aRead: the 64 bit integer read
RReadStream & aStream: the output stream to write to

Size()

IMPORT_C TIntSize()const

Size

returns the size of the externalized object

Since
3.0

Stateful()

IMPORT_C TBoolStateful()const

Stateful

The function checks if the constraint is stateful

Since
3.0

Valid(const TTime &, const RPointerArray< HBufC8 > &, TUint32 &)

IMPORT_C TBoolValid(const TTime &aTime,
const RPointerArray< HBufC8 > &aIndividual,
TUint32 &aRejection
)const

Valid

returns if the constraint is valid/usable at this time

Since
3.0

Parameters

const TTime & aTime: current secure time, if the time is Time::NullTTime() time based constraints will be considered to be invalid
const RPointerArray< HBufC8 > & aIndividual: the imsi of the phone
TUint32 & aRejection: return value for why the content was rejected

WriteInt64L(const TInt64 &, RWriteStream &)

voidWriteInt64L(const TInt64 &aWrite,
RWriteStream &aStream
)const [private]

WriteInt64L

Writes the 64 bit integer to the stream

Since
3.0

Parameters

const TInt64 & aWrite: the 64 bit integer to write
RWriteStream & aStream: the output stream to write to

Member Data Documentation

TTimeIntervalSeconds iAccumulatedTime

TTimeIntervalSeconds iAccumulatedTime

TUint32 iActiveConstraints

TUint32 iActiveConstraints

TDRMCounter iCounter

TDRMCounter iCounter

TDrmMeteringInfo * iDrmMeteringInfo

TDrmMeteringInfo *iDrmMeteringInfo

TTime iEndTime

TTime iEndTime

RPointerArray< HBufC8 > iIndividual

RPointerArray< HBufC8 >iIndividual

TTimeIntervalSeconds iInterval

TTimeIntervalSeconds iInterval

TTime iIntervalStart

TTime iIntervalStart

TDRMCounter iOriginalCounter

TDRMCounter iOriginalCounter

TDRMCounter iOriginalTimedCounter

TDRMCounter iOriginalTimedCounter

TUid iSecureId

TUid iSecureId

TTime iStartTime

TTime iStartTime

TInt32 iSyncMark

TInt32 iSyncMark

RPointerArray< HBufC8 > iSystem

RPointerArray< HBufC8 >iSystem

TDRMCounter iTimedCounter

TDRMCounter iTimedCounter

TTimeIntervalSeconds iTimedInterval

TTimeIntervalSeconds iTimedInterval

TUid iVendorId

TUid iVendorId

TInt32 iVersion

TInt32 iVersion