CDRMRightsConstraints Class Reference

class CDRMRightsConstraints : public CBase

CDRMRightsConstraints: Encapsulates rights constaints for a specific right.

DrmRights.dll
Since
2.5

Inherits from

  • CDRMRightsConstraints
Public Member Functions
~CDRMRightsConstraints(void)
IMPORT_C TBoolFullRights(void)
IMPORT_C TIntGetAccumulated(TTimeIntervalSeconds &)
IMPORT_C CDRMConstraint &GetConstraint(void)
IMPORT_C TIntGetConstraintInfo(TUint32 &, TUint32 &)
IMPORT_C TIntGetCounters(TUint32 &, TUint32 &)
IMPORT_C TIntGetEndTime(TTime &)
IMPORT_C TIntGetExpirationDetails(TTime &, TInt &)
IMPORT_C TIntGetInterval(TTimeIntervalSeconds &)
IMPORT_C TIntGetIntervalStart(TTime &)
IMPORT_C TIntGetStartTime(TTime &)
IMPORT_C TIntGetTimedCounters(TUint32 &, TUint32 &)
IMPORT_C TBoolIsPreview(void)
IMPORT_C CDRMRightsConstraints *NewL(void)
IMPORT_C voidSetConstraint(CDRMConstraint &)
IMPORT_C TIntSetCounters(TUint32, TUint32)
IMPORT_C TIntSetEndTime(TTime)
IMPORT_C TIntSetInterval(TTimeIntervalSeconds)
IMPORT_C TIntSetIntervalStart(TTime)
IMPORT_C TIntSetStartTime(TTime)
IMPORT_C CDRMRightsConstraints &operator=(CDRMRightsConstraints &)
Protected Member Functions
CDRMRightsConstraints(void)
IMPORT_C voidConstructL(void)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTConstraintPriority {
ENoConstraints = 8, ETime = 7, ETimeInterval = 6, ETimeIntervalCount = 5, ETimeCount = 4, EInterval = 3, EIntervalCount = 2, ECount = 1
}
Protected Attributes
CDRMConstraint *iConstraint

Constructor & Destructor Documentation

CDRMRightsConstraints(void)

IMPORT_CCDRMRightsConstraints(void)[protected]

Default constructor.

Parameters

void

~CDRMRightsConstraints(void)

IMPORT_C~CDRMRightsConstraints(void)[virtual]

Destructor.

Parameters

void

Member Functions Documentation

ConstructL(void)

IMPORT_C voidConstructL(void)[protected]

2nd phase constructor.

Parameters

void

FullRights(void)

IMPORT_C TBoolFullRights(void)

FullRights

The FullRights function checks if the object contains any restrictions or if usage is unconstrained.

Since
2.5

Parameters

void

GetAccumulated(TTimeIntervalSeconds &)

IMPORT_C TIntGetAccumulated(TTimeIntervalSeconds &anInterval)

GetAccumulated

This function returns accumulated time constraint

Since
3.0

Parameters

TTimeIntervalSeconds & anInterval

GetConstraint(void)

IMPORT_C CDRMConstraint &GetConstraint(void)
Since
3.0

Parameters

void

GetConstraintInfo(TUint32 &, TUint32 &)

IMPORT_C TIntGetConstraintInfo(TUint32 &aExpiration,
TUint32 &aConstType
)

GetConstraintInfo

The fucntion retunrs expiration and constraint details of the object

Since
2.5

Parameters

TUint32 & aExpiration
TUint32 & aConstType

GetCounters(TUint32 &, TUint32 &)

IMPORT_C TIntGetCounters(TUint32 &aCounter,
TUint32 &aOriginalCounter
)

GetCounters

This function returns the current value of the count restriction and original value of the count restriction(value when the rights object was added to the rights database)

Since
2.5

Parameters

TUint32 & aCounter
TUint32 & aOriginalCounter

GetEndTime(TTime &)

