class CRemConAbsoluteVolumeTarget : public CRemConInterfaceBase |
Client-instantiable type supporting sending absolute volume API responses for Set Absolute Volume and Register Absolute Volume Change Notification. This API should be used in preference to the extapi.
Public Member Functions | |
---|---|
~CRemConAbsoluteVolumeTarget() | |
IMPORT_C void | AbsoluteVolumeChanged(TUint32) |
IMPORT_C CRemConAbsoluteVolumeTarget * | NewL(CRemConInterfaceSelector &, MRemConAbsoluteVolumeTargetObserver &, TUint32, TUint32) |
IMPORT_C void | SetAbsoluteVolumeResponse(TUint32, TInt) |
Private Member Functions | |
---|---|
CRemConAbsoluteVolumeTarget(CRemConInterfaceSelector &, MRemConAbsoluteVolumeTargetObserver &, TUint32, TUint32) | |
void | ConstructL() |
TAny * | GetInterfaceIf(TUid) |
void | MrcibNewMessage(TUint, const TDesC8 &, TRemConMessageSubType) |
void | ProcessGetStatus() |
void | ProcessGetStatusAndBeginObserving() |
void | ProcessSetAbsoluteVolume(const TDesC8 &) |
void | SendError(TInt, TUint) |
void | SendNotificationResponse(TRemConMessageSubType) |
Private Attributes | |
---|---|
TBool | iAbsoluteVolumeNotificationRequest |
TUint32 | iClientMaxVolume |
TUint32 | iClientVolume |
MRemConAbsoluteVolumeTargetObserver & | iObserver |
RBuf8 | iOutBuf |
CRemConAbsoluteVolumeTarget | ( | CRemConInterfaceSelector & | aInterfaceSelector, |
MRemConAbsoluteVolumeTargetObserver & | aObserver, | ||
TUint32 | aVolume, | ||
TUint32 | aMaxVolume | ||
) | [private] |
Constructor.
CRemConInterfaceSelector & aInterfaceSelector | The interface selector. |
MRemConAbsoluteVolumeTargetObserver & aObserver | The observer of this interface. |
TUint32 aVolume | The initial relative volume on the client |
TUint32 aMaxVolume | The maximum volume on the client against which aVolume is relative. |
IMPORT_C void | AbsoluteVolumeChanged | ( | TUint32 | aVolume | ) |
Must be called each time the volume changes on the client.
It is used to inform the controller if it has requested updates on the client volume change.
panic
AbsoluteVolume 1, if volume greater than the client max volume.
TUint32 aVolume | The relative volume against the client maximum volume. |
TAny * | GetInterfaceIf | ( | TUid | aUid | ) | [private, virtual] |
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.
TUid aUid |
void | MrcibNewMessage | ( | TUint | aOperationId, |
const TDesC8 & | aData, | |||
TRemConMessageSubType | aMsgSubType | |||
) | [private] |
TUint aOperationId | |
const TDesC8 & aData | |
TRemConMessageSubType aMsgSubType |
IMPORT_C CRemConAbsoluteVolumeTarget * | NewL | ( | CRemConInterfaceSelector & | aInterfaceSelector, |
MRemConAbsoluteVolumeTargetObserver & | aObserver, | |||
TUint32 | aVolume, | |||
TUint32 | aMaxVolume | |||
) | [static] |
Allocates and constructs a new CRemConAbsoluteVolumeTarget object
A new CRemConAbsoluteVolumeTarget, owned by the interface selector.
panic
AbsoluteVolumeTarget 0 if aMaxVolume is zero AbsoluteVolumeTarget 1 if aVolume greater than aMaxVolume
CRemConInterfaceSelector & aInterfaceSelector | The interface selector. The client must have created one of these first. |
MRemConAbsoluteVolumeTargetObserver & aObserver | The observer through which the client will receive absolute volume commands from M class MRemConAbsoluteVolumeTargetObserver. |
TUint32 aVolume | The initial relative volume on the client. |
TUint32 aMaxVolume | The client maximum volume against which aVolume is relative. |
void | ProcessGetStatus | ( | ) | [private] |
Processes the request for notify command waiting changed.
void | ProcessGetStatusAndBeginObserving | ( | ) | [private] |
Processes the request for notify command waiting interim.
void | ProcessSetAbsoluteVolume | ( | const TDesC8 & | aData | ) | [private] |
Processes the request for setting absolute volume.
const TDesC8 & aData | The absolute volume data to be setted. |
void | SendNotificationResponse | ( | TRemConMessageSubType | aMsgSubType | ) | [private] |
Sends absolute volume interim or change response according to the message type aMsgSubType
TRemConMessageSubType aMsgSubType | The remcon submessage type. |
IMPORT_C void | SetAbsoluteVolumeResponse | ( | TUint32 | aVolume, |
TInt | aErr | |||
) |
Called by the client in response to a MrcavtoSetAbsoluteVolume() call.
panic
AbsoluteVolumeTarget 1, if volume is greater than max volume.
MRemConAbsoluteVolumeTargetObserver & | iObserver | [private] |