CRemConAbsoluteVolumeController Class Reference

#include <mw/absolutevolumeapicontroller.h>

Link against: remconabsolutevolume.lib

class CRemConAbsoluteVolumeController : public CRemConInterfaceBase

Inherits from

  • CRemConAbsoluteVolumeController

    Detailed Description

    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.

    Constructor & Destructor Documentation

    ~CRemConAbsoluteVolumeController ( )

    IMPORT_C~CRemConAbsoluteVolumeController()

    Member Function Documentation

    CancelAbsoluteVolumeNotification ( )

    IMPORT_C voidCancelAbsoluteVolumeNotification()

    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.

    CancelSetAbsoluteVolume ( )

    IMPORT_C voidCancelSetAbsoluteVolume()

    NewL ( CRemConInterfaceSelector &, MRemConAbsoluteVolumeControllerObserver &, TUint32 )

    IMPORT_C CRemConAbsoluteVolumeController *NewL(CRemConInterfaceSelector &aInterfaceSelector,
    MRemConAbsoluteVolumeControllerObserver &aObserver,
    TUint32aMaxVolume
    )[static]

    Allocates and constructs a new CRemConAbsoluteVolumeController object

    panic
    AbsoluteVolumeController 0 if aMaxVolume is zero.
    ParameterDescription
    aInterfaceSelectorThe interface selector. The client must have created one of these first.
    aObserverThe observer. The client must have implemented the observer, owned by the client.
    aMaxVolumeThe client maximum volume.

    Returns: A new CRemConAbsoluteVolumeController, owned by the interface selector

    RegisterAbsoluteVolumeNotification ( )

    IMPORT_C voidRegisterAbsoluteVolumeNotification()

    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

    Pre-condition
    The client is not currently registered to receive absolute volume notifications.

    SetAbsoluteVolume ( TRequestStatus &, TUint32, TUint & )

    IMPORT_C voidSetAbsoluteVolume(TRequestStatus &aStatus,
    TUint32aVolume,
    TUint &aNumRemotes
    )

    Sets an absolute volume on the target device, Any responses will be returned via the observer interface.

    Pre-condition
    The send of any previous SetAbsoluteVolume command has completed.
    panic
    AbsoluteVolumeController 1, if aVolume greater than the client max volume.
    ParameterDescription
    aStatusIndicates the completion of the send request. The client must not block execution by using User::WaitForRequest to await completion of this send.
    aVolumeThe relative volume against the client max volume.
    aNumRemotesThe number of remotes to which the command was sent.