diff -r 48780e181b38 -r 578be2adaf3e Symbian3/PDK/Source/GUID-BE841768-0F22-5B9D-B783-B02C74E89AFB.dita --- a/Symbian3/PDK/Source/GUID-BE841768-0F22-5B9D-B783-B02C74E89AFB.dita Tue Jul 20 12:00:49 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-BE841768-0F22-5B9D-B783-B02C74E89AFB.dita Fri Aug 13 16:47:46 2010 +0100 @@ -1,98 +1,98 @@ - - - - - -Reporting -Feature Data for a Single Feature Dynamically Using RFeatureControl How to report feature data using RFeatureControl dynamically. -

To report feature -data for a single feature 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 -CMyClass::MyMethodL() - { - // Replace KFeatureUidx with real feature Uid. - // Open() must be called before calling any other methods. - // Disconnect is done by calling the Close() method. - RFeatureControl featureControl; - - -call its Open() function, - - TInt err = featureControl.Open(); - - - -determine the Uid of the feature you want a report on, - - -create an instance of TFeatureEntry with the Uid -of the feature as argument to the constructor, - - // Query single feature status and data - TFeatureEntry entry( KFeatureUid4 ); - - - -call the FeatureSupported() function of the RFeatureControl object -with the Uid of the feature entry as argument, and - - err = control.FeatureSupported( entry ); - if( err == KFeatureSupported ) - { - TUint32 data = entry.FeatureData(); - // do something with enabled feature's data - } - else if( err == KFeatureUnsupported ) - { - // do or do not something with disabled feature's data - } - - - -call the Close() function of the RFeatureControl object. - - // Remember to call CloseL after using RFeatureControl. - // It disconnects the Feature Manager server. - featureControl.Close(); - } - - } - - -

FeatureSupported() returns:

    -
  • KFeatureSupported if -the feature is supported,

  • -
  • KFeatureUnsupported if -the feature is not supported,

  • -
  • KErrNotFound if -the feature does not exist,

  • -
  • KErrNotReady if -the feature is uninitialised, and

  • -
  • otherwise returns an -error code.

  • -
-
-Reporting -on Several Features Dynamically Using RFeatureControl - -Reporting -on all Features on a Device Dynamically Using RFeatureControl - -Feature Manager -Collection Overview -Feature Manager -ReportingTutorials + + + + + +Reporting +Feature Data for a Single Feature Dynamically Using RFeatureControl How to report feature data using RFeatureControl dynamically. +

To report feature +data for a single feature 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 +CMyClass::MyMethodL() + { + // Replace KFeatureUidx with real feature Uid. + // Open() must be called before calling any other methods. + // Disconnect is done by calling the Close() method. + RFeatureControl featureControl; + + +call its Open() function, + + TInt err = featureControl.Open(); + + + +determine the Uid of the feature you want a report on, + + +create an instance of TFeatureEntry with the Uid +of the feature as argument to the constructor, + + // Query single feature status and data + TFeatureEntry entry( KFeatureUid4 ); + + + +call the FeatureSupported() function of the RFeatureControl object +with the Uid of the feature entry as argument, and + + err = control.FeatureSupported( entry ); + if( err == KFeatureSupported ) + { + TUint32 data = entry.FeatureData(); + // do something with enabled feature's data + } + else if( err == KFeatureUnsupported ) + { + // do or do not something with disabled feature's data + } + + + +call the Close() function of the RFeatureControl object. + + // Remember to call CloseL after using RFeatureControl. + // It disconnects the Feature Manager server. + featureControl.Close(); + } + + } + + +

FeatureSupported() returns:

    +
  • KFeatureSupported if +the feature is supported,

  • +
  • KFeatureUnsupported if +the feature is not supported,

  • +
  • KErrNotFound if +the feature does not exist,

  • +
  • KErrNotReady if +the feature is uninitialised, and

  • +
  • otherwise returns an +error code.

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