Content Access Framework (CAF) wrapper implementation. More...
#include <drmfile_p.h>
Public Member Functions | |
DRMFilePrivate () | |
constructor | |
virtual | ~DRMFilePrivate () |
destructor | |
int | open (const QString &fileName) |
lets Content Access Framework to open either DRM encrypted file package or non-protected file NOTE: Access to unprotected content is unrestricted by CAF thus regular files can be opened and read successfully | |
int | read (uchar *&data) |
Reads the whole data into allocated memory buffer. | |
void | close () |
closes file or DRM file package | |
int | size () |
returns opened file or DRM file package | |
Static Public Member Functions | |
static bool | isDRMError (int error) |
obsolete, checks whether given error code belongs to CAF error code range |
Content Access Framework (CAF) wrapper implementation.
DRMFilePrivate::DRMFilePrivate | ( | ) | [explicit] |
constructor
Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
For the applicable distribution terms see the license.txt -file, included in the distribution.
bool DRMFilePrivate::isDRMError | ( | int | error | ) | [static] |
obsolete, checks whether given error code belongs to CAF error code range
error |
int DRMFilePrivate::open | ( | const QString & | fileName | ) |
lets Content Access Framework to open either DRM encrypted file package or non-protected file NOTE: Access to unprotected content is unrestricted by CAF thus regular files can be opened and read successfully
fileName |
int DRMFilePrivate::read | ( | uchar *& | data | ) |
Reads the whole data into allocated memory buffer.
data | - reference to pointer on allocated memory buffer. It is client's responcibility to release allocated memory |