Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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


Construction and destruction


TMMSource(TUid,const TDesC &,ContentAccess::TIntent)

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 TDesC16 &aUniqueId

Unique Id of the source object within the DRM archive

ContentAccess::TIntent aIntent

Usage intent when opening content


TMMSource(TUid,const TDesC &,ContentAccess::TIntent,TBool)

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

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

IMPORT_C const TDesC& UniqueId() const;

Description

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

Return value

const TDesC16 &

A reference to a descriptor containing the Unique Id.


Intent()const

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

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