TMMFileHandleSource Class Reference

#include <mm/mmcaf.h>

Link against: mmcommon.lib

class TMMFileHandleSource : public TMMSource

Inherits from

Detailed Description

Provides a file handle to DRM protected content source

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
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
aFileA reference to a file handle object.
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
aFileA reference to a file handle object.
aUniqueIdA reference to a descriptor containing the Unique Id.
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
aFileA reference to a file handle object.
aUniqueIdA reference to a descriptor containing the Unique Id.
aIntentthe Intent to use when opening the source object within the DRM archive.
aEnableUIa flag to enable the agent's UI.

Member Function Documentation

Handle ( )

IMPORT_C RFile &Handle()const

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

Return Value
A reference to the file handle.