Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: mmcaf.h
Link against: mmcommon.lib

Class TMMSource

class TMMSource;

Description

Base class which provides a lightweight encapsulation of a DRM protected content source.

Members

Defined in TMMSource:
Intent(), IsUIEnabled(), SourceType(), TMMSource(), TMMSource(), UniqueId()


Construction and destruction


TMMSource()

protected: IMPORT_C TMMSource(TUid aSourceType, const TDesC &aUniqueId, ContentAccess::TIntent aIntent);

Description

Initialise DRM protected content source

Parameters

TUid aSourceType

The source type to differentiate

const TDesC &aUniqueId

Unique Id of the source object within the DRM archive

ContentAccess::TIntent aIntent

Usage intent when opening content


TMMSource()

protected: IMPORT_C TMMSource(TUid aSourceType, const TDesC &aUniqueId, ContentAccess::TIntent aIntent, TBool aEnableUI);

Description

Initialise DRM protected content source

Parameters

TUid aSourceType

The source type to differentiate

const TDesC &aUniqueId

Unique Id of the source object within the DRM archive

ContentAccess::TIntent aIntent

Usage intent when opening content

TBool aEnableUI

The agent's UI is enabled or not.

[Top]


Member functions


SourceType()

IMPORT_C TUid SourceType() const;

Description

Get the universal identifier of the content source.

Return value

TUid

The universal identifier of the content source.


UniqueId()

IMPORT_C const TDesC &UniqueId() const;

Description

Get the Unique Id of the source object within the DRM archive.

Return value

const TDesC &

A reference to a descriptor containing the Unique Id.


Intent()

IMPORT_C ContentAccess::TIntent Intent() const;

Description

Get the Intent used to open the source object within the DRM archive.

Return value

ContentAccess::TIntent

The Intent.


IsUIEnabled()

IMPORT_C TBool IsUIEnabled() const;

Description

Get the flag that indicates whether an agent's UI is enabled.

Return value

TBool

A boolean flag that has the value ETrue if the UI is enabled, EFalse otherwise