CPlayerInfoTarget Class Reference

class CPlayerInfoTarget : public CRemConInterfaceBase

Client-instantiable class supporting player information responses. This is the container class for the three interface parts

Inherits from

Public Member Functions
~CPlayerInfoTarget()
IMPORT_C CPlayerInfoTarget *NewL(CRemConInterfaceSelector &, MPlayerCapabilitiesObserver *&, MPlayerApplicationSettingsObserver *&, MPlayerEventsObserver *&, MPlayerApplicationSettingsNotify &)
Private Member Functions
CPlayerInfoTarget(CRemConInterfaceSelector &, MPlayerApplicationSettingsNotify &)
TBool AttributeSettingExists(TUint)
TBool AttributeValueCanBeSet(TUint, TUint)
voidConstructL(MPlayerCapabilitiesObserver *&, MPlayerApplicationSettingsObserver *&, MPlayerEventsObserver *&)
MPlayerEventsObserver::TTargetBatteryStatus DetectBatteryStatus()
TInt DoAddCompanyId(TInt)
TInt DoAddEvent(TRegisterNotificationEvent)
voidDoClearCompanyIds()
voidDoClearEvents()
voidDoDefineAttributeL(TUint, TDesC8 &, RArray< TUint > &, RArray< TPtrC8 > &, TUint)
voidDoPlaybackStatusChanged(TPlaybackStatus)
TInt DoRemoveCompanyID(TInt)
TInt DoRemoveEvent(TRegisterNotificationEvent)
voidDoSetAttributeL(TUint, TUint)
voidDoSetBatteryStatus(TTargetBatteryStatus)
voidDoSetPlaybackPosition(TUint32)
voidDoTrackChanged(TUint64, TUint32)
voidDoTrackReachedEnd()
voidDoTrackReachedStart()
TAny *GetInterfaceIf(TUid)
CPlayerApplicationSettings *GetSetting(TUint)
TBool IsValidAttributeValue(TUint, TUint)
voidMrcibNewMessage(TUint, const TDesC8 &, TRemConMessageSubType)
voidProcessGetCapabilities(const TDesC8 &)
voidProcessGetCurrentPlayerApplicationValue(const TDesC8 &, TInt)
voidProcessGetPlayStatus()
voidProcessGetPlayStatusUpdate(const TDesC8 &)
voidProcessGetPlayerApplicationAttributeText(const TDesC8 &, TInt)
voidProcessGetPlayerApplicationValueText(const TDesC8 &, TInt)
voidProcessGetStatus(TUint, TRegisterNotificationEvent)
voidProcessGetStatusAndBeginObserving(TUint, TRegisterNotificationEvent, const TDesC8 &)
voidProcessListPlayerApplicationAttributes(TInt)
voidProcessListPlayerApplicationValues(const TDesC8 &, TInt)
voidProcessSetPlayerApplicationValue(const TDesC8 &, TInt)
voidSendError(TInt, TInt)
voidSendError(TInt, TInt, TRemConMessageSubType)
voidSendNotificationResponse(TRegisterNotificationEvent, TRemConMessageSubType)
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()
CRemConInterfaceBase::BaseConstructL()
CRemConInterfaceBase::BaseConstructL(RRemConInterfaceFeatures &)
CRemConInterfaceBase::BaseConstructL(RRemConInterfaceFeatures &,TBool)
CRemConInterfaceBase::Bulk()const
CRemConInterfaceBase::CRemConInterfaceBase(TUid,TUint,CRemConInterfaceSelector &,TRemConClientType)
CRemConInterfaceBase::Cancel()
CRemConInterfaceBase::InterfaceSelector()
CRemConInterfaceBase::InterfaceUid()const
CRemConInterfaceBase::MaxLength()const
CRemConInterfaceBase::Target(TRemConClientType)
CRemConInterfaceBase::Type()const
CRemConInterfaceBase::~CRemConInterfaceBase()
Private Attributes
MPlayerApplicationSettingsNotify &iApplicationSettingNotifier
TTargetBatteryStatusiBatteryStatus
RArray< TInt >iCompanyIdList
TUint32 iLastNotifiedPlaybackPositionInMilliseconds
TUint32 iLengthInMilliseconds
RBuf8 iOutBuf
RArray< TRegisterNotificationEvent >iPendingNotificationEventList
TUint32 iPlayBackIntervalInMilliseconds
TPlaybackStatusiPlayBackStatus
TUint32 iPlaybackPositionInMilliseconds
TBool iPlaybackStatusUpdatePending
RHashMap< TInt, CPlayerApplicationSettings * >iPlayerApplicationSettings
TEventsMask *iSupportedNotificationEventList
TUint64 iTrackId
TPlayPositioniTrackPosition

