Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QDrmRights class describes the status and constraints associated with a permission for DRM protected content. More...
#include <QDrmRights>
The QDrmRights class describes the status and constraints associated with a permission for DRM protected content.
A drm rights object represents the rights associated with an item of content for a permission. It is composed of a permission, the current status of the rights, and a list of constraints imposed on the consumption of the content.
Synonym for QList< QDrmRights::Constraint >
Represents an action permission is being sought for.
Render permissions:
Constant | Value | Description |
---|---|---|
QDrmRights::Play | 0x0001 | Playback permission for media files. |
QDrmRights::Display | 0x0002 | Display permission for images and documents. |
QDrmRights::Execute | 0x0004 | Execute permission for applications. |
QDrmRights::Print | 0x0008 | Print permission for images and documents. |
QDrmRights::Export | 0x0010 | Export data to another DRM format. OMA DRM v2 only. Secondary permissions: |
QDrmRights::Distribute | 0x0020 | Move content to another device. |
QDrmRights::Preview | 0x0040 | Permission to render a preview version of the content. |
QDrmRights::Automated | 0x0080 | Content may be used in automated renderings such as ring tones. |
QDrmRights::BrowseContents | 0x0100 | Permission to browse the contents of a container. Additional states: |
QDrmRights::Unrestricted | 0x7F00 | Play | Display | Execute | Print | Export | Distribute | Preview | Automated | BrowseContents | Permission to open content for any use. This will never be granted for DRM protected content. |
QDrmRights::NoPermissions | 0x0000 | The content cannot be rendered with any permission or distributed. |
QDrmRights::InvalidPermission | 0x8000 | Uninitalized permission state. |
The Permissions type is a typedef for QFlags<Permission>. It stores an OR combination of Permission values.
Represents the status of the rights.
Constant | Value | Description |
---|---|---|
QDrmRights::Invalid | 0 | Indicates there are no valid rights associated with the content the rights were requested for. |
QDrmRights::Valid | 1 | Indicates the content the rights were requested for are valid and the content can be accessed. |
QDrmRights::ValidInFuture | 2 | Indicates there are rights associated with the content the rights were requested but they will not be valid until some later date. |
Constructs a QDrmRights object.
The inital status of the rights object is Unprotected.
Constructs a drm rights object with given permission, status and constraints.
Construct of copy of other.
Destroys a QDrmRights object.
Returns a list of constraints imposed by the rights.
Returns the permission rights information is available for.
Returns the status of the rights.
Returns a string representation of a DRM permission.
This is an overloaded member function, provided for convenience.
Returns a string representation of a DRM permission for a status.
Assigns the value of other to a QDrmRights object.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |