Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: 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:
GetAbsoluteVolume(), GetInterfaceIf(), MrcibNewMessage(), NewL(), SetAbsoluteVolume(), ~CRemConAbsVolController()


Construction and destruction


NewL()

static IMPORT_C 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()

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.

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

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.

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

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

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.