diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-981C138C-1CF1-5D77-BEB5-81163AC71E44.dita --- a/Symbian3/PDK/Source/GUID-981C138C-1CF1-5D77-BEB5-81163AC71E44.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-981C138C-1CF1-5D77-BEB5-81163AC71E44.dita Tue Mar 30 11:56:28 2010 +0100 @@ -9,7 +9,15 @@ --> -Reporting on all Features on a Device Dynamically Using RFeatureControl How to list all supported features on a device using RFeatureControl dynamically.

To list all supported features on a device using RFeatureControl dynamically, take the following steps.

Create an instance of RFeatureControl, +Reporting +on all Features on a Device Dynamically Using RFeatureControl How to list all supported features on a device using RFeatureControl dynamically. +

To list all supported +features on a device using RFeatureControl dynamically, +take the following steps.

+ + +Create an instance of RFeatureControl, + // replace <featureUID> with a real Uid ) #include <featurecontrol.h> #include <featureinfo.h> // for feature definitions @@ -19,31 +27,74 @@ // Open() must be called before calling any other methods. // Disconnect is done by calling the Close() method. RFeatureControl featureControl; - call its Open() function, + + + +call its Open() function, + TInt err = featureControl.Open(); - create an instance of RFeatureArray (an array of TFeatureEntry objects), + + + +create an instance of RFeatureArray (an array of TFeatureEntry objects), + // List all supported features. // A client owned RFeatureUidArray array which will be filled with // the UIDs of supported features. RFeatureUidArray supportedFeatures; - call its ListSupportedFeatures() function with a reference to the RFeatureArray as argument, + + + +call its ListSupportedFeatures() function with a +reference to the RFeatureArray as argument, + // ListSupportedFeatures() returns one of the Symbian error codes. err = featureControl.ListSupportedFeatures( supportedFeatures ); // do something - call its Close() function, + + + +call its Close() function, + // Closes the array and frees all memory allocated to the array. supportedFeatures.Close(); - call the Close() function of the RFeatureArray object. + + + +call the Close() function of the RFeatureArray object. + // Remember to call CloseL after using RFeatureControl. // It disconnects the Feature Manager server. featureControl.Close(); } } -

ListSupportedFeatures() causes the passed in array to be filled with the Uids of supported features. It returns:

  • KErrNone if the RFeatureArray was successfully filled with Uids,

  • KServerBusy if the call failed because features were being enabled or disabled (so creating a lock), and

  • otherwise returns an error code.

Reporting Feature Data for a Single - Feature Dynamically Using RFeatureControl Reporting on Several Features - Dynamically Using RFeatureControl Feature Manager Collection Overview Feature Manager ReportingTutorials
\ No newline at end of file +
+
+
+

ListSupportedFeatures() causes +the passed in array to be filled with the Uids of supported features. It returns:

    +
  • KErrNone if +the RFeatureArray was successfully filled with Uids,

  • +
  • KServerBusy if +the call failed because features were being enabled or disabled (so creating +a lock), and

  • +
  • otherwise returns an +error code.

  • +
+
+Reporting +Feature Data for a Single Feature Dynamically Using RFeatureControl + +Reporting +on Several Features Dynamically Using RFeatureControl + +Feature Manager +Collection Overview +Feature Manager +ReportingTutorials +
\ No newline at end of file