#include <mw/absolutevolumeapicontroller.h>
class CRemConAbsoluteVolumeController : public CRemConInterfaceBase |
Public Member Functions | |
---|---|
~CRemConAbsoluteVolumeController() | |
IMPORT_C void | CancelAbsoluteVolumeNotification() |
IMPORT_C void | CancelSetAbsoluteVolume() |
IMPORT_C CRemConAbsoluteVolumeController * | NewL(CRemConInterfaceSelector &, MRemConAbsoluteVolumeControllerObserver &, TUint32) |
IMPORT_C void | RegisterAbsoluteVolumeNotification() |
IMPORT_C void | SetAbsoluteVolume(TRequestStatus &, TUint32, TUint &) |
This class is used to set and observer the volume level on a remote device.
An active scheduler is required in order to use this class.
IMPORT_C void | CancelAbsoluteVolumeNotification | ( | ) |
Called by the client to tell the controller that the client doesn't wish to receicve the volume change notification until the client re-register again.
IMPORT_C CRemConAbsoluteVolumeController * | NewL | ( | CRemConInterfaceSelector & | aInterfaceSelector, |
MRemConAbsoluteVolumeControllerObserver & | aObserver, | |||
TUint32 | aMaxVolume | |||
) | [static] |
Allocates and constructs a new CRemConAbsoluteVolumeController object
Parameter | Description |
---|---|
aInterfaceSelector | The interface selector. The client must have created one of these first. |
aObserver | The observer. The client must have implemented the observer, owned by the client. |
aMaxVolume | The client maximum volume. |
Returns: A new CRemConAbsoluteVolumeController, owned by the interface selector
IMPORT_C void | RegisterAbsoluteVolumeNotification | ( | ) |
Requests notification when the volume on the target device changes, Any responses will be returned via the observer interface.
Volume changes will continue to be provided until either the CancelAbsoluteVolumeNotification function is called, or MrcavcoCurrentVolume is called on the client with an error.
See also: MRemConAbsoluteVolumeControllerObserver::MrcavcoCurrentVolume CRemConAbsoluteVolumeController::CancelAbsoluteVolumeNotification
IMPORT_C void | SetAbsoluteVolume | ( | TRequestStatus & | aStatus, |
TUint32 | aVolume, | |||
TUint & | aNumRemotes | |||
) |
Sets an absolute volume on the target device, Any responses will be returned via the observer interface.
Parameter | Description |
---|---|
aStatus | Indicates the completion of the send request. The client must not block execution by using User::WaitForRequest to await completion of this send. |
aVolume | The relative volume against the client max volume. |
aNumRemotes | The number of remotes to which the command was sent. |