Constructor & Destructor Documentation

CPlayerInfoTarget(CRemConInterfaceSelector &, MPlayerApplicationSettingsNotify &)

CPlayerInfoTarget(CRemConInterfaceSelector &aInterfaceSelector,
MPlayerApplicationSettingsNotify &aApplicationSettingNotifier
)[private]

Constructor. Constructs this interface.

Parameters

CRemConInterfaceSelector & aInterfaceSelectorAn interface selector for use with this interface.
MPlayerApplicationSettingsNotify & aApplicationSettingNotifier

~CPlayerInfoTarget()

IMPORT_C~CPlayerInfoTarget()

Destructor

Member Functions Documentation

AttributeSettingExists(TUint)

TBool AttributeSettingExists(TUintanAttribute)[private]

Parameters

TUint anAttribute

AttributeValueCanBeSet(TUint, TUint)

TBool AttributeValueCanBeSet(TUintanAttributeId,
TUintaAttributeValue
)[private]

Parameters

TUint anAttributeId
TUint aAttributeValue

ConstructL(MPlayerCapabilitiesObserver *&, MPlayerApplicationSettingsObserver *&, MPlayerEventsObserver *&)

voidConstructL(MPlayerCapabilitiesObserver *&aPlayerCapabilitiesObserver,
MPlayerApplicationSettingsObserver *&aPlayerApplicationSettingsObserver,
MPlayerEventsObserver *&aPlayerEventsObserver
)[private]

Parameters

MPlayerCapabilitiesObserver *& aPlayerCapabilitiesObserver
MPlayerApplicationSettingsObserver *& aPlayerApplicationSettingsObserver
MPlayerEventsObserver *& aPlayerEventsObserver

DetectBatteryStatus()

MPlayerEventsObserver::TTargetBatteryStatus DetectBatteryStatus()[private]

DoAddCompanyId(TInt)

TInt DoAddCompanyId(TIntaID)[private]

Parameters

TInt aID

DoAddEvent(TRegisterNotificationEvent)

TInt DoAddEvent(TRegisterNotificationEventaEvent)[private]

Parameters

TRegisterNotificationEvent aEvent

DoClearCompanyIds()

voidDoClearCompanyIds()[private]

DoClearEvents()

voidDoClearEvents()[private]

DoDefineAttributeL(TUint, TDesC8 &, RArray< TUint > &, RArray< TPtrC8 > &, TUint)

voidDoDefineAttributeL(TUintaAttributeID,
TDesC8 &aAttributeText,
RArray< TUint > &aValues,
RArray< TPtrC8 > &aValueTexts,
TUintaInitialValue
)[private]

Parameters

TUint aAttributeID
TDesC8 & aAttributeText
RArray< TUint > & aValues
RArray< TPtrC8 > & aValueTexts
TUint aInitialValue

DoPlaybackStatusChanged(TPlaybackStatus)

voidDoPlaybackStatusChanged(TPlaybackStatusaStatus)[private]

Parameters

TPlaybackStatus aStatus

DoRemoveCompanyID(TInt)

TInt DoRemoveCompanyID(TIntaID)[private]

Parameters

TInt aID

DoRemoveEvent(TRegisterNotificationEvent)

TInt DoRemoveEvent(TRegisterNotificationEventaEvent)[private]

Parameters

TRegisterNotificationEvent aEvent

DoSetAttributeL(TUint, TUint)

voidDoSetAttributeL(TUintaAttributeID,
TUintaValue
)[private]

Parameters

TUint aAttributeID
TUint aValue

