Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <remconabsvolcontroller.h>
Link against: remconextapi1.lib

Class CRemConAbsVolController

class CRemConAbsVolController : public CRemConInterfaceBase, public MRemConInterfaceIf;

Description

Client-instantiable type supporting sending AbsVol API responses.

Derivation

Members

Defined in CRemConAbsVolController:


Construction and destruction


NewL(CRemConInterfaceSelector &,MRemConAbsVolControllerObserver &)

IMPORT_C static CRemConAbsVolController* NewL(CRemConInterfaceSelector &aInterfaceSelector, MRemConAbsVolControllerObserver &aObserver);

Description

Factory function.

Parameters

CRemConInterfaceSelector &aInterfaceSelector

The interface selector. The client must have created one of these first.

MRemConAbsVolControllerObserver &aObserver

The observer of this interface.

Return value

CRemConAbsVolController *

A new CRemConAbsVolController, owned by the interface selector.


~CRemConAbsVolController()

IMPORT_C ~CRemConAbsVolController();

Description

Destructor.

[Top]


Member functions


GetAbsoluteVolume(TRequestStatus &,TUint &)

IMPORT_C void GetAbsoluteVolume(TRequestStatus &aStatus, TUint &aNumRemotes);

Description

Sends a 'get absolute volume' command. The absolute volume will be returned in response(s) via the observer interface. Only one command per controller session can be outstanding at any one time.

Parameters

TRequestStatus &aStatus

Used by RemCon to indicate completion of the send request.

TUint &aNumRemotes

The number of remotes to which the command was sent.


SetAbsoluteVolume(TRequestStatus &,TUint,TUint,TUint &)

IMPORT_C void SetAbsoluteVolume(TRequestStatus &aStatus, TUint aAbsVol, TUint aMaxVol, TUint &aNumRemotes);

Description

Sends a 'set absolute volume' command. The volume is set to aAbsVol, on a range of zero to aMaxVol. Any responses will be returned via the observer interface. Only one command per controller session can be outstanding at any one time.

Parameters

TRequestStatus &aStatus

Used by RemCon to indicate completion of the send request.

TUint aAbsVol

The relative volume.

TUint aMaxVol

The maximum against which aAbsVol is relative.

TUint &aNumRemotes

The number of remotes to which the command was sent.


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 &)

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

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.