IMPORT_C TIntGetEndTime(TTime &aEndTime)

GetEndTime

This function returns the end time constraint.

Since
2.5

Parameters

TTime & aEndTime

GetExpirationDetails(TTime &, TInt &)

IMPORT_C TIntGetExpirationDetails(TTime &aEndTime,
TInt &aCountsLeft
)

GetExpirationDetails

The function returns the end time and amount of counts left of the object.

Since
2.5

Parameters

TTime & aEndTime
TInt & aCountsLeft

GetInterval(TTimeIntervalSeconds &)

IMPORT_C TIntGetInterval(TTimeIntervalSeconds &anInterval)

GetInterval

This function returns interval time constraint

Since
2.5

Parameters

TTimeIntervalSeconds & anInterval

GetIntervalStart(TTime &)

IMPORT_C TIntGetIntervalStart(TTime &aStartTime)

GetIntervalStart

This function returns the start time of an activated interval

Since
2.5

Parameters

TTime & aStartTime

GetStartTime(TTime &)

IMPORT_C TIntGetStartTime(TTime &aStartTime)

GetStartTime

This function returns the start time constraint.

Since
2.5

Parameters

TTime & aStartTime

GetTimedCounters(TUint32 &, TUint32 &)

IMPORT_C TIntGetTimedCounters(TUint32 &aCounter,
TUint32 &aOriginalCounter
)

GetTimedCounters

This function returns the current value of the timed count restriction and original value of the count restriction(value when the rights object was added to the rights database)

Since
3.0

Parameters

TUint32 & aCounter
TUint32 & aOriginalCounter

IsPreview(void)

IMPORT_C TBoolIsPreview(void)

IsPreview

The function checks if the object represents a preview constraint.

Since
2.5

Parameters

void

NewL(void)

IMPORT_C CDRMRightsConstraints *NewL(void)[static]

Two-phased constructor.

Parameters

void

SetConstraint(CDRMConstraint &)

IMPORT_C voidSetConstraint(CDRMConstraint &)
Since
3.0

Parameters

CDRMConstraint &

SetCounters(TUint32, TUint32)

IMPORT_C TIntSetCounters(TUint32aCounter,
TUint32aOriginalCounter
)

SetCounters

Sets the counter instance variables of the rights constraint

Since
2.5

Parameters

TUint32 aCounter
TUint32 aOriginalCounter

SetEndTime(TTime)

IMPORT_C TIntSetEndTime(TTimeaEndTime)

SetEndTime

Sets the end time constraint.

Since
2.5

Parameters

TTime aEndTime

SetInterval(TTimeIntervalSeconds)

IMPORT_C TIntSetInterval(TTimeIntervalSecondsanInterval)

SetInterval

Sets the interval time constraint

Since
2.5

Parameters

TTimeIntervalSeconds anInterval

SetIntervalStart(TTime)

IMPORT_C TIntSetIntervalStart(TTimeaStartTime)

SetIntervalStart

Sets the interval start time constraint

Since
2.5

Parameters

TTime aStartTime

SetStartTime(TTime)

IMPORT_C TIntSetStartTime(TTimeaStartTime)

SetStartTime

Sets the start time constraint.

Since
2.5

Parameters

TTime aStartTime

operator=(CDRMRightsConstraints &)

IMPORT_C CDRMRightsConstraints &operator=(CDRMRightsConstraints &aConstraint)

operator=

Assignment operator.

Since
2.5

Parameters

CDRMRightsConstraints & aConstraint

Member Enumerations Documentation

Enum TConstraintPriority

Enumerators

ENoConstraints = 8
ETime = 7
ETimeInterval = 6
ETimeIntervalCount = 5
ETimeCount = 4
EInterval = 3
EIntervalCount = 2
ECount = 1

Member Data Documentation

CDRMConstraint * iConstraint

CDRMConstraint *iConstraint[protected]