Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: mmcaf.h
Link against: mmcommon.lib

Class TMMFileSource

class TMMFileSource : public TMMSource;

Description

A class that provides a consistent interface between filename based and file handle based API's. In particular this API:

Derivation

Members

Defined in TMMFileSource:
Name(), TMMFileSource(), TMMFileSource(), TMMFileSource(), TMMFileSource()

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


Construction and destruction


TMMFileSource()

IMPORT_C TMMFileSource(const TDesC &aName);

Description

Constructs a new TMMFileSource object using a filename. The Unique Id defaults to an empty descriptor. The Intent defaults to ContentAccess::EUnknown.

Parameters

const TDesC &aName

A reference to a filename descriptor.


TMMFileSource()

IMPORT_C TMMFileSource(const TDesC &aName, const TDesC &aUniqueId);

Description

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

Parameters

const TDesC &aName

A reference to a filename descriptor.

const TDesC &aUniqueId

A reference to a descriptor containing the Unique Id.


TMMFileSource()

IMPORT_C TMMFileSource(const TDesC &aName, const TDesC &aUniqueId, ContentAccess::TIntent aIntent);

Description

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

Parameters

const TDesC &aName

A reference to a filename descriptor.

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.


TMMFileSource()

IMPORT_C TMMFileSource(const TDesC &aName, 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

const TDesC &aName

A reference to a filename descriptor.

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


Name()

IMPORT_C const TDesC &Name() const;

Description

Return value

const TDesC &