Symbian3/SDK/Source/GUID-44FDDA27-1A5D-42B5-8DE0-D9E88EB75C93.dita
changeset 13 48780e181b38
parent 8 ae94777fff8f
equal deleted inserted replaced
12:80ef3a206772 13:48780e181b38
    12 <task id="GUID-44FDDA27-1A5D-42B5-8DE0-D9E88EB75C93" xml:lang="en"><title>Querying
    12 <task id="GUID-44FDDA27-1A5D-42B5-8DE0-D9E88EB75C93" xml:lang="en"><title>Querying
    13 for Sensor Channels</title><shortdesc>You can retrieve a list of sensor channels that are available for
    13 for Sensor Channels</title><shortdesc>You can retrieve a list of sensor channels that are available for
    14 a particular sensor type. Once you get the list of sensor channels that are
    14 a particular sensor type. Once you get the list of sensor channels that are
    15 active, you can perform any required operations such as configuring sensor
    15 active, you can perform any required operations such as configuring sensor
    16 channel properties, controlling sensor channels and so on.</shortdesc><prolog><metadata><keywords/></metadata></prolog><taskbody>
    16 channel properties, controlling sensor channels and so on.</shortdesc><prolog><metadata><keywords/></metadata></prolog><taskbody>
    17 <steps id="GUID-4DD07DEC-6017-4237-BE46-1D69E5FBD744-GENID-1-10-1-9-1-1-6-1-4-1-4-1-4-1-3-1">
    17 <steps id="GUID-4DD07DEC-6017-4237-BE46-1D69E5FBD744-GENID-1-10-1-11-1-1-6-1-4-1-4-1-4-1-3-1">
    18 <step id="GUID-EE1655E2-D4C4-4593-A0E1-BD1DFACB0351"><cmd>Create an instance
    18 <step id="GUID-EE1655E2-D4C4-4593-A0E1-BD1DFACB0351"><cmd>Create an instance
    19 of <codeph>TSensrvChannelInfo</codeph> and set the required channel type as
    19 of <codeph>TSensrvChannelInfo</codeph> and set the required channel type as
    20 the search criteria. For example, to query for all double tapping channels
    20 the search criteria. For example, to query for all double tapping channels
    21 provided by accelerometer sensor, set the channel type as <codeph>KSensrvChannelTypeIdAccelerometerDoubleTappingData</codeph>.</cmd>
    21 provided by accelerometer sensor, set the channel type as <codeph>KSensrvChannelTypeIdAccelerometerDoubleTappingData</codeph>.</cmd>
    22 <stepxmp><codeblock xml:space="preserve">TSensrvChannelInfo channelInfo;
    22 <stepxmp><codeblock xml:space="preserve">TSensrvChannelInfo channelInfo;
    26 of <codeph>CSensrvChannelFinder</codeph> class and use the <xref href="GUID-5F108D03-C8A6-3EF9-B103-2E8916633602.dita#GUID-5F108D03-C8A6-3EF9-B103-2E8916633602/GUID-E58BAF1B-57AA-3E85-A4F9-8C6C29043FBD"><apiname>CSensrvChannelFinder::FindChannelsL()</apiname></xref> function
    26 of <codeph>CSensrvChannelFinder</codeph> class and use the <xref href="GUID-5F108D03-C8A6-3EF9-B103-2E8916633602.dita#GUID-5F108D03-C8A6-3EF9-B103-2E8916633602/GUID-E58BAF1B-57AA-3E85-A4F9-8C6C29043FBD"><apiname>CSensrvChannelFinder::FindChannelsL()</apiname></xref> function
    27 to query for available sensor channels.</cmd>
    27 to query for available sensor channels.</cmd>
    28 <stepxmp><codeblock xml:space="preserve">CSensrvChannelFinder* finder = CSensrvChannelFinder::NewL();
    28 <stepxmp><codeblock xml:space="preserve">CSensrvChannelFinder* finder = CSensrvChannelFinder::NewL();
    29 finder-&gt;FindChannelsL(channelList, searchParameters);</codeblock></stepxmp>
    29 finder-&gt;FindChannelsL(channelList, searchParameters);</codeblock></stepxmp>
    30 </step>
    30 </step>
    31 <step id="GUID-9A69E5AD-E938-4092-A8C2-CB65C37C8962-GENID-1-10-1-9-1-1-6-1-4-1-4-1-4-1-3-1-3"><cmd>Create an instance
    31 <step id="GUID-9A69E5AD-E938-4092-A8C2-CB65C37C8962-GENID-1-10-1-11-1-1-6-1-4-1-4-1-4-1-3-1-3"><cmd>Create an instance
    32 of <codeph>RSensrvChannelInfoList</codeph> to store the list of sensor channels.</cmd>
    32 of <codeph>RSensrvChannelInfoList</codeph> to store the list of sensor channels.</cmd>
    33 <stepxmp><codeblock xml:space="preserve">RSensrvChannelInfoList channelInfoList;</codeblock></stepxmp>
    33 <stepxmp><codeblock xml:space="preserve">RSensrvChannelInfoList channelInfoList;</codeblock></stepxmp>
    34 </step>
    34 </step>
    35 </steps>
    35 </steps>
    36 <result id="GUID-F26EFE38-DF01-4531-89AD-191049E31F36">       <p>The <parmname>channelInfoList</parmname> contains
    36 <result id="GUID-F26EFE38-DF01-4531-89AD-191049E31F36">       <p>The <parmname>channelInfoList</parmname> contains