CRemConAbsoluteVolumeController Class Reference
class CRemConAbsoluteVolumeController : public CRemConInterfaceBase |
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.
Inherits from
- CRemConAbsoluteVolumeController
Inherited Functions |
---|
| CBase::CBase() |
| CBase::Delete(CBase *) |
| CBase::Extension_(TUint,TAny *&,TAny *) |
| CBase::operator new(TUint) |
| CBase::operator new(TUint,TAny *) |
| CBase::operator new(TUint,TLeave) |
| CBase::operator new(TUint,TLeave,TUint) |
| CBase::operator new(TUint,TUint) |
| CBase::~CBase() |
| CRemConInterfaceBase::BaseConstructL() |
| CRemConInterfaceBase::BaseConstructL(RRemConInterfaceFeatures &) |
| CRemConInterfaceBase::BaseConstructL(RRemConInterfaceFeatures &,TBool) |
| CRemConInterfaceBase::Bulk()const |
| CRemConInterfaceBase::CRemConInterfaceBase(TUid,TUint,CRemConInterfaceSelector &,TRemConClientType) |
| CRemConInterfaceBase::Cancel() |
| CRemConInterfaceBase::InterfaceSelector() |
| CRemConInterfaceBase::InterfaceUid()const |
| CRemConInterfaceBase::MaxLength()const |
| CRemConInterfaceBase::Target(TRemConClientType) |
| CRemConInterfaceBase::Type()const |
| CRemConInterfaceBase::~CRemConInterfaceBase() |
Constructor & Destructor Documentation
CRemConAbsoluteVolumeController(CRemConInterfaceSelector &, MRemConAbsoluteVolumeControllerObserver &, TUint32)
~CRemConAbsoluteVolumeController()
IMPORT_C | ~CRemConAbsoluteVolumeController | ( | ) | |
Member Functions Documentation
AsyncErrorCallBack(TAny *)
TInt
| AsyncErrorCallBack | ( | TAny * | aObserver | ) | [private, static] |
CancelAbsoluteVolumeNotification()
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.
CancelSetAbsoluteVolume()
IMPORT_C void | CancelSetAbsoluteVolume | ( | ) | |
ConstructL()
void | ConstructL | ( | ) | [private] |
GetInterfaceIf(TUid)
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.
HandleNotify(const TDesC8 &, TRemConMessageSubType)
Process the 'volume changed notification response'
HandleSetAbsoluteVolumeResponse(const TDesC8 &)
void | HandleSetAbsoluteVolumeResponse | ( | const TDesC8 & | aData | ) | [private] |
Process the 'set absolute volume response'
Parameters
const TDesC8 & aData | The response data. |
KickOffSendIfNeeded()
void | KickOffSendIfNeeded | ( | ) | [private] |
MavsoSendComplete(TInt)
void | MavsoSendComplete | ( | TInt | aResult | ) | [private] |
MrcibNewMessage(TUint, const TDesC8 &, TRemConMessageSubType)
NewL(CRemConInterfaceSelector &, MRemConAbsoluteVolumeControllerObserver &, TUint32)
RegisterAbsoluteVolumeNotification()
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.
RegisterNotifySendComplete()
void | RegisterNotifySendComplete | ( | ) | [private] |
SendNotify()
void | SendNotify | ( | ) | [private] |
SendSetAbsoluteVolume()
void | SendSetAbsoluteVolume | ( | ) | [private] |
SetAbsoluteVolume(TRequestStatus &, TUint32, TUint &)
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.
Parameters
TRequestStatus & aStatus | Indicates the completion of the send request. The client must not block execution by using User::WaitForRequest to await completion of this send. |
TUint32 aVolume | The relative volume against the client max volume. |
TUint & aNumRemotes | The number of remotes to which the command was sent. |
SetAbsoluteVolumeSendComplete(TInt)
void | SetAbsoluteVolumeSendComplete | ( | TInt | aResult | ) | [private] |
VolumeUpdate(TUint32, TUint32)
Member Enumerations Documentation
Enum TRequestState
Enumerators
ENotInUse = 0 | |
ESending | |
EPending | |
Member Data Documentation
TRequestState
iAbsVolRequest
CAbsVolSender * iAbsVolSender
TUint * iClientNumRemotes
TUint * | iClientNumRemotes | [private] |
TRequestStatus * iClientStatus
TUint32
iCurrentMaxVolume
TBool
iNotificationRequested
TBool
| iNotificationRequested | [private] |
TBuf8< KAbsoluteVolumeRequestDataSize > iNotifyData
TRequestState
iNotifyRequest
MRemConAbsoluteVolumeControllerObserver & iObserver
TBuf8< KAbsoluteVolumeRequestDataSize > iSetData
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.