MFeatureObserver Class Reference

class MFeatureObserver

Class provides a callback interface for handling notifification of changes in features. The client derives a class from this interface and implements the HandleNotifyChange-methods that interest it.

Feature Notifier API consists of the classes CFeatureNotifier and MFeatureObserver . TFeatureEntry and TFeatureChangeType are defined in featurecmn.h.

Member Functions Documentation

HandleNotifyChange(TFeatureChangeType, TFeatureEntry)

void HandleNotifyChange ( TFeatureChangeType aType,
TFeatureEntry aFeature
) [pure virtual]

This callback method is used to notify the client about the change in a feature.

TFeatureChangeType TFeatureEntry

Parameters

TFeatureChangeType aType Type of the change.
TFeatureEntry aFeature The changed feature. Note that although aFeature is a TFeatureEntry object, only the iFeatureID field is set by the server.

HandleNotifyError(TInt)

void HandleNotifyError ( TInt aError ) [pure virtual]

This callback method is used to notify the client about errors in the CFeatureNotifier. Any error in the notifier causes the notifier to stop handling of notifications. Handling can be restarted with a call to aNotifier->NotifyRequest(), if the error is non-fatal.

Parameters

TInt aError One of the Symbian OS error codes.