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 )
void ConstructL ( MPlayerCapabilitiesObserver *&, MPlayerApplicationSettingsObserver *&, MPlayerEventsObserver *&)
MPlayerEventsObserver::TTargetBatteryStatus DetectBatteryStatus ()
TInt DoAddCompanyId ( TInt )
TInt DoAddEvent ( TRegisterNotificationEvent )
void DoClearCompanyIds ()
void DoClearEvents ()
void DoDefineAttributeL ( TUint , TDesC8 &, RArray < TUint > &, RArray < TPtrC8 > &, TUint )
void DoPlaybackStatusChanged (TPlaybackStatus)
TInt DoRemoveCompanyID ( TInt )
TInt DoRemoveEvent ( TRegisterNotificationEvent )
void DoSetAttributeL ( TUint , TUint )
void DoSetBatteryStatus (TTargetBatteryStatus)
void DoSetPlaybackPosition ( TUint32 )
void DoTrackChanged ( TUint64 , TUint32 )
void DoTrackReachedEnd ()
void DoTrackReachedStart ()
TAny * GetInterfaceIf ( TUid )
CPlayerApplicationSettings * GetSetting ( TUint )
TBool IsValidAttributeValue ( TUint , TUint )
void MrcibNewMessage ( TUint , const TDesC8 &, TRemConMessageSubType )
void ProcessGetCapabilities (const TDesC8 &)
void ProcessGetCurrentPlayerApplicationValue (const TDesC8 &, TInt )
void ProcessGetPlayStatus ()
void ProcessGetPlayStatusUpdate (const TDesC8 &)
void ProcessGetPlayerApplicationAttributeText (const TDesC8 &, TInt )
void ProcessGetPlayerApplicationValueText (const TDesC8 &, TInt )
void ProcessGetStatus ( TUint , TRegisterNotificationEvent )
void ProcessGetStatusAndBeginObserving ( TUint , TRegisterNotificationEvent , const TDesC8 &)
void ProcessListPlayerApplicationAttributes ( TInt )
void ProcessListPlayerApplicationValues (const TDesC8 &, TInt )
void ProcessSetPlayerApplicationValue (const TDesC8 &, TInt )
void SendError ( TInt , TInt )
void SendError ( TInt , TInt , TRemConMessageSubType )
void SendNotificationResponse ( 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
TTargetBatteryStatus iBatteryStatus
RArray < TInt > iCompanyIdList
TUint32 iLastNotifiedPlaybackPositionInMilliseconds
TUint32 iLengthInMilliseconds
RBuf8 iOutBuf
RArray < TRegisterNotificationEvent > iPendingNotificationEventList
TUint32 iPlayBackIntervalInMilliseconds
TPlaybackStatus iPlayBackStatus
TUint32 iPlaybackPositionInMilliseconds
TBool iPlaybackStatusUpdatePending
RHashMap < TInt , CPlayerApplicationSettings * > iPlayerApplicationSettings
TEventsMask * iSupportedNotificationEventList
TUint64 iTrackId
TPlayPosition iTrackPosition

Constructor & Destructor Documentation

CPlayerInfoTarget(CRemConInterfaceSelector &, MPlayerApplicationSettingsNotify &)

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

Constructor. Constructs this interface.

Parameters

CRemConInterfaceSelector & aInterfaceSelector An interface selector for use with this interface.
MPlayerApplicationSettingsNotify & aApplicationSettingNotifier

~CPlayerInfoTarget()

IMPORT_C ~CPlayerInfoTarget ( )

Destructor

Member Functions Documentation

AttributeSettingExists(TUint)

TBool AttributeSettingExists ( TUint anAttribute ) [private]

Parameters

TUint anAttribute

AttributeValueCanBeSet(TUint, TUint)

TBool AttributeValueCanBeSet ( TUint anAttributeId,
TUint aAttributeValue
) [private]

Parameters

TUint anAttributeId
TUint aAttributeValue

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

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

Parameters

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

DetectBatteryStatus()

MPlayerEventsObserver::TTargetBatteryStatus DetectBatteryStatus ( ) [private]

DoAddCompanyId(TInt)

TInt DoAddCompanyId ( TInt aID ) [private]

Parameters

TInt aID

DoAddEvent(TRegisterNotificationEvent)

TInt DoAddEvent ( TRegisterNotificationEvent aEvent ) [private]

Parameters

TRegisterNotificationEvent aEvent

DoClearCompanyIds()

void DoClearCompanyIds ( ) [private]

DoClearEvents()

void DoClearEvents ( ) [private]

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

void DoDefineAttributeL ( TUint aAttributeID,
TDesC8 & aAttributeText,
RArray < TUint > & aValues,
RArray < TPtrC8 > & aValueTexts,
TUint aInitialValue
) [private]

Parameters

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

DoPlaybackStatusChanged(TPlaybackStatus)

void DoPlaybackStatusChanged ( TPlaybackStatus aStatus ) [private]

Parameters

TPlaybackStatus aStatus

DoRemoveCompanyID(TInt)

TInt DoRemoveCompanyID ( TInt aID ) [private]

Parameters

TInt aID

DoRemoveEvent(TRegisterNotificationEvent)

TInt DoRemoveEvent ( TRegisterNotificationEvent aEvent ) [private]

Parameters

TRegisterNotificationEvent aEvent

DoSetAttributeL(TUint, TUint)

void DoSetAttributeL ( TUint aAttributeID,
TUint aValue
) [private]

Parameters

TUint aAttributeID
TUint aValue

DoSetBatteryStatus(TTargetBatteryStatus)

void DoSetBatteryStatus ( TTargetBatteryStatus aBatteryStatus ) [private]

Parameters

TTargetBatteryStatus aBatteryStatus

DoSetPlaybackPosition(TUint32)

void DoSetPlaybackPosition ( TUint32 aMilliseconds ) [private]

Parameters

TUint32 aMilliseconds

DoTrackChanged(TUint64, TUint32)

void DoTrackChanged ( TUint64 aTrackId,
TUint32 aLengthInMilliseconds
) [private]

Parameters

TUint64 aTrackId
TUint32 aLengthInMilliseconds

DoTrackReachedEnd()

void DoTrackReachedEnd ( ) [private]

DoTrackReachedStart()

void DoTrackReachedStart ( ) [private]

GetInterfaceIf(TUid)

TAny * GetInterfaceIf ( TUid aUid ) [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 ( TUint anAttribute ) [private]

Parameters

TUint anAttribute

IsValidAttributeValue(TUint, TUint)

TBool IsValidAttributeValue ( TUint anAttributeId,
TUint aAttributeValue
) [private]

Parameters

TUint anAttributeId
TUint aAttributeValue

MrcibNewMessage(TUint, const TDesC8 &, TRemConMessageSubType)

void MrcibNewMessage ( TUint aOperationId,
const TDesC8 & aData,
TRemConMessageSubType aMsgSubType
) [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.

Parameters

CRemConInterfaceSelector & aInterfaceSelector The interface selector. The client must have created one of these first.
MPlayerCapabilitiesObserver *& aPlayerCapabilitiesObserver Returns a pointer to a MPlayerCapabilitiesObserver for this interface, owned by the CPlayerInfoTarget.
MPlayerApplicationSettingsObserver *& aPlayerApplicationSettingsObserver Returns a pointer to a MPlayerApplicationSettingsObserver for this interface, owned by the CPlayerInfoTarget
MPlayerEventsObserver *& aPlayerEventsObserver Returns a pointer to a MPlayerEventsObserver for this interface, owned by the CPlayerInfoTarget
MPlayerApplicationSettingsNotify & aApplicationSettingNotifier

ProcessGetCapabilities(const TDesC8 &)

void ProcessGetCapabilities ( const TDesC8 & aData ) [private]

Parameters

const TDesC8 & aData

ProcessGetCurrentPlayerApplicationValue(const TDesC8 &, TInt)

void ProcessGetCurrentPlayerApplicationValue ( const TDesC8 & aData,
TInt aOperationId
) [private]

Parameters

const TDesC8 & aData
TInt aOperationId

ProcessGetPlayStatus()

void ProcessGetPlayStatus ( ) [private]

ProcessGetPlayStatusUpdate(const TDesC8 &)

void ProcessGetPlayStatusUpdate ( const TDesC8 & aData ) [private]

Parameters

const TDesC8 & aData

ProcessGetPlayerApplicationAttributeText(const TDesC8 &, TInt)

void ProcessGetPlayerApplicationAttributeText ( const TDesC8 & aData,
TInt aOperationId
) [private]

Parameters

const TDesC8 & aData
TInt aOperationId

ProcessGetPlayerApplicationValueText(const TDesC8 &, TInt)

void ProcessGetPlayerApplicationValueText ( const TDesC8 & aData,
TInt aOperationId
) [private]

Parameters

const TDesC8 & aData
TInt aOperationId

ProcessGetStatus(TUint, TRegisterNotificationEvent)

void ProcessGetStatus ( TUint aOperationId,
TRegisterNotificationEvent aEventId
) [private]

Parameters

TUint aOperationId
TRegisterNotificationEvent aEventId

ProcessGetStatusAndBeginObserving(TUint, TRegisterNotificationEvent, const TDesC8 &)

void ProcessGetStatusAndBeginObserving ( TUint aOperationId,
TRegisterNotificationEvent aEventId,
const TDesC8 & aData
) [private]

Parameters

TUint aOperationId
TRegisterNotificationEvent aEventId
const TDesC8 & aData

ProcessListPlayerApplicationAttributes(TInt)

void ProcessListPlayerApplicationAttributes ( TInt aOperationId ) [private]

Parameters

TInt aOperationId

ProcessListPlayerApplicationValues(const TDesC8 &, TInt)

void ProcessListPlayerApplicationValues ( const TDesC8 & aData,
TInt aOperationId
) [private]

Parameters

const TDesC8 & aData
TInt aOperationId

ProcessSetPlayerApplicationValue(const TDesC8 &, TInt)

void ProcessSetPlayerApplicationValue ( const TDesC8 & aData,
TInt aOperationId
) [private]

Parameters

const TDesC8 & aData
TInt aOperationId

SendError(TInt, TInt)

void SendError ( TInt ,
TInt
) [private]

Parameters

TInt
TInt

SendError(TInt, TInt, TRemConMessageSubType)

void SendError ( TInt ,
TInt ,
TRemConMessageSubType aSubType
) [private]

Parameters

TInt
TInt
TRemConMessageSubType aSubType

SendNotificationResponse(TRegisterNotificationEvent, TRemConMessageSubType)

void SendNotificationResponse ( TRegisterNotificationEvent aEventId,
TRemConMessageSubType aMsgSubType
) [private]

Parameters

TRegisterNotificationEvent aEventId
TRemConMessageSubType aMsgSubType

Member Data Documentation

MPlayerApplicationSettingsNotify & iApplicationSettingNotifier

MPlayerApplicationSettingsNotify & iApplicationSettingNotifier [private]

TTargetBatteryStatus iBatteryStatus

TTargetBatteryStatus iBatteryStatus [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

TPlaybackStatus iPlayBackStatus [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

TPlayPosition iTrackPosition [private]