diff -r 48780e181b38 -r 578be2adaf3e Symbian3/PDK/Source/GUID-3D50D2DE-A202-5560-80AB-0DBAC332179F.dita --- a/Symbian3/PDK/Source/GUID-3D50D2DE-A202-5560-80AB-0DBAC332179F.dita Tue Jul 20 12:00:49 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-3D50D2DE-A202-5560-80AB-0DBAC332179F.dita Fri Aug 13 16:47:46 2010 +0100 @@ -1,79 +1,79 @@ - - - - - -Querying -a Feature Set Dynamically Using CFeatureDiscoveryHow to query a feature set using CFeatureDiscovery dynamically. -

To query whether -a feature is supported in a feature set using CFeatureDiscovery dynamically, -take the following steps.

- - -Decide the set of features you want to query and determine their Uids, - - -create an instance of TFeatureSet, - - // Dynamic way of using multiple feature query. This is preferred - // way to fetch support statuses if there are several features to be - // queried, because it involves less inter-process communication. - TFeatureSet featset; - - - -add each feature you want to query by calling the Append() function -of TFeatureSet with the Uid of the feature as argument -(one call for each feature), - - User::LeaveIfError( featset.Append( <featureUIDx> ) ); - User::LeaveIfError( featset.Append( <featureUIDx> ) ); - - - -create an instance of CFeatureDiscovery, - - // Call NewLC() to create an instance of CFeatureDiscovery. - // The method leaves the instance of the object on the cleanup stack. - CFeatureDiscovery* testB = CFeatureDiscovery::NewLC(); - - - -call its FeaturesSupported() function with the TFeatureSet as -argument, and - - // Call the exported IsSupported() method to query whether features - // are supported in the current environment or not. - TBool wcdmaSupported = testB->IsSupported(<featureUIDx>); - TBool gsmSupported = testB->IsSupported(<featureUIDx>); - - - -destroy the CFeatureDiscovery instance when you have -finished with it if it was created with NewL() rather than NewLC(). - - -
-Querying -a single feature dynamically using CFeatureDiscovery - -Querying -a single feature statically using CFeatureDiscovery - -Querying -a feature set statically using CFeatureDiscovery - -Querying -a Single Feature Dynamically Using RFeatureControl - -Feature Manager -Collection Overview -Feature Manager -Query Tutorials + + + + + +Querying +a Feature Set Dynamically Using CFeatureDiscoveryHow to query a feature set using CFeatureDiscovery dynamically. +

To query whether +a feature is supported in a feature set using CFeatureDiscovery dynamically, +take the following steps.

+ + +Decide the set of features you want to query and determine their Uids, + + +create an instance of TFeatureSet, + + // Dynamic way of using multiple feature query. This is preferred + // way to fetch support statuses if there are several features to be + // queried, because it involves less inter-process communication. + TFeatureSet featset; + + + +add each feature you want to query by calling the Append() function +of TFeatureSet with the Uid of the feature as argument +(one call for each feature), + + User::LeaveIfError( featset.Append( <featureUIDx> ) ); + User::LeaveIfError( featset.Append( <featureUIDx> ) ); + + + +create an instance of CFeatureDiscovery, + + // Call NewLC() to create an instance of CFeatureDiscovery. + // The method leaves the instance of the object on the cleanup stack. + CFeatureDiscovery* testB = CFeatureDiscovery::NewLC(); + + + +call its FeaturesSupported() function with the TFeatureSet as +argument, and + + // Call the exported IsSupported() method to query whether features + // are supported in the current environment or not. + TBool wcdmaSupported = testB->IsSupported(<featureUIDx>); + TBool gsmSupported = testB->IsSupported(<featureUIDx>); + + + +destroy the CFeatureDiscovery instance when you have +finished with it if it was created with NewL() rather than NewLC(). + + +
+Querying +a single feature dynamically using CFeatureDiscovery + +Querying +a single feature statically using CFeatureDiscovery + +Querying +a feature set statically using CFeatureDiscovery + +Querying +a Single Feature Dynamically Using RFeatureControl + +Feature Manager +Collection Overview +Feature Manager +Query Tutorials
\ No newline at end of file