| Home · All Classes · Annotated · Functions |
#include <QDrmRights>
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.
Flags representing the constraints enforced by a rights object.
| Constant | Value | Description |
|---|---|---|
| QDrmRights::Unconstrained | 0x0000 | The are no constraints placed on the rendering of the content. |
| QDrmRights::Count | 0x0001 | Defines a limited number of uses. |
| QDrmRights::Interval | 0x0002 | Defines a limited interval of time over which the content may be rendered. |
| QDrmRights::IntervalStart | 0x0004 | Defines the date and time of the first use of interval limited content. |
| QDrmRights::IntervalEnd | 0x0008 | Defines the date and time at which an interval period will end. |
| QDrmRights::StartDateTime | 0x0010 | Defines a date and time before which the content cannot be rendered. |
| QDrmRights::EndDateTime | 0x0020 | Defines a date and time after which the content cannot be rendered. |
Represents the status of the rights.
| Constant | Value | Description |
|---|---|---|
| QDrmRights::Unprotected | 0 | Indicates the content the rights were requested for is not DRM protected. |
| QDrmRights::Invalid | 1 | Indicates there are no valid rights associated with the content the rights were requested for. |
| QDrmRights::Valid | 2 | Indicates the content the rights were requested for are valid and the content can be accessed. |
| QDrmRights::ValidInFuture | 3 | Indicates there are rights associated with the content the rights were requested but they will not be valid until some later date. |
Constructs a rights object.
Constructs a copy of a rights object.
Destroys a rights object.
Returns flags describing the types of constraints enforced by the rights object.
Returns the number of available count usages. This value is only valid if the Count type flag is set.
See also setCount().
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().
Returns the total allowed usage duration. This value is only valid if the Interval type flag is set.
See also setIntervalDuration().
Returns the date and time interval limited rights will expire. This value is only valid if the IntervalStarted type flags are set.
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().
Sets the number of available count usages. Setting this value will set the Count type flag.
See also count().
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().
Sets the total allowed usage duration. Setting this value will set the Interval type flag.
See also intervalDuration().
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().
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().
Sets the status of the rights.
See also status().
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().
Returns the status of the rights.
See also setStatus().
Returns a string describing the value of constraint in these rights.
This is an overloaded member function, provided for convenience.
Return a string describing these rights
This is an overloaded member function, provided for convenience.
Creates a string describing rights.
Assigns the rights of an other rights object to a rights object.
| Copyright © 2006 Trolltech | Trademarks | Qtopia 4.1.7 |