class MSensrvChannelListener |
Channel listener callback interface to indicate when channels have been added or removed.
This class is for use with the CSensrvChannelFinder::SetChannelListenerL() method. Clients wishing to find channels must inherit from this class and provide a reference to an instance of it in CSensrvChannelFinder::SetChannelListenerL() .
Public Member Functions | |
---|---|
void | ChannelChangeDetected (const TSensrvChannelInfo &, TSensrvChannelChangeType ) |
void | ChannelDetectionError ( CSensrvChannelFinder &, TSensrvErrorSeverity ) |
void | GetChannelListenerInterfaceL ( TUid , TAny *&) |
void | ChannelChangeDetected | ( | const TSensrvChannelInfo & | aDetectedChannel, |
TSensrvChannelChangeType | aChangeType | |||
) | [pure virtual] |
Callback implemented by a client so that they can be notified when channels are added or removed from the system when new software is installed or uninstalled.
Clients providing an implementation for this callback must ensure that the operation does not leave. If a leave does occur then the behaviour is undefined.
const TSensrvChannelInfo & aDetectedChannel | Information for the channel that has been added or removed |
TSensrvChannelChangeType aChangeType | If ESensrvChannelAdded, channel is a newly available channel. If ESensrvChannelRemoved, channel has been removed and is no longer available. |
void | ChannelDetectionError | ( | CSensrvChannelFinder & | aChannelFinder, |
TSensrvErrorSeverity | aError | |||
) | [pure virtual] |
Callback implemented by a client so that they can be notified when channel listening has failed. If the error is fatal the sensor server session has been terminated and the channel finder is no longer useable. If the error is minor some notifications have potentially been lost, however listening is still active.
Clients providing an implementation for this callback must ensure that the operation does not leave. If a leave does occur then the behaviour is undefined.
CSensrvChannelFinder & aChannelFinder | Reference to the related channelfinder object |
TSensrvErrorSeverity aError | The error severity |
void | GetChannelListenerInterfaceL | ( | TUid | aInterfaceUid, |
TAny *& | aInterface | |||
) | [pure virtual] |
Callback to future proof this API so that additional callbacks can be added in the future without breaking binary compatibility.
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.