Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QDrmContentLicense Class Reference
[QtBaseModule]

The QDrmContentLicense class provides an interface for DRM agents to monitor the consumption of DRM content. More...

    #include <QDrmContentLicense>

Inherits QObject.

Public Functions

Public Slots

Signals

Additional Inherited Members


Detailed Description

The QDrmContentLicense class provides an interface for DRM agents to monitor the consumption of DRM content.

A DRM content license provides the interface through which a consuming application will notify a DRM agent of when consumption of an item of content begins, ends, and pauses.

Before opening a DRM protected file an application will request an instance of QDrmContentLicense from a DRM agent. If a license is sucessfully granted the application will attempt to open the file and begin making calls to QDrmContentLicense::renderStateChanged() reflecting the consumption of the content. If the content's rights expire while the content is being rendered the content license will emit the QDrmContentLicense::rightsExpired() signal.

Applications should not request a content license directly, instead licenses should be requested using QDrmContent.

See also QDrmContent and QDrmContentPlugin.


Member Function Documentation

QDrmContentLicense::QDrmContentLicense ()

Constructs a ContentLicense object for an item of DRM protected content.

QDrmContentLicense::~QDrmContentLicense ()   [virtual]

Destroys a QDrmContentLicense object. If the paired monitor is still consuming the content it is sent a message to release the content.

QContent QDrmContentLicense::content () const   [pure virtual]

Returns the content the license has been granted for.

QDrmRights::Permission QDrmContentLicense::permission () const   [pure virtual]

Returns the usage permission the license has been granted for.

QDrmContent::RenderState QDrmContentLicense::renderState () const   [pure virtual]

Returns the current render state of the content the license has been granted for.

See also renderStateChanged().

void QDrmContentLicense::renderStateChanged ( const QContent & content, QDrmContent::RenderState state )   [pure virtual slot]

Notifies the drm agent that the render state of content has changed to state and the rights should be updated accordingly.

See also renderState().

void QDrmContentLicense::rightsExpired ( const QContent & content, QDrmRights::Permission permission )   [signal]

Signals that the license to render content with the given permission has expired.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3