Symbian3/PDK/Source/GUID-08ED8657-DB96-59AC-9016-602BD5680752.dita
author Graeme Price <GRAEME.PRICE@NOKIA.COM>
Fri, 15 Oct 2010 14:32:18 +0100
changeset 15 307f4279f433
parent 12 80ef3a206772
permissions -rw-r--r--
Initial contribution of the Adaptation Documentation.

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"Eclipse Public License v1.0" which accompanies this distribution, 
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
    Nokia Corporation - initial contribution.
Contributors: 
-->
<!DOCTYPE task
  PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="GUID-08ED8657-DB96-59AC-9016-602BD5680752" xml:lang="en"><title>Querying
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>
<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">
  // Static way of using the class:
  TBool isSupported = CFeatureDiscovery::IsFeatureSupportedL(&lt;featureUIDx&gt;);
</codeblock> </stepxmp>
</step>
</steps>
<result id="GUID-1C697056-2837-50A1-96AA-801CCC600BD2-GENID-1-12-1-27-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
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                 dynamically using CFeatureDiscovery</linktext>
</link>
<link href="GUID-3D50D2DE-A202-5560-80AB-0DBAC332179F.dita"><linktext>Querying
a feature set dynamically                 using CFeatureDiscovery</linktext>
</link>
<link href="GUID-DAC496E8-C8D0-5EC6-9A5D-5F5DA667D083.dita"><linktext>Querying
a feature set statically                 using CFeatureDiscovery</linktext>
</link>
<link href="GUID-B7A7E2E8-E727-5A01-8C1B-60679B6AA3D4.dita"><linktext>Querying
a Single Feature                 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>