CDRMHelperRightsConstraints Class Reference

class CDRMHelperRightsConstraints : public CBase

Helper class for wrapping CDRMRightsConstraints .

drmhelper.lib
Since
Series 60 2.1

Inherits from

  • CDRMHelperRightsConstraints

Constructor & Destructor Documentation

CDRMHelperRightsConstraints(CDRMRightsConstraints *)

CDRMHelperRightsConstraints ( CDRMRightsConstraints * aConstrains ) [private]

C++ default constructor.

Parameters

CDRMRightsConstraints * aConstrains

~CDRMHelperRightsConstraints()

IMPORT_C ~CDRMHelperRightsConstraints ( )

Destructor.

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

FullRights()

IMPORT_C TBool FullRights ( )

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

GetAccumulatedTimeL(TTimeIntervalSeconds &)

IMPORT_C void GetAccumulatedTimeL ( TTimeIntervalSeconds & aAccumulatedTime )
Gets accumulated time left. Leaves with KErrNotFound if object doesn't have accumulated time constraint.
Since
Series 60 3.0

Parameters

TTimeIntervalSeconds & aAccumulatedTime

GetCountersL(TUint32 &, TUint32 &)

IMPORT_C void GetCountersL ( TUint32 & aCounter,
TUint32 & aOriginalCounter
)

Gets number of counts left and number of original counts. Leaves with KErrNotFound if object doesn't have count based rights.

Parameters

TUint32 & aCounter
TUint32 & aOriginalCounter

GetEndTimeL(TTime &)

IMPORT_C void GetEndTimeL ( TTime & aEndTime )

Gets end time of time based rights. Leaves with KErrNotFound if object doesn't have time based rights.

Parameters

TTime & aEndTime

GetIntervalL(TTimeIntervalSeconds &)

IMPORT_C void GetIntervalL ( TTimeIntervalSeconds & aInterval )

Gets interval time constraint. Leaves with KErrNotFound if object doesn't have interval constraint.

Parameters

TTimeIntervalSeconds & aInterval

GetIntervalStartL(TTime &)

IMPORT_C void GetIntervalStartL ( TTime & aStartTime )

Gets start time of activated interval constraint. Leaves with KErrNotFound if interval has not been started yet.

Parameters

TTime & aStartTime

GetStartTimeL(TTime &)

IMPORT_C void GetStartTimeL ( TTime & aStartTime )

Gets start time of time based rights. Leaves with KErrNotFound if object doesn't have time based rights.

Parameters

TTime & aStartTime

GetTimedCountL(TUint32 &, TUint32 &, TTimeIntervalSeconds &)

IMPORT_C void GetTimedCountL ( TUint32 & aCounter,
TUint32 & aOriginalCounter,
TTimeIntervalSeconds & aTimer
)
Gets number of counts left, number of original counts and timer value for timed-count constraint. Leaves with KErrNotFound if object doesn't have timed-count constraint.
Since
Series 60 3.0

Parameters

TUint32 & aCounter
TUint32 & aOriginalCounter
TTimeIntervalSeconds & aTimer

IsPreview()

IMPORT_C TBool IsPreview ( )

checks if the object contains only preview rights

NewL(CDRMRightsConstraints *)

CDRMHelperRightsConstraints * NewL ( CDRMRightsConstraints * aConstraints ) [static]

Two-phased constructor.

Parameters

CDRMRightsConstraints * aConstraints

NewLC(CDRMRightsConstraints *)

CDRMHelperRightsConstraints * NewLC ( CDRMRightsConstraints * aConstraints ) [static]

Parameters

CDRMRightsConstraints * aConstraints

Member Data Documentation

CDRMRightsConstraints * iConstraints

CDRMRightsConstraints * iConstraints [private]