DoSetBatteryStatus(TTargetBatteryStatus)

voidDoSetBatteryStatus(TTargetBatteryStatusaBatteryStatus)[private]

Parameters

TTargetBatteryStatus aBatteryStatus

DoSetPlaybackPosition(TUint32)

voidDoSetPlaybackPosition(TUint32aMilliseconds)[private]

Parameters

TUint32 aMilliseconds

DoTrackChanged(TUint64, TUint32)

voidDoTrackChanged(TUint64aTrackId,
TUint32aLengthInMilliseconds
)[private]

Parameters

TUint64 aTrackId
TUint32 aLengthInMilliseconds

DoTrackReachedEnd()

voidDoTrackReachedEnd()[private]

DoTrackReachedStart()

voidDoTrackReachedStart()[private]

GetInterfaceIf(TUid)

TAny *GetInterfaceIf(TUidaUid)[private, virtual]

Called by the interface selector to get a pointer to an object which implements the interface API with UID aUid. This is a mechanism for allowing future change to the interface API without breaking BC in existing (non-updated) interfaces.

Parameters

TUid aUid

GetSetting(TUint)

CPlayerApplicationSettings *GetSetting(TUintanAttribute)[private]

Parameters

TUint anAttribute

IsValidAttributeValue(TUint, TUint)

TBool IsValidAttributeValue(TUintanAttributeId,
TUintaAttributeValue
)[private]

Parameters

TUint anAttributeId
TUint aAttributeValue

MrcibNewMessage(TUint, const TDesC8 &, TRemConMessageSubType)

voidMrcibNewMessage(TUintaOperationId,
const TDesC8 &aData,
TRemConMessageSubTypeaMsgSubType
)[private]

Parameters

TUint aOperationId
const TDesC8 & aData
TRemConMessageSubType aMsgSubType

NewL(CRemConInterfaceSelector &, MPlayerCapabilitiesObserver *&, MPlayerApplicationSettingsObserver *&, MPlayerEventsObserver *&, MPlayerApplicationSettingsNotify &)

IMPORT_C CPlayerInfoTarget *NewL(CRemConInterfaceSelector &aInterfaceSelector,
MPlayerCapabilitiesObserver *&aPlayerCapabilitiesObserver,
MPlayerApplicationSettingsObserver *&aPlayerApplicationSettingsObserver,
MPlayerEventsObserver *&aPlayerEventsObserver,
MPlayerApplicationSettingsNotify &aApplicationSettingNotifier
)[static]

Factory function. A new CPlayerInfoTarget, owned by the interface selector.

Parameters

CRemConInterfaceSelector & aInterfaceSelectorThe interface selector. The client must have created one of these first.
MPlayerCapabilitiesObserver *& aPlayerCapabilitiesObserverReturns a pointer to a MPlayerCapabilitiesObserver for this interface, owned by the CPlayerInfoTarget.
MPlayerApplicationSettingsObserver *& aPlayerApplicationSettingsObserverReturns a pointer to a MPlayerApplicationSettingsObserver for this interface, owned by the CPlayerInfoTarget
MPlayerEventsObserver *& aPlayerEventsObserverReturns a pointer to a MPlayerEventsObserver for this interface, owned by the CPlayerInfoTarget
MPlayerApplicationSettingsNotify & aApplicationSettingNotifier

ProcessGetCapabilities(const TDesC8 &)

voidProcessGetCapabilities(const TDesC8 &aData)[private]

Parameters

const TDesC8 & aData

ProcessGetCurrentPlayerApplicationValue(const TDesC8 &, TInt)

voidProcessGetCurrentPlayerApplicationValue(const TDesC8 &aData,
TIntaOperationId
)[private]

Parameters

const TDesC8 & aData
TInt aOperationId

ProcessGetPlayStatus()

voidProcessGetPlayStatus()[private]

ProcessGetPlayStatusUpdate(const TDesC8 &)

voidProcessGetPlayStatusUpdate(const TDesC8 &aData)[private]

Parameters

const TDesC8 & aData

ProcessGetPlayerApplicationAttributeText(const TDesC8 &, TInt)

