TMMSource Class Reference

class TMMSource

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

Public Member Functions
IMPORT_C ContentAccess::TIntent Intent ()
IMPORT_C TBool IsUIEnabled ()
IMPORT_C TUid SourceType ()
IMPORT_C const TDesC & UniqueId ()
Protected Member Functions
TMMSource ( TUid , const TDesC &, ContentAccess::TIntent )
TMMSource ( TUid , const TDesC &, ContentAccess::TIntent , TBool )
Private Attributes
TBool iEnableUI
ContentAccess::TIntent iIntent
TInt iReserved1
TInt iReserved2
TUid iSourceType
const TDesC & iUniqueId

Constructor & Destructor Documentation

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

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

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(TUid, const TDesC &, ContentAccess::TIntent, TBool)

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

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.

Member Functions Documentation

Intent()

IMPORT_C ContentAccess::TIntent Intent ( ) const

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

ContentAccess::TIntent

IsUIEnabled()

IMPORT_C TBool IsUIEnabled ( ) const

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

SourceType()

IMPORT_C TUid SourceType ( ) const

Get 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.

Member Data Documentation

TBool iEnableUI

TBool iEnableUI [private]

Flag whether an agent's property to enable the UI may be set prior to evaluating the intent.

ContentAccess::TIntent iIntent

ContentAccess::TIntent iIntent [private]

Intent to use when opening content.

TInt iReserved1

TInt iReserved1 [private]

Reserved to avoid BC break.

TInt iReserved2

TInt iReserved2 [private]

Reserved to avoid BC break.

TUid iSourceType

TUid iSourceType [private]

A univeral identifier to differentiate between content sources.

const TDesC & iUniqueId

const TDesC & iUniqueId [private]

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