Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: mmcaf.h
Link against: mmcommon.lib

Class TMMFileHandleSource

class TMMFileHandleSource : public TMMSource;

Description

Provides a file handle to DRM protected content source

Derivation

Members

Defined in TMMFileHandleSource:
Handle(), TMMFileHandleSource(), TMMFileHandleSource(), TMMFileHandleSource(), TMMFileHandleSource()

Inherited from TMMSource:
Intent(), IsUIEnabled(), SourceType(), UniqueId()


Construction and destruction


TMMFileHandleSource()

IMPORT_C TMMFileHandleSource(RFile &aFile);

Description

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()

IMPORT_C TMMFileHandleSource(RFile &aFile, const TDesC &aUniqueId);

Description

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()

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

Description

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()

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

Description

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.

[Top]


Member functions


Handle()

IMPORT_C RFile &Handle() const;

Description

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

Return value

RFile &

A reference to the file handle.