| Home · All Classes · Annotated · Functions |
#include <QDrmContentAgent>
This class is an abstraction layer to allow the Qtopia Documents API and Server system to interact with a 3rd party DRM Agent program. The Documents API implementation will call methods on this class in order to access the encryption, decryption, rights management and meta-information services provided by the DRM Agent program.
Represents meta data that can be queried from a dcf file.
| Constant | Value | Description |
|---|---|---|
| QDrmContentAgent::Unknown | 0x0000 | Base value for use in flags. |
| QDrmContentAgent::ContentSize | 0x0001 | The plaintext size of the protected content. |
| QDrmContentAgent::ContentType | 0x0002 | The MIME type of the protected content. |
| QDrmContentAgent::ContentId | 0x0004 | The files unique id. |
| QDrmContentAgent::ContentUrl | 0x0008 | Location of the content. |
| QDrmContentAgent::ContentVersion | 0x0010 | Version of the content. |
| QDrmContentAgent::RightsIssuerUrl | 0x0020 | Url where rights to the content can be obtained. |
| QDrmContentAgent::Title | 0x0040 | The user visible name of the content. |
| QDrmContentAgent::Description | 0x0080 | A description of the content. |
| QDrmContentAgent::Copyright | 0x0100 | Copyrights string for the content. |
| QDrmContentAgent::Author | 0x0200 | The author of the content. |
| QDrmContentAgent::IconUri | 0x0400 | A location where an icon for the content can be obtained. |
| QDrmContentAgent::InfoUrl | 0x0800 | A URL where additional information about the content can be obtained. |
Synonym for QFlags< QDrmContentAgent::MetaData >
Constructs a new QDrmMContentAgent object.
Destroys a QDrmMContentAgent object.
Creates a new QIODevice from which the decrypted data in the dcf file located at dcfFilePath can be read. The file will be opened with permission and the caller is responsible for deleteing the QIODevice.
Creates a new QAbstractItemModel with parent containing a complete list of all rights stored in the drm agent database. If no parent is given the caller must explicitly delete the model.
Creates a QIODevice that will encode drm message data written to it and save the data to a dcf file at targetPath. If MIME headers are available the boundary and contentLength values should be supplied otherwise they will be inferred from the message data. The caller is responsible for deleting the QIODevice.
Deletes all rights associacted with the dcf file located at dcfFilePath. Returns true on success.
Returns flags indicating what options are available for activating the dcf file located at dcfFilePath.
Returns a pointer to a static instance of DRMContentAgent.
Returns the value for a meta data field from the dcf file located at dcfFilePath.
This is an overloaded member function, provided for convenience.
Reads the meta data specificed in fields from the dcf file located at dcfFilePath. Each value successfully read is added to data, if any field cannot be read this will return false.
Returns the current rights information for permission of the dcf file at dcfFilePath.
This is an overloaded member function, provided for convenience.
Obtains the current rights information for permissions of the dcf file at dcfFilePath and adds them to rights.
Returns true if the dcf file located at dcfFilePath contains any valid rights matching permissions.
Encodes the drm message data in message and saves it to a dcf file at targetPath. If MIME headers are available the boundary and contentLength values should be supplied otherwise they will be inferred from the message data. Returns true if the installation was successful.
This is an overloaded member function, provided for convenience.
Encodes the drm message data in message and saves it to a dcf file at targetPath. If MIME headers are available the boundary and contentLength values should be supplied otherwise they will be inferred from the message data. Returns true if the installation was successful.
Installs a rightsObject to the agent rights database. Returns true on success.
Returns true if the the dcf file located at dcfFilePath can copied off the device.
Checks in the file located at dcfFilePath is a valid dcf file. Returns true if the file is a dcf file false otherwise.
Parses a rightsObject and writes the contained rights information to rights. If known the file path of the associated dcf file is returned.
Registers the dcf file located at dcfFilePath with the drm agent. Returns true if the file is a valid dcf file and the registration was successful.
Checks if there are current valid rights of type permission to render content. If the rights are valid a new ContentLicence is created with its starting render state set to initialState.
| Copyright © 2006 Trolltech | Trademarks | Qtopia 4.1.7 |