CDrmAudioPlayerAdaptation Class Reference

class CDrmAudioPlayerAdaptation : public CBase

Inherits from

Public Member Functions
CDrmAudioPlayerAdaptation ( MDrmAudioPlayerCallback &)
~CDrmAudioPlayerAdaptation ()
TInt ClearPlayWindow ()
void Close ()
const CMMFControllerImplementationInformation & ControllerImplementationInformationL ()
void CustomCommandAsync (const TMMFMessageDestinationPckg &, TInt , const TDesC8 &, const TDesC8 &, TDes8 &, TRequestStatus &)
void CustomCommandAsync (const TMMFMessageDestinationPckg &, TInt , const TDesC8 &, const TDesC8 &, TRequestStatus &)
TInt CustomCommandSync (const TMMFMessageDestinationPckg &, TInt , const TDesC8 &, const TDesC8 &, TDes8 &)
TInt CustomCommandSync (const TMMFMessageDestinationPckg &, TInt , const TDesC8 &, const TDesC8 &)
const TTimeIntervalMicroSeconds & Duration ()
void GetAudioLoadingProgressL ( TInt &)
TInt GetBalance ( TInt &)
TInt GetBitRate ( TUint &)
CMMFMetaDataEntry * GetMetaDataEntryL ( TInt )
TInt GetNumberOfMetaDataEntries ( TInt &)
TInt GetPosition ( TTimeIntervalMicroSeconds &)
TInt GetVolume ( TInt &)
TInt MaxVolume ()
CDrmAudioPlayerAdaptation * NewDesPlayerL (const TDesC8 &, MDrmAudioPlayerCallback &, TInt , TMdaPriorityPreference )
CDrmAudioPlayerAdaptation * NewDesPlayerReadOnlyL (const TDesC8 &, MDrmAudioPlayerCallback &, TInt , TMdaPriorityPreference )
CDrmAudioPlayerAdaptation * NewFilePlayerL (const TDesC &, MDrmAudioPlayerCallback &, TInt , TMdaPriorityPreference )
CDrmAudioPlayerAdaptation * NewL ( MDrmAudioPlayerCallback &, TInt , TMdaPriorityPreference )
void OpenDesL (const TDesC8 &)
void OpenFileL (const TDesC &)
void OpenFileL (const RFile &)
void OpenFileL (const TMMSource &)
void OpenUrlL (const TDesC &, TInt , const TDesC8 &)
TInt Pause ()
void Play ()
void RegisterForAudioLoadingNotification ( MAudioLoadingObserver &)
TInt SetBalance (const TInt )
TInt SetPlayWindow (const TTimeIntervalMicroSeconds &, const TTimeIntervalMicroSeconds &)
void SetPosition (const TTimeIntervalMicroSeconds &)
TInt SetPriority ( TInt , TMdaPriorityPreference )
void SetRepeats ( TInt , const TTimeIntervalMicroSeconds &)
void SetVolume (const TInt )
void SetVolumeRamp (const TTimeIntervalMicroSeconds &)
void Stop ()
Private Member Functions
TBool CheckCustomInterfaceBuilderImplL (const TDesC8 &)
void ConstructL ( TInt , TMdaPriorityPreference )
void ConstructNewDesPlayerL (const TDesC8 &, TInt , TMdaPriorityPreference )
void ConstructNewDesPlayerReadOnlyL (const TDesC8 &, TInt , TMdaPriorityPreference )
void ConstructNewFilePlayerL (const TDesC &, TInt , TMdaPriorityPreference )
TBool IsValidCustomCommandDestination ( TUid , TDesC8 &)
void MapcInitComplete ( TInt , const TTimeIntervalMicroSeconds &)
void MapcPlayComplete ( TInt )
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
MDrmAudioPlayerCallback * iCallback
CMdaAudioPlayerUtility * iMdaPlayUtil

Constructor & Destructor Documentation

CDrmAudioPlayerAdaptation(MDrmAudioPlayerCallback &)

CDrmAudioPlayerAdaptation ( MDrmAudioPlayerCallback & aCallback )

Parameters

MDrmAudioPlayerCallback & aCallback

~CDrmAudioPlayerAdaptation()

~CDrmAudioPlayerAdaptation ( )

Member Functions Documentation

CheckCustomInterfaceBuilderImplL(const TDesC8 &)

TBool CheckCustomInterfaceBuilderImplL ( const TDesC8 & aParam ) [private]

Parameters

const TDesC8 & aParam

ClearPlayWindow()

TInt ClearPlayWindow ( )

Close()

void Close ( )

ConstructL(TInt, TMdaPriorityPreference)

void ConstructL ( TInt aPriority,
TMdaPriorityPreference aPref
) [private]

Parameters

TInt aPriority
TMdaPriorityPreference aPref

ConstructNewDesPlayerL(const TDesC8 &, TInt, TMdaPriorityPreference)

void ConstructNewDesPlayerL ( const TDesC8 & aData,
TInt aPriority,
TMdaPriorityPreference aPref
) [private]

