TMMFileHandleSource Class Reference

class TMMFileHandleSource : public TMMSource

Provides a file handle to DRM protected content source

Inherits from

Constructor & Destructor Documentation

TMMFileHandleSource(RFile &)

IMPORT_C TMMFileHandleSource ( 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 & aFile A reference to a file handle object.

TMMFileHandleSource(RFile &, const TDesC &)

IMPORT_C TMMFileHandleSource ( 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 & aFile A reference to a file handle object.
const TDesC & aUniqueId A reference to a descriptor containing the Unique Id.

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

IMPORT_C TMMFileHandleSource ( RFile & aFile,
const TDesC & aUniqueId,
ContentAccess::TIntent aIntent
)

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 & aFile A reference to a file handle object.
const TDesC & aUniqueId A reference to a descriptor containing the Unique Id.
ContentAccess::TIntent aIntent the Intent to use when opening the source object within the DRM archive.

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

IMPORT_C TMMFileHandleSource ( RFile & aFile,
const TDesC & aUniqueId,
ContentAccess::TIntent aIntent,
TBool aEnableUI
)

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 & aFile A reference to a file handle object.
const TDesC & aUniqueId A reference to a descriptor containing the Unique Id.
ContentAccess::TIntent aIntent the Intent to use when opening the source object within the DRM archive.
TBool aEnableUI a 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.