TMMFileHandleSource Class Reference

class TMMFileHandleSource : public TMMSource

Provides a file handle to DRM protected content source

Inherits from

Constructor & Destructor Documentation

TMMFileHandleSource(RFile &)

IMPORT_CTMMFileHandleSource(RFile &aFile)

Constructs a new TMMFileHandleSource object using a file handle. The Unique Id defaults to an empty descriptor. The Intent defaults to ContentAccess::EUnknown.

Parameters

RFile & aFileA reference to a file handle object.

TMMFileHandleSource(RFile &, const TDesC &)

IMPORT_CTMMFileHandleSource(RFile &aFile,
const TDesC &aUniqueId
)

Constructs a new TMMFileHandleSource object using a file handle and the Unique Id of the source object within the DRM archive. The Intent defaults to ContentAccess::EUnknown.

Parameters

RFile & aFileA reference to a file handle object.
const TDesC & aUniqueIdA reference to a descriptor containing the Unique Id.

TMMFileHandleSource(RFile &, const TDesC &, ContentAccess::TIntent)

IMPORT_CTMMFileHandleSource(RFile &aFile,
const TDesC &aUniqueId,
ContentAccess::TIntentaIntent
)

Constructs a new TMMFileHandleSource object using a file handle and the Unique Id of the source object within the DRM archive. The Intent defaults to ContentAccess::EUnknown.

Parameters

RFile & aFileA reference to a file handle object.
const TDesC & aUniqueIdA reference to a descriptor containing the Unique Id.
ContentAccess::TIntent aIntentthe Intent to use when opening the source object within the DRM archive.

TMMFileHandleSource(RFile &, const TDesC &, ContentAccess::TIntent, TBool)

IMPORT_CTMMFileHandleSource(RFile &aFile,
const TDesC &aUniqueId,
ContentAccess::TIntentaIntent,
TBoolaEnableUI
)

Constructs a new TMMFileHandleSource object using a file handle and the Unique Id of the source object within the DRM archive. The Intent defaults to ContentAccess::EUnknown.

Parameters

RFile & aFileA reference to a file handle object.
const TDesC & aUniqueIdA reference to a descriptor containing the Unique Id.
ContentAccess::TIntent aIntentthe Intent to use when opening the source object within the DRM archive.
TBool aEnableUIa flag to enable the agent's UI.

Member Functions Documentation

Handle()

IMPORT_C RFile &Handle()const

Get the file handle of the source object within the DRM archive.

Member Data Documentation

RFile & iFile

RFile &iFile[private]

The file handle to use when opening content.