TMMSource Class Reference

#include <mm/mmcaf.h>

Link against: mmcommon.lib

class TMMSource
Public Member Functions
IMPORT_C ContentAccess::TIntentIntent()
IMPORT_C TBoolIsUIEnabled()
IMPORT_C TUidSourceType()
IMPORT_C const TDesC &UniqueId()
Protected Member Functions
TMMSource(TUid, const TDesC &, ContentAccess::TIntent)
TMMSource(TUid, const TDesC &, ContentAccess::TIntent, TBool)

Detailed Description

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

Constructor & Destructor Documentation

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

IMPORT_CTMMSource(TUidaSourceType,
const TDesC &aUniqueId,
ContentAccess::TIntentaIntent
)[protected]

Initialise DRM protected content source

Parameters
aSourceTypeThe source type to differentiate
aUniqueIdUnique Id of the source object within the DRM archive
aIntentUsage intent when opening content

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

IMPORT_CTMMSource(TUidaSourceType,
const TDesC &aUniqueId,
ContentAccess::TIntentaIntent,
TBoolaEnableUI
)[protected]

Initialise DRM protected content source

Parameters
aSourceTypeThe source type to differentiate
aUniqueIdUnique Id of the source object within the DRM archive
aIntentUsage intent when opening content
aEnableUIThe agent's UI is enabled or not.

Member Function Documentation

Intent ( )

IMPORT_C ContentAccess::TIntentIntent()const

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

See also: ContentAccess::TIntent

Return Value
The Intent.

IsUIEnabled ( )

IMPORT_C TBoolIsUIEnabled()const

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

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

SourceType ( )

IMPORT_C TUidSourceType()const

Get the universal identifier of the content source.

Return Value
The universal identifier of the content source.

UniqueId ( )

IMPORT_C const TDesC &UniqueId()const

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

Return Value
A reference to a descriptor containing the Unique Id.