Home · All Classes · Annotated · Functions

QDrmContentLicence Class Reference

#include <QDrmContentLicence>

Inherits QObject.

Public Functions

Public Slots

Signals

Additional Inherited Members


Detailed Description

Manages access to a single item of drm protected content. Creating an instance of ContentLicence for a drm protected file allows that file to be accessed using the Qt file access API for the lifetime of the ContentLicence. When rendering protected content the ContentLicence should be updated with the usage infomation by calling renderStateChanged, and terminate rendering if the rightsExpired signal is emitted. When access to the file is no longer required release should be called to prevent further file access calls being allowed and to schedule the ContentLicence for deletion.

Applications should not use a ContentLicence directly, instead access should be requested using an instance of QDrmContent.


Member Function Documentation

QDrmContentLicence::QDrmContentLicence ( QObject * parent = 0 )

Constructs a ContentLicence object for an item of DRM protected content with parent

QDrmContentLicence::~QDrmContentLicence ()   [virtual]

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

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

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

void QDrmContentLicence::rightsExpired ( QContentId cId, QDrmContent::PermissionType permission )   [signal]

Signals that the permission rights for the content with id cId have expired.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7