Home · All Classes · Annotated · Functions

QDrmRights Class Reference

#include <QDrmRights>

Public Types

Public Functions

Static Public Members


Detailed Description

Class describing the rights associated with an item of DRM protected content for a particular permission type.

Represents the content of a single rights object. If multiple rights objects are associated with an item of DRM protected content multiple instances of QDrmRights will be required to fully describe the complete rights.


Member Type Documentation

enum QDrmRights::Constraints

Flags representing the constraints enforced by a rights object.

ConstantValueDescription
QDrmRights::Unconstrained0x0000The are no constraints placed on the rendering of the content.
QDrmRights::Count0x0001Defines a limited number of uses.
QDrmRights::Interval0x0002Defines a limited interval of time over which the content may be rendered.
QDrmRights::IntervalStart0x0004Defines the date and time of the first use of interval limited content.
QDrmRights::IntervalEnd0x0008Defines the date and time at which an interval period will end.
QDrmRights::StartDateTime0x0010Defines a date and time before which the content cannot be rendered.
QDrmRights::EndDateTime0x0020Defines a date and time after which the content cannot be rendered.

enum QDrmRights::Status

Represents the status of the rights.

ConstantValueDescription
QDrmRights::Unprotected0Indicates the content the rights were requested for is not DRM protected.
QDrmRights::Invalid1Indicates there are no valid rights associated with the content the rights were requested for.
QDrmRights::Valid2Indicates the content the rights were requested for are valid and the content can be accessed.
QDrmRights::ValidInFuture3Indicates there are rights associated with the content the rights were requested but they will not be valid until some later date.


Member Function Documentation

QDrmRights::QDrmRights ()

Constructs a rights object.

QDrmRights::QDrmRights ( const QDrmRights & rights )

Constructs a copy of a rights object.

QDrmRights::~QDrmRights ()

Destroys a rights object.

QFlags<Constraints> QDrmRights::constraints () const

Returns flags describing the types of constraints enforced by the rights object.

uint QDrmRights::count () const

Returns the number of available count usages. This value is only valid if the Count type flag is set.

See also setCount().

QDateTime QDrmRights::endDateTime () const

Returns a date and time after which the rights are not valid. This value is only valid of the EndDateTime type flag is set.

See also setEndDateTime().

QDuration QDrmRights::intervalDuration () const

Returns the total allowed usage duration. This value is only valid if the Interval type flag is set.

See also setIntervalDuration().

QDateTime QDrmRights::intervalEnd () const

Returns the date and time interval limited rights will expire. This value is only valid if the IntervalStarted type flags are set.

QDateTime QDrmRights::intervalStart () const

Returns the date and time of the first use of interval limited rights. This value is only valid if the IntervalStarted type flags are set.

See also setIntervalStart().

void QDrmRights::setCount ( uint count )

Sets the number of available count usages. Setting this value will set the Count type flag.

See also count().

void QDrmRights::setEndDateTime ( const QDateTime & end )

Sets the end date and time after which the rights are not valid. Setting this value will set the EndDateTime type flag.

See also endDateTime().

void QDrmRights::setIntervalDuration ( const QDuration & duration )

Sets the total allowed usage duration. Setting this value will set the Interval type flag.

See also intervalDuration().

void QDrmRights::setIntervalStart ( const QDateTime & start )

Sets the start date and time after which the interval duration is counted.. Setting this value will set the IntervalStarted type flags and will only succeed if the Interval flag has already been set.

See also intervalStart().

void QDrmRights::setStartDateTime ( const QDateTime & start )

Sets the start date and time before which the rights are not valid. Setting this value will set the StartDateTime type flag.

See also startDateTime().

void QDrmRights::setStatus ( Status status )

Sets the status of the rights.

See also status().

QDateTime QDrmRights::startDateTime () const

Returns a date and time before which the rights are not valid. This value is only valid of the StartDateTime type flag is set.

See also setStartDateTime().

Status QDrmRights::status () const

Returns the status of the rights.

See also setStatus().

QString QDrmRights::toString ( Constraints constraint ) const

Returns a string describing the value of constraint in these rights.

QString QDrmRights::toString () const

This is an overloaded member function, provided for convenience.

Return a string describing these rights

QString QDrmRights::toString ( const QMap<QDrmContent::PermissionType, QDrmRights> & rights )   [static]

This is an overloaded member function, provided for convenience.

Creates a string describing rights.

QDrmRights & QDrmRights::operator= ( const QDrmRights & rights )

Assigns the rights of an other rights object to a rights object.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7