Cancelling Feature Notification

How to cancel notification of changes to a feature using RFeatureControl.

A feature is any item of functionality which can be included in a phone build or excluded from it. To cancel notification of changes to a feature using RFeatureControl, take the following steps.

Step

Action

1

Determine the Uid of the feature for which you want to cancel notification,

2

create an instance of your implementation of MFeatureObserver,

3

construct an instance of CFeatureNotifier with an instance of your observer as argument of the constructor function,

4

call its NotifyCancel() function with the Uid of the feature as argument, and

5

destroy the CFeatureNotifier object.

To cancel all feature notification requests, follow the same procedure but instead of NotifyCancel() call NotifyCancelAll( ) with no arguments.

NotifyCancel() returns:

Step

Action

6

KErrNotFound if the feature does not exist, and

7

otherwise returns a Symbian platform error code.

NotifyCancelAll() returns one of the Symbian platform error codes.