Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from TMMSource:


Construction and destruction


TMMFileHandleSource(RFile &)

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(RFile &,const TDesC &)

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 TDesC16 &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);

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 TDesC16 &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);

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 TDesC16 &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()const

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.