Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <playerinformationtarget.h>
Link against: remconplayerinformation.lib
This item is not part of the S60 5th Edition SDK

Class CPlayerInfoTarget

class CPlayerInfoTarget : public CRemConInterfaceBase, public MRemConInterfaceIf2, private MPlayerCapabilitiesObserver, private MPlayerApplicationSettingsObserver, private MPlayerEventsObserver;

Description

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

Derivation

Members

Defined in CPlayerInfoTarget:

Inherited from MPlayerApplicationSettingsObserver:

Inherited from MPlayerCapabilitiesObserver:

Inherited from MPlayerEventsObserver:


Construction and destruction


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

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

Description

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

Return value

CPlayerInfoTarget *

A new CPlayerInfoTarget, owned by the interface selector.


~CPlayerInfoTarget()

IMPORT_C ~CPlayerInfoTarget();

Description

Destructor

[Top]


Member functions


GetInterfaceIf(TUid)

private: virtual TAny* GetInterfaceIf(TUid aUid);

Description

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

Return value

TAny *


MrcibNewMessage(TUint,const TDesC8 &,TRemConMessageSubType)

private: virtual void MrcibNewMessage(TUint aOperationId, const TDesC8 &aData, TRemConMessageSubType aMsgSubType);

Description

Called when a message comes in for this interface.

Parameters

TUint aOperationId

The interface-specific operation id.

const TDesC8 &aData

Any operation-specific data.

TRemConMessageSubType aMsgSubType


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

private: virtual void DoDefineAttributeL(TUint aAttributeID, TDesC8 &aAttributeText, RArray< TUint > &aValues, RArray< TPtrC8 > &aValueTexts, TUint aInitialValue);

Description

Parameters

TUint aAttributeID

TDesC8 &aAttributeText

RArray< TUint > &aValues

RArray< TPtrC8 > &aValueTexts

TUint aInitialValue


DoSetAttributeL(TUint,TUint)

private: virtual void DoSetAttributeL(TUint aAttributeID, TUint aValue);

Description

Parameters

TUint aAttributeID

TUint aValue


DoPlaybackStatusChanged(TPlaybackStatus)

private: virtual void DoPlaybackStatusChanged(TPlaybackStatus aStatus);

Description

Parameters

MPlayerEventsObserver::TPlaybackStatus aStatus


DoTrackChanged(TUint64,TUint32)

private: virtual void DoTrackChanged(TUint64 aTrackId, TUint32 aLengthInMilliseconds);

Description

Parameters

TUint64 aTrackId

TUint32 aLengthInMilliseconds


DoTrackReachedEnd()

private: virtual void DoTrackReachedEnd();

Description


DoTrackReachedStart()

private: virtual void DoTrackReachedStart();

Description


DoSetPlaybackPosition(TUint32)

private: virtual void DoSetPlaybackPosition(TUint32 aMilliseconds);

Description

Parameters

TUint32 aMilliseconds


DoSetBatteryStatus(TTargetBatteryStatus)

private: virtual void DoSetBatteryStatus(TTargetBatteryStatus aBatteryStatus);

Description

Parameters

MPlayerEventsObserver::TTargetBatteryStatus aBatteryStatus


DoClearEvents()

private: virtual void DoClearEvents();

Description


DoAddEvent(TRegisterNotificationEvent)

private: virtual TInt DoAddEvent(TRegisterNotificationEvent aEvent);

Description

Parameters

TRegisterNotificationEvent aEvent

Return value

TInt


DoRemoveEvent(TRegisterNotificationEvent)

private: virtual TInt DoRemoveEvent(TRegisterNotificationEvent aEvent);

Description

Parameters

TRegisterNotificationEvent aEvent

Return value

TInt


DoClearCompanyIds()

private: virtual void DoClearCompanyIds();

Description


DoAddCompanyId(TInt)

private: virtual TInt DoAddCompanyId(TInt aID);

Description

Parameters

TInt aID

Return value

TInt


DoRemoveCompanyID(TInt)

private: virtual TInt DoRemoveCompanyID(TInt aID);

Description

Parameters

TInt aID

Return value

TInt