voidProcessGetPlayerApplicationAttributeText(const TDesC8 &aData,
TIntaOperationId
)[private]

Parameters

const TDesC8 & aData
TInt aOperationId

ProcessGetPlayerApplicationValueText(const TDesC8 &, TInt)

voidProcessGetPlayerApplicationValueText(const TDesC8 &aData,
TIntaOperationId
)[private]

Parameters

const TDesC8 & aData
TInt aOperationId

ProcessGetStatus(TUint, TRegisterNotificationEvent)

voidProcessGetStatus(TUintaOperationId,
TRegisterNotificationEventaEventId
)[private]

Parameters

TUint aOperationId
TRegisterNotificationEvent aEventId

ProcessGetStatusAndBeginObserving(TUint, TRegisterNotificationEvent, const TDesC8 &)

voidProcessGetStatusAndBeginObserving(TUintaOperationId,
TRegisterNotificationEventaEventId,
const TDesC8 &aData
)[private]

Parameters

TUint aOperationId
TRegisterNotificationEvent aEventId
const TDesC8 & aData

ProcessListPlayerApplicationAttributes(TInt)

voidProcessListPlayerApplicationAttributes(TIntaOperationId)[private]

Parameters

TInt aOperationId

ProcessListPlayerApplicationValues(const TDesC8 &, TInt)

voidProcessListPlayerApplicationValues(const TDesC8 &aData,
TIntaOperationId
)[private]

Parameters

const TDesC8 & aData
TInt aOperationId

ProcessSetPlayerApplicationValue(const TDesC8 &, TInt)

voidProcessSetPlayerApplicationValue(const TDesC8 &aData,
TIntaOperationId
)[private]

Parameters

const TDesC8 & aData
TInt aOperationId

SendError(TInt, TInt)

voidSendError(TInt,
TInt
)[private]

Parameters

TInt
TInt

SendError(TInt, TInt, TRemConMessageSubType)

voidSendError(TInt,
TInt,
TRemConMessageSubTypeaSubType
)[private]

Parameters

TInt
TInt
TRemConMessageSubType aSubType

SendNotificationResponse(TRegisterNotificationEvent, TRemConMessageSubType)

voidSendNotificationResponse(TRegisterNotificationEventaEventId,
TRemConMessageSubTypeaMsgSubType
)[private]

Parameters

TRegisterNotificationEvent aEventId
TRemConMessageSubType aMsgSubType

Member Data Documentation

MPlayerApplicationSettingsNotify & iApplicationSettingNotifier

MPlayerApplicationSettingsNotify &iApplicationSettingNotifier[private]

TTargetBatteryStatus iBatteryStatus

TTargetBatteryStatusiBatteryStatus[private]

RArray< TInt > iCompanyIdList

RArray< TInt >iCompanyIdList[private]

TUint32 iLastNotifiedPlaybackPositionInMilliseconds

TUint32 iLastNotifiedPlaybackPositionInMilliseconds[private]

TUint32 iLengthInMilliseconds

TUint32 iLengthInMilliseconds[private]

RBuf8 iOutBuf

RBuf8 iOutBuf[private]

RArray< TRegisterNotificationEvent > iPendingNotificationEventList

RArray< TRegisterNotificationEvent >iPendingNotificationEventList[private]

TUint32 iPlayBackIntervalInMilliseconds

TUint32 iPlayBackIntervalInMilliseconds[private]

TPlaybackStatus iPlayBackStatus

TPlaybackStatusiPlayBackStatus[private]

TUint32 iPlaybackPositionInMilliseconds

TUint32 iPlaybackPositionInMilliseconds[private]

TBool iPlaybackStatusUpdatePending

TBool iPlaybackStatusUpdatePending[private]

RHashMap< TInt, CPlayerApplicationSettings * > iPlayerApplicationSettings

RHashMap< TInt, CPlayerApplicationSettings * >iPlayerApplicationSettings[private]

TEventsMask * iSupportedNotificationEventList

TEventsMask *iSupportedNotificationEventList[private]

TUint64 iTrackId

TUint64 iTrackId[private]

TPlayPosition iTrackPosition

TPlayPositioniTrackPosition[private]