Public Member Functions | Static Public Member Functions

DRMFilePrivate Class Reference

Content Access Framework (CAF) wrapper implementation. More...

#include <drmfile_p.h>

List of all members.

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

Detailed Description

Content Access Framework (CAF) wrapper implementation.


Constructor & Destructor Documentation

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.


Member Function Documentation

bool DRMFilePrivate::isDRMError ( int  error  )  [static]

obsolete, checks whether given error code belongs to CAF error code range

Parameters:
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

Parameters:
fileName 
int DRMFilePrivate::read ( uchar *&  data  ) 

Reads the whole data into allocated memory buffer.

Parameters:
data - reference to pointer on allocated memory buffer. It is client's responcibility to release allocated memory

The documentation for this class was generated from the following files:
 All Classes Functions Variables