Categories: Symbian C++ | Symbian OS | S60 | Base/System | How To | Code Examples
This page was last modified 17:00, 23 June 2008.
How to know features supported
From Forum Nokia Wiki
CFeatureDiscovery class is used to query which features are suppported in the platform/environment.
A feature is functionality that can be optionally left out of some product configurations. Features often
depend on the underlying hardware. For example, MMC support or USB support can be features. The API consist
of the CFeatureDiscovery class which is used together with feature IDs defined in the
featureinfo.h header file.
#include <FeatDiscovery.h> #include <featureinfo.h> // for feature definitions TBool isSupported = CFeatureDiscovery::IsFeatureSupportedL(KFeatureIdUsb); TBool isIRAvailable = CFeatureDiscovery::IsFeatureSupportedL( KFeatureIdIrda ); TBool isBTAvailable = CFeatureDiscovery::IsFeatureSupportedL( KFeatureIdBt );
If querying only one feature, it is more efficient to use the class via the static method, IsFeatureSupportedL(). When querying more than one feature, it is more efficient to use the class by creating an instance and calling the IsSupported() method as follows.
//Call NewL() to create an instance of CFeatureDiscovery. CFeatureDiscovery* testA = CFeatureDiscovery::NewL(); // Call the exported IsSupported() method to query whether features // are supported in the current environment or not. TBool usbSupported = testA->IsSupported(KFeatureIdUsb); TBool mmcSupported = testA->IsSupported(KFeatureIdMmc); // Delete the created instance of CFeatureDiscovery. delete testA;
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Carbide.c++ Express can not use SDK for 3rd Edition (Beta) | SABER | Carbide.c++ and CodeWarrior Tools | 2 | 2006-02-25 05:09 |
| nokia e50 (s60 3rd) supported AT commands? | aeronine | General Discussion | 2 | 2007-12-18 17:45 |
| Record store support in Nokia 3650 | chandrasarav | Mobile Java General | 2 | 2004-08-30 11:57 |
| ECMA Script not working | as_vijay_anand | Browsing and Mark-ups | 5 | 2006-12-08 09:37 |
| why can't i use the carbide for develop(sdk problem) | bention | Carbide.c++ and CodeWarrior Tools | 5 | 2006-03-02 07:22 |
