7 Nokia Corporation - initial contribution. |
7 Nokia Corporation - initial contribution. |
8 Contributors: |
8 Contributors: |
9 --> |
9 --> |
10 <!DOCTYPE task |
10 <!DOCTYPE task |
11 PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"> |
11 PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"> |
12 <task xml:lang="en" id="GUID-08ED8657-DB96-59AC-9016-602BD5680752"><title>Querying a Single Feature Statically Using CFeatureDiscovery</title><shortdesc>How to query a feature using <apiname>CFeatureDiscovery</apiname> statically. </shortdesc><prolog><metadata><keywords/></metadata></prolog><taskbody><context id="GUID-24B02CC7-7520-5EF7-8820-563B3C0F6CED"><p>To query whether a feature is supported using <xref href="GUID-2C9E6E72-2858-37A1-9D43-4E8086569520.dita"><apiname>CFeatureDiscovery</apiname></xref> statically, take the following steps. </p> </context> <steps id="GUID-2E4FA39E-AC15-5C2B-9ECC-DCDAC00A8430"><step id="GUID-142E7B45-F840-5927-A9E0-0FB2DCA1D5E5"><cmd/><info>Determine the Uid of the feature. </info> </step> <step id="GUID-9BC7F9A7-CC21-50F6-9F59-FDB3E4EEFB2C"><cmd/><info>Call <xref href="GUID-2C9E6E72-2858-37A1-9D43-4E8086569520.dita#GUID-2C9E6E72-2858-37A1-9D43-4E8086569520/GUID-364FE608-8C37-392C-A284-DE99FB350766"><apiname>CFeatureDiscovery::IsFeatureSupportedL()</apiname></xref> with the Uid of the feature as argument. To query a feature statically you do not need to create an instance of <xref href="GUID-2C9E6E72-2858-37A1-9D43-4E8086569520.dita"><apiname>CFeatureDiscovery</apiname></xref>. </info> <stepxmp><codeblock id="GUID-3454410B-2FC4-51A0-B0D7-F55067DEC2FB" xml:space="preserve"> |
12 <task id="GUID-08ED8657-DB96-59AC-9016-602BD5680752" xml:lang="en"><title>Querying |
|
13 a Single Feature Statically Using CFeatureDiscovery</title><shortdesc>How to query a feature using <codeph>CFeatureDiscovery</codeph> statically. </shortdesc><prolog><metadata><keywords/></metadata></prolog><taskbody> |
|
14 <context id="GUID-24B02CC7-7520-5EF7-8820-563B3C0F6CED"><p>To query whether |
|
15 a feature is supported using <xref href="GUID-2C9E6E72-2858-37A1-9D43-4E8086569520.dita"><apiname>CFeatureDiscovery</apiname></xref> statically, |
|
16 take the following steps. </p> </context> |
|
17 <steps id="GUID-2E4FA39E-AC15-5C2B-9ECC-DCDAC00A8430"> |
|
18 <step id="GUID-142E7B45-F840-5927-A9E0-0FB2DCA1D5E5"><cmd/> |
|
19 <info>Determine the Uid of the feature. </info> |
|
20 </step> |
|
21 <step id="GUID-9BC7F9A7-CC21-50F6-9F59-FDB3E4EEFB2C"><cmd/> |
|
22 <info>Call <xref href="GUID-2C9E6E72-2858-37A1-9D43-4E8086569520.dita#GUID-2C9E6E72-2858-37A1-9D43-4E8086569520/GUID-364FE608-8C37-392C-A284-DE99FB350766"><apiname>CFeatureDiscovery::IsFeatureSupportedL()</apiname></xref> with |
|
23 the Uid of the feature as argument. To query a feature statically you do not |
|
24 need to create an instance of <xref href="GUID-2C9E6E72-2858-37A1-9D43-4E8086569520.dita"><apiname>CFeatureDiscovery</apiname></xref>. </info> |
|
25 <stepxmp><codeblock id="GUID-3454410B-2FC4-51A0-B0D7-F55067DEC2FB" xml:space="preserve"> |
13 // Static way of using the class: |
26 // Static way of using the class: |
14 TBool isSupported = CFeatureDiscovery::IsFeatureSupportedL(<featureUIDx>); |
27 TBool isSupported = CFeatureDiscovery::IsFeatureSupportedL(<featureUIDx>); |
15 </codeblock> </stepxmp> </step> </steps> <result id="GUID-1C697056-2837-50A1-96AA-801CCC600BD2-GENID-1-7-1-21-1-1-4-1-1-5-1-13-1-9-1-3-3"><p> <xref href="GUID-B22EB47E-EDDB-3F1A-9365-4A093DBBBDFE.dita"><apiname>IsSupportedL()</apiname></xref> returns <xref href="GUID-6CA4F1ED-7947-3087-B618-D35858FAA3BC.dita"><apiname>KErrNone</apiname></xref> if the feature is supported or else an error message. </p> </result> </taskbody><related-links><link href="GUID-711594BD-9B8E-5E8A-A5A9-6C94F65AF064.dita"><linktext>Querying a single feature |
28 </codeblock> </stepxmp> |
16 dynamically using CFeatureDiscovery</linktext> </link> <link href="GUID-3D50D2DE-A202-5560-80AB-0DBAC332179F.dita"><linktext>Querying a feature set dynamically |
29 </step> |
17 using CFeatureDiscovery</linktext> </link> <link href="GUID-DAC496E8-C8D0-5EC6-9A5D-5F5DA667D083.dita"><linktext>Querying a feature set statically |
30 </steps> |
18 using CFeatureDiscovery</linktext> </link> <link href="GUID-B7A7E2E8-E727-5A01-8C1B-60679B6AA3D4.dita"><linktext>Querying a Single Feature |
31 <result id="GUID-1C697056-2837-50A1-96AA-801CCC600BD2-GENID-1-10-1-22-1-1-4-1-1-5-1-14-1-9-1-3-3"><p> <xref href="GUID-B22EB47E-EDDB-3F1A-9365-4A093DBBBDFE.dita"><apiname>IsSupportedL()</apiname></xref> returns <xref href="GUID-6CA4F1ED-7947-3087-B618-D35858FAA3BC.dita"><apiname>KErrNone</apiname></xref> if |
19 Dynamically Using RFeatureControl</linktext> </link> <link href="GUID-B71AC5E3-8AA8-55AD-916F-9E873926011B.dita"><linktext>Feature Manager Collection Overview</linktext> </link> <link href="GUID-1A22E574-831B-5D00-98BD-0DFFA9CC09A0.dita"><linktext>Feature Manager Query Tutorials</linktext> </link> </related-links></task> |
32 the feature is supported or else an error message. </p> </result> |
|
33 </taskbody><related-links> |
|
34 <link href="GUID-711594BD-9B8E-5E8A-A5A9-6C94F65AF064.dita"><linktext>Querying |
|
35 a single feature dynamically using CFeatureDiscovery</linktext> |
|
36 </link> |
|
37 <link href="GUID-3D50D2DE-A202-5560-80AB-0DBAC332179F.dita"><linktext>Querying |
|
38 a feature set dynamically using CFeatureDiscovery</linktext> |
|
39 </link> |
|
40 <link href="GUID-DAC496E8-C8D0-5EC6-9A5D-5F5DA667D083.dita"><linktext>Querying |
|
41 a feature set statically using CFeatureDiscovery</linktext> |
|
42 </link> |
|
43 <link href="GUID-B7A7E2E8-E727-5A01-8C1B-60679B6AA3D4.dita"><linktext>Querying |
|
44 a Single Feature Dynamically Using RFeatureControl</linktext> |
|
45 </link> |
|
46 <link href="GUID-B71AC5E3-8AA8-55AD-916F-9E873926011B.dita"><linktext>Feature Manager |
|
47 Collection Overview</linktext></link> |
|
48 <link href="GUID-1A22E574-831B-5D00-98BD-0DFFA9CC09A0.dita"><linktext>Feature Manager |
|
49 Query Tutorials</linktext></link> |
|
50 </related-links></task> |