diff -r 51a74ef9ed63 -r ae94777fff8f Symbian3/SDK/Source/GUID-E93EE459-8CF4-42A1-B06C-E78E56FD25A0.dita --- a/Symbian3/SDK/Source/GUID-E93EE459-8CF4-42A1-B06C-E78E56FD25A0.dita Wed Mar 31 11:11:55 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-E93EE459-8CF4-42A1-B06C-E78E56FD25A0.dita Fri Jun 11 12:39:03 2010 +0100 @@ -1,68 +1,68 @@ - - - - - -Listening -for Property ChangesThe sensor channel APIs enable the client applications to be notified -about the changes to properties associated with a sensor channel. - Before listening for -the property changes of a sensor channel, you must open the sensor channel. -

The client applications -can use the property listener to monitor the property changes made by other -clients.

- -Create a property -listener implementation for the MSensrvPropertyListener interface. -class PropertyListener:public MSensrvPropertyListener - { - public: - void PropertyChanged(CSensrvChannel &aChannel, const TSensrvProperty &aChangedProperty) - { - ... - //Implementation - } - void PropertyError(CSensrvChannel &aChannel, TSensrvErrorSeverity aError) - { - ... - //Implementation - } - void SetPropertySuccessIndicationChanged(TSetPropertySuccessIndicator aIndication) - { - ... - //Implementation - } - void GetPropertyListenerInterfaceL(TUid aInterfaceUid, TAny *&aInterface) - { - ... - //Implementation - } - }; - -Start property listening -by passing an instance of property listener implementation using CSensrvChannel::SetPropertyListenerL(). -//Instance of the property listener implementation -PropertyListener propListener; -... -CSensrvChannel* channel; -... -channel->SetPropertyListenerL(&propListener); -... -When a property change occurs, a PropertyChanged() notification -is delivered through the MSensrvPropertyListener callback -interface to the clients that are listening for property changes. The -client that set the property is not notified. - -Once you get the -required property changes associated with the sensor channel, you can stop -property listening by passing a NULL parameter to the CSensrvChannel::SetPropertyListenerL() function. -channel->SetPropertyListenerL(); - - + + + + + +Listening +for Property ChangesThe sensor channel APIs enable the client applications to be notified +about the changes to properties associated with a sensor channel. + Before listening for +the property changes of a sensor channel, you must open the sensor channel. +

The client applications +can use the property listener to monitor the property changes made by other +clients.

+ +Create a property +listener implementation for the MSensrvPropertyListener interface. +class PropertyListener:public MSensrvPropertyListener + { + public: + void PropertyChanged(CSensrvChannel &aChannel, const TSensrvProperty &aChangedProperty) + { + ... + //Implementation + } + void PropertyError(CSensrvChannel &aChannel, TSensrvErrorSeverity aError) + { + ... + //Implementation + } + void SetPropertySuccessIndicationChanged(TSetPropertySuccessIndicator aIndication) + { + ... + //Implementation + } + void GetPropertyListenerInterfaceL(TUid aInterfaceUid, TAny *&aInterface) + { + ... + //Implementation + } + }; + +Start property listening +by passing an instance of property listener implementation using CSensrvChannel::SetPropertyListenerL(). +//Instance of the property listener implementation +PropertyListener propListener; +... +CSensrvChannel* channel; +... +channel->SetPropertyListenerL(&propListener); +... +When a property change occurs, a PropertyChanged() notification +is delivered through the MSensrvPropertyListener callback +interface to the clients that are listening for property changes. The +client that set the property is not notified. + +Once you get the +required property changes associated with the sensor channel, you can stop +property listening by passing a NULL parameter to the CSensrvChannel::SetPropertyListenerL() function. +channel->SetPropertyListenerL(); + +
\ No newline at end of file