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_C CDRMConstraint ( ) [protected]

CDRMConstraint(const CDRMConstraint &)

CDRMConstraint ( const CDRMConstraint & aConstraint ) [private]

Copy constructor.

Parameters

const CDRMConstraint & aConstraint

~CDRMConstraint()

IMPORT_C ~CDRMConstraint ( ) [virtual]

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

2nd phase constructor

Consume(const TTime &)

IMPORT_C void Consume ( const TTime & aCurrentTime )

Consume

Consumes rights

Since
3.0

Parameters

const TTime & aCurrentTime : The current secure time

DuplicateL(const CDRMConstraint &)

IMPORT_C void DuplicateL ( 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 TBool Expired ( 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 void ExternalizeL ( 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 void InternalizeL ( 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 void Merge ( 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 &)

void ReadInt64L ( 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 TInt Size ( ) const

Size

returns the size of the externalized object

Since
3.0

Stateful()

IMPORT_C TBool Stateful ( ) const

Stateful

The function checks if the constraint is stateful

Since
3.0

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

IMPORT_C TBool Valid ( 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 &)

void WriteInt64L ( 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