CDRMHelperRightsConstraints Class Reference

#include <mw/DRMHelper.h>

Link against: drmhelper.lib

class CDRMHelperRightsConstraints : public CBase

Inherits from

  • CDRMHelperRightsConstraints

    Detailed Description

    Helper class for wrapping CDRMRightsConstraints.

    Since
    Series 60 2.1

    Constructor & Destructor Documentation

    ~CDRMHelperRightsConstraints ( )

    IMPORT_C~CDRMHelperRightsConstraints()

    Destructor.

    Member Function Documentation

    FullRights ( )

    IMPORT_C TBoolFullRights()

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

    Returns: ETrue if usage is unconstrained

    GetAccumulatedTimeL ( TTimeIntervalSeconds & )

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

    Returns: -

    GetCountersL ( TUint32 &, TUint32 & )

    IMPORT_C voidGetCountersL(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.

    Returns: -

    GetEndTimeL ( TTime & )

    IMPORT_C voidGetEndTimeL(TTime &aEndTime)

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

    Returns: -

    GetIntervalL ( TTimeIntervalSeconds & )

    IMPORT_C voidGetIntervalL(TTimeIntervalSeconds &aInterval)

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

    Returns: -

    GetIntervalStartL ( TTime & )

    IMPORT_C voidGetIntervalStartL(TTime &aStartTime)

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

    Returns: -

    GetStartTimeL ( TTime & )

    IMPORT_C voidGetStartTimeL(TTime &aStartTime)

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

    Returns: -

    GetTimedCountL ( TUint32 &, TUint32 &, TTimeIntervalSeconds & )

    IMPORT_C voidGetTimedCountL(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

    Returns: -

    IsPreview ( )

    IMPORT_C TBoolIsPreview()

    checks if the object contains only preview rights

    Returns: ETrue if object contains only preview rights

    NewL ( CDRMRightsConstraints * )

    Two-phased constructor.

    NewLC ( CDRMRightsConstraints * )

    CDRMHelperRightsConstraints *NewLC(CDRMRightsConstraints *aConstraints)[static]