QDrmContent Class Reference
|
Constant | Value | Description |
---|---|---|
QDrmContent::NoLicenseOptions | 0x00 | Do not display any notifications and set the inital render state to Stopped. |
QDrmContent::Activate | 0x01 | Attempt to activate content if it has no valid rights when requesting a license. |
QDrmContent::Reactivate | 0x02 | When a license is no longer valid or will soon be invalidated when released, prompt the user to reactivate the license. |
QDrmContent::Handover | 0x04 | Set the inital render state to Paused. This allows the updating of rights for a single use to be spread accross multiple licenses. |
QDrmContent::Default | Activate | Reactivate | Activate content with invalid rights when requesting or releasing a content license. |
The LicenseOptions type is a typedef for QFlags<LicenseOption>. It stores an OR combination of LicenseOption values.
Represents the current state of a render or usage of content.
Constant | Value | Description |
---|---|---|
QDrmContent::Started | 0 | Content is currently being rendered. The time in which the content is in this state counts towards any timed usage allowance. |
QDrmContent::Paused | 2 | Rendering of the content has started but been interrupted. Continuing the render will not count as an additional use and time does not count towards timed usage allowance. |
QDrmContent::Stopped | 1 | The content is not currently being rendered. Starting a render from this state is considered a use. |
Creates a new QDrmContent object for accessing content using the given permission and license options with the parent parent.
Destroys a QDrmContent object.
Initiates an attempt to retrieve rights for the given content.
Returns true if the content has a valid option for activating the content.
Content activation is typically performed asynchronously (i.e. opening a web page where the user may purchase rights.) so rights may not be available until some time after this method is called.
Any dialogs displayed will be parented off the given focus widget.
See also canActivate().
Returns true if options exist to activate the given content; otherwise returns false.
See also activate().
Returns the currently licensed QContent.
Disables the given license options.
See also licenseOptions(), setLicenseOptions(), and enableLicenseOptions().
Enables the given license options.
See also licenseOptions(), setLicenseOptions(), and disableLicenseOptions().
Returns the widget that parents any dialogs displayed when activating or reactivating content when requesting and releasing licenses.
See also setFocusWidget().
Returns a list of HTTP header name/value pairs web applications should use in requests to identify installed DRM agents
Signals that a call to QDrmContent::requestLicense() to request a license to render content failed.
See also requestLicense() and licenseGranted().
Signals that a call to QDrmContent::requestLicense() to request a license to render content succeeded.
See also requestLicense() and licenseDenied().
Returns the license options indicating how the user should be prompted if the content has invalid rights and the type of license that should be requested.
See also setLicenseOptions(), enableLicenseOptions(), and disableLicenseOptions().
Returns the default permission type or the permission type of the last requested license.
See also setPermission().
Releases the currently held content license. No further file access will be possible after this unless a new license is requested.
If the permissions have expired or are about to expire the user may be prompted to acquire new permissions, this prompt can be disabled by clearing the Reactivate license option using disableLicenseOptions().
Requesting a new license will automatically release a previously held one.
See also requestLicense().
Notifies the DRM agent that rendering of the content has been paused.
See also renderStarted() and renderStopped().
Notifies the DRM agent that rendering of the content has started.
See also renderStopped() and renderPaused().
Returns the current render state.
Signals that the render state of content has changed.
Notifies the DRM agent that rendering of the content has ended.
See also renderStarted() and renderPaused().
Requests a license to render DRM content using the currently assigned permission type.
If there are no current permissions to render the content the user will be prompted to acquire new permissions or informed that the content can not be rendered. If the permissions are valid or the user succeeds in acquiring new permissions the licenseGranted() signal will be emitted and true returned. If the permissions are invalid and user cannnot acquire new permissions, or must go through an external agent such as a web browser to acquire new permissions the licenseDenied() signal will be emitted and false returned.
Activatation can be turned off by clearing the Activate license option using disableLicenceOptions().
See also licenseGranted(), licenseDenied(), and permission().
Signals that the rights to content have expired.
Sets a widget that will parent any dialogs displayed when activating or reactivating content when requesting and releasing licenses.
See also focusWidget().
Sets the license options indicating how the user should be prompted if the content has invalid rights and the type of license that should be requested.
See also licenseOptions(), enableLicenseOptions(), and disableLicenseOptions().
Sets the default render permission.
This will only succeed if no license is currently held.
See also permission().
Returns a list of all supported DRM types. Applications should use this list when they need to advertise support for DRM types, for example HTTP accept headers.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtextended4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com