Parameters

const TDesC8 & aData
TInt aPriority
TMdaPriorityPreference aPref

ConstructNewDesPlayerReadOnlyL(const TDesC8 &, TInt, TMdaPriorityPreference)

void ConstructNewDesPlayerReadOnlyL ( const TDesC8 & aData,
TInt aPriority,
TMdaPriorityPreference aPref
) [private]

Parameters

const TDesC8 & aData
TInt aPriority
TMdaPriorityPreference aPref

ConstructNewFilePlayerL(const TDesC &, TInt, TMdaPriorityPreference)

void ConstructNewFilePlayerL ( const TDesC & aFileName,
TInt aPriority,
TMdaPriorityPreference aPref
) [private]

Parameters

const TDesC & aFileName
TInt aPriority
TMdaPriorityPreference aPref

ControllerImplementationInformationL()

const CMMFControllerImplementationInformation & ControllerImplementationInformationL ( )

CustomCommandAsync(const TMMFMessageDestinationPckg &, TInt, const TDesC8 &, const TDesC8 &, TDes8 &, TRequestStatus &)

void CustomCommandAsync ( const TMMFMessageDestinationPckg & aDestination,
TInt aFunction,
const TDesC8 & aDataTo1,
const TDesC8 & aDataTo2,
TDes8 & aDataFrom,
TRequestStatus & aStatus
)

Parameters

const TMMFMessageDestinationPckg & aDestination
TInt aFunction
const TDesC8 & aDataTo1
const TDesC8 & aDataTo2
TDes8 & aDataFrom
TRequestStatus & aStatus

CustomCommandAsync(const TMMFMessageDestinationPckg &, TInt, const TDesC8 &, const TDesC8 &, TRequestStatus &)

void CustomCommandAsync ( const TMMFMessageDestinationPckg & aDestination,
TInt aFunction,
const TDesC8 & aDataTo1,
const TDesC8 & aDataTo2,
TRequestStatus & aStatus
)

Parameters

const TMMFMessageDestinationPckg & aDestination
TInt aFunction
const TDesC8 & aDataTo1
const TDesC8 & aDataTo2
TRequestStatus & aStatus

CustomCommandSync(const TMMFMessageDestinationPckg &, TInt, const TDesC8 &, const TDesC8 &, TDes8 &)

TInt CustomCommandSync ( const TMMFMessageDestinationPckg & aDestination,
TInt aFunction,
const TDesC8 & aDataTo1,
const TDesC8 & aDataTo2,
TDes8 & aDataFrom
)

Parameters

const TMMFMessageDestinationPckg & aDestination
TInt aFunction
const TDesC8 & aDataTo1
const TDesC8 & aDataTo2
TDes8 & aDataFrom

CustomCommandSync(const TMMFMessageDestinationPckg &, TInt, const TDesC8 &, const TDesC8 &)

TInt CustomCommandSync ( const TMMFMessageDestinationPckg & aDestination,
TInt aFunction,
const TDesC8 & aDataTo1,
const TDesC8 & aDataTo2
)

Parameters

const TMMFMessageDestinationPckg & aDestination
TInt aFunction
const TDesC8 & aDataTo1
const TDesC8 & aDataTo2

Duration()

const TTimeIntervalMicroSeconds & Duration ( )

GetAudioLoadingProgressL(TInt &)

void GetAudioLoadingProgressL ( TInt & aPercentageProgress )

Parameters

TInt & aPercentageProgress

GetBalance(TInt &)

TInt GetBalance ( TInt & aBalance )

Parameters

TInt & aBalance

GetBitRate(TUint &)

TInt GetBitRate ( TUint & aBitRate )

Parameters

TUint & aBitRate

GetMetaDataEntryL(TInt)

CMMFMetaDataEntry * GetMetaDataEntryL ( TInt aMetaDataIndex )

Parameters

TInt aMetaDataIndex

GetNumberOfMetaDataEntries(TInt &)

TInt GetNumberOfMetaDataEntries ( TInt & aNumEntries )

Parameters

TInt & aNumEntries

GetPosition(TTimeIntervalMicroSeconds &)

TInt GetPosition ( TTimeIntervalMicroSeconds & aPosition )

Parameters

TTimeIntervalMicroSeconds & aPosition

GetVolume(TInt &)

TInt GetVolume ( TInt & aVolume )

Parameters

TInt & aVolume

IsValidCustomCommandDestination(TUid, TDesC8 &)

TBool IsValidCustomCommandDestination ( TUid aDestinationUid,
TDesC8 & aParam
) [private]

Parameters

TUid aDestinationUid
TDesC8 & aParam

MapcInitComplete(TInt, const TTimeIntervalMicroSeconds &)

void MapcInitComplete ( TInt aError,
const TTimeIntervalMicroSeconds & aDuration
) [private]

Parameters

TInt aError
const TTimeIntervalMicroSeconds & aDuration

MapcPlayComplete(TInt)

void MapcPlayComplete ( TInt aError ) [private]

Parameters

TInt aError

MaxVolume()

TInt MaxVolume ( )

NewDesPlayerL(const TDesC8 &, MDrmAudioPlayerCallback &, TInt, TMdaPriorityPreference)

CDrmAudioPlayerAdaptation * NewDesPlayerL ( const TDesC8 & aData,
MDrmAudioPlayerCallback & aCallback,
TInt aPriority,
TMdaPriorityPreference aPref
) [static]

Parameters

const TDesC8 & aData
MDrmAudioPlayerCallback & aCallback
TInt aPriority
TMdaPriorityPreference aPref

NewDesPlayerReadOnlyL(const TDesC8 &, MDrmAudioPlayerCallback &, TInt, TMdaPriorityPreference)

CDrmAudioPlayerAdaptation * NewDesPlayerReadOnlyL ( const TDesC8 & aData,
MDrmAudioPlayerCallback & aCallback,
TInt aPriority,
TMdaPriorityPreference aPref
) [static]

Parameters

const TDesC8 & aData
MDrmAudioPlayerCallback & aCallback
TInt aPriority
TMdaPriorityPreference aPref

NewFilePlayerL(const TDesC &, MDrmAudioPlayerCallback &, TInt, TMdaPriorityPreference)

CDrmAudioPlayerAdaptation * NewFilePlayerL ( const TDesC & aFileName,
MDrmAudioPlayerCallback & aCallback,
TInt aPriority,
TMdaPriorityPreference aPref
) [static]

Parameters

const TDesC & aFileName
MDrmAudioPlayerCallback & aCallback
TInt aPriority
TMdaPriorityPreference aPref

NewL(MDrmAudioPlayerCallback &, TInt, TMdaPriorityPreference)

CDrmAudioPlayerAdaptation * NewL ( MDrmAudioPlayerCallback & aCallback,
TInt aPriority,
TMdaPriorityPreference aPref
) [static]

Parameters

MDrmAudioPlayerCallback & aCallback
TInt aPriority
TMdaPriorityPreference aPref

OpenDesL(const TDesC8 &)

void OpenDesL ( const TDesC8 & aDescriptor )

Parameters

const TDesC8 & aDescriptor

OpenFileL(const TDesC &)

void OpenFileL ( const TDesC & aFileName )

Parameters

const TDesC & aFileName

OpenFileL(const RFile &)

void OpenFileL ( const RFile & aFile )

Parameters

const RFile & aFile

OpenFileL(const TMMSource &)

void OpenFileL ( const TMMSource & aSource )

Parameters

const TMMSource & aSource

OpenUrlL(const TDesC &, TInt, const TDesC8 &)

void OpenUrlL ( const TDesC & aUrl,
TInt aIapId,
const TDesC8 & aMimeType
)

Parameters

const TDesC & aUrl
TInt aIapId
const TDesC8 & aMimeType

Pause()

TInt Pause ( )

Play()

void Play ( )

RegisterForAudioLoadingNotification(MAudioLoadingObserver &)

void RegisterForAudioLoadingNotification ( MAudioLoadingObserver & aCallback )

Parameters

MAudioLoadingObserver & aCallback

SetBalance(const TInt)

TInt SetBalance ( const TInt aBalance )

Parameters

const TInt aBalance

SetPlayWindow(const TTimeIntervalMicroSeconds &, const TTimeIntervalMicroSeconds &)

TInt SetPlayWindow ( const TTimeIntervalMicroSeconds & aStart,
const TTimeIntervalMicroSeconds & aEnd
)

Parameters

const TTimeIntervalMicroSeconds & aStart
const TTimeIntervalMicroSeconds & aEnd

SetPosition(const TTimeIntervalMicroSeconds &)

void SetPosition ( const TTimeIntervalMicroSeconds & aPosition )

Parameters

const TTimeIntervalMicroSeconds & aPosition

SetPriority(TInt, TMdaPriorityPreference)

TInt SetPriority ( TInt aPriority,
TMdaPriorityPreference aPref
)

Parameters

TInt aPriority
TMdaPriorityPreference aPref

SetRepeats(TInt, const TTimeIntervalMicroSeconds &)

void SetRepeats ( TInt aRepeatNumberOfTimes,
const TTimeIntervalMicroSeconds & aTrailingSilence
)

Parameters

TInt aRepeatNumberOfTimes
const TTimeIntervalMicroSeconds & aTrailingSilence

SetVolume(const TInt)

void SetVolume ( const TInt aVolume )

Parameters

const TInt aVolume

SetVolumeRamp(const TTimeIntervalMicroSeconds &)

void SetVolumeRamp ( const TTimeIntervalMicroSeconds & aRampDuration )

Parameters

const TTimeIntervalMicroSeconds & aRampDuration

Stop()

void Stop ( )

Member Data Documentation

MDrmAudioPlayerCallback * iCallback

MDrmAudioPlayerCallback * iCallback [private]

CMdaAudioPlayerUtility * iMdaPlayUtil

CMdaAudioPlayerUtility * iMdaPlayUtil [private]