⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_c_chat_bt_service_searcher.html

📁 一个聊天的软件
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<a name="l00158"></a>00158             ::LoadLC ( R_CHAT_ERR_NRRC_NO_RECORDS );<a name="l00159"></a>00159         <a class="code" href="class_c_chat_bt_service_searcher.html#9d387bbae93f2ae894f3e1c32e6bf1c6">iLog</a>.<a class="code" href="class_m_log.html#70fb5098d98a8b349c056b46102d5de9">LogL</a>( *errNRRCNoRecords );<a name="l00160"></a>00160         CleanupStack::PopAndDestroy ( errNRRCNoRecords );<a name="l00161"></a>00161         <a class="code" href="class_c_chat_bt_service_searcher.html#0b7e2b5c9c80bd53f50bc0e518a464ec">Finished</a>( KErrNotFound );<a name="l00162"></a>00162         <span class="keywordflow">return</span>;<a name="l00163"></a>00163         }<a name="l00164"></a>00164 <a name="l00165"></a>00165     <span class="comment">//  Request its attributes</span><a name="l00166"></a>00166     <a class="code" href="class_c_chat_bt_service_searcher.html#bf29ee7811a264162e45114d4eba89b7">iAgent</a>-&gt;AttributeRequestL( aHandle, KSdpAttrIdProtocolDescriptorList );<a name="l00167"></a>00167     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="c2bd362f01ad7e4d671a33c062b42836"></a><!-- doxytag: member="CChatBtServiceSearcher::AttributeRequestResultL" ref="c2bd362f01ad7e4d671a33c062b42836" args="(TSdpServRecordHandle aHandle, TSdpAttributeID aAttrID, CSdpAttrValue *aAttrValue)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void CChatBtServiceSearcher::AttributeRequestResultL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TSdpServRecordHandle&nbsp;</td>          <td class="mdname" nowrap> <em>aHandle</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>TSdpAttributeID&nbsp;</td>          <td class="mdname" nowrap> <em>aAttrID</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>CSdpAttrValue *&nbsp;</td>          <td class="mdname" nowrap> <em>aAttrValue</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [private]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><a class="el" href="class_c_chat_bt_service_searcher.html#c2bd362f01ad7e4d671a33c062b42836">AttributeRequestResultL()</a> Process the next attribute requested <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aHandle</em>&nbsp;</td><td>the handle of the service record </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aAttrID</em>&nbsp;</td><td>the id of the attribute </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aAttrValue</em>&nbsp;</td><td>the value of the attribute </td></tr>  </table></dl><p>Definition at line <a class="el" href="_chat_bt_service_searcher_8cpp-source.html#l00194">194</a> of file <a class="el" href="_chat_bt_service_searcher_8cpp-source.html">ChatBtServiceSearcher.cpp</a>.<p>References <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00055">TChatSdpAttributeParser::HasFinished()</a>, <a class="el" href="_chat_bt_service_searcher_8h-source.html#l00249">iHasFoundService</a>, and <a class="el" href="class_c_chat_bt_service_searcher.html#f6b20b18e1f84b2443b79ad7ad84f7a4">ProtocolList()</a>.<p>Referenced by <a class="el" href="_chat_bt_service_searcher_8cpp-source.html#l00174">AttributeRequestResult()</a>.<div class="fragment"><pre class="fragment"><a name="l00198"></a>00198     {<a name="l00199"></a>00199     __ASSERT_ALWAYS( aAttrID == KSdpAttrIdProtocolDescriptorList, <a name="l00200"></a>00200                      User::Leave( KErrNotFound ) );<a name="l00201"></a>00201     <a class="code" href="class_t_chat_sdp_attribute_parser.html">TChatSdpAttributeParser</a> parser( <a class="code" href="class_c_chat_bt_service_searcher.html#f6b20b18e1f84b2443b79ad7ad84f7a4">ProtocolList</a>(), *<span class="keyword">this</span> );<a name="l00202"></a>00202 <a name="l00203"></a>00203     <span class="comment">// Validate the attribute value, and extract the RFCOMM channel</span><a name="l00204"></a>00204     aAttrValue-&gt;AcceptVisitorL( parser );<a name="l00205"></a>00205 <a name="l00206"></a>00206     <span class="keywordflow">if</span> ( parser.HasFinished() )<a name="l00207"></a>00207         {<a name="l00208"></a>00208         <span class="comment">// Found a suitable record so change state</span><a name="l00209"></a>00209         <a class="code" href="class_c_chat_bt_service_searcher.html#407431dfc0629433a93901ecf8326200">iHasFoundService</a> = ETrue;<a name="l00210"></a>00210         }<a name="l00211"></a>00211     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="2a3dd55c534c57375233a15780a00ddf"></a><!-- doxytag: member="CChatBtServiceSearcher::AttributeRequestCompleteL" ref="2a3dd55c534c57375233a15780a00ddf" args="(TSdpServRecordHandle, TInt aError)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void CChatBtServiceSearcher::AttributeRequestCompleteL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TSdpServRecordHandle&nbsp;</td>          <td class="mdname" nowrap>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>TInt&nbsp;</td>          <td class="mdname" nowrap> <em>aError</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [private]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><a class="el" href="class_c_chat_bt_service_searcher.html#2a3dd55c534c57375233a15780a00ddf">AttributeRequestCompleteL()</a> Process the arrtibute request completion <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aHandle</em>&nbsp;</td><td>the handle of the service record </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aError</em>&nbsp;</td><td>the error code </td></tr>  </table></dl><p>Definition at line <a class="el" href="_chat_bt_service_searcher_8cpp-source.html#l00233">233</a> of file <a class="el" href="_chat_bt_service_searcher_8cpp-source.html">ChatBtServiceSearcher.cpp</a>.<p>References <a class="el" href="_chat_bt_service_searcher_8cpp-source.html#l00265">Finished()</a>, <a class="el" href="_chat_bt_service_searcher_8cpp-source.html#l00279">HasFinishedSearching()</a>, <a class="el" href="_chat_bt_service_searcher_8h-source.html#l00238">iAgent</a>, <a class="el" href="_chat_bt_service_searcher_8h-source.html#l00254">iLog</a>, and <a class="el" href="class_m_log.html#70fb5098d98a8b349c056b46102d5de9">MLog::LogL()</a>.<p>Referenced by <a class="el" href="_chat_bt_service_searcher_8cpp-source.html#l00218">AttributeRequestComplete()</a>.<div class="fragment"><pre class="fragment"><a name="l00236"></a>00236     {<a name="l00237"></a>00237     <span class="keywordflow">if</span> ( aError != KErrNone )<a name="l00238"></a>00238         {<a name="l00239"></a>00239         HBufC* errCantGetAttribute = StringLoader<a name="l00240"></a>00240             ::LoadLC ( R_CHAT_ERR_CANT_GET_ATTRIBUTE );<a name="l00241"></a>00241         <a class="code" href="class_c_chat_bt_service_searcher.html#9d387bbae93f2ae894f3e1c32e6bf1c6">iLog</a>.<a class="code" href="class_m_log.html#70fb5098d98a8b349c056b46102d5de9">LogL</a>( *errCantGetAttribute, aError );<a name="l00242"></a>00242         CleanupStack::PopAndDestroy ( errCantGetAttribute );<a name="l00243"></a>00243         }<a name="l00244"></a>00244     <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( !<a class="code" href="class_c_chat_bt_service_searcher.html#c98b1fc6cda6402cdb0019d7eb807a7c">HasFinishedSearching</a>() )<a name="l00245"></a>00245         {<a name="l00246"></a>00246         <span class="comment">// have not found a suitable record so request another</span><a name="l00247"></a>00247         <a class="code" href="class_c_chat_bt_service_searcher.html#bf29ee7811a264162e45114d4eba89b7">iAgent</a>-&gt;NextRecordRequestL();<a name="l00248"></a>00248         }<a name="l00249"></a>00249     <span class="keywordflow">else</span><a name="l00250"></a>00250         {<a name="l00251"></a>00251         HBufC* errAttrReqCom = StringLoader<a name="l00252"></a>00252             ::LoadLC ( R_CHAT_ERR_ATTR_REQ_COM );<a name="l00253"></a>00253         <a class="code" href="class_c_chat_bt_service_searcher.html#9d387bbae93f2ae894f3e1c32e6bf1c6">iLog</a>.<a class="code" href="class_m_log.html#70fb5098d98a8b349c056b46102d5de9">LogL</a>( *errAttrReqCom );<a name="l00254"></a>00254         CleanupStack::PopAndDestroy ( errAttrReqCom );<a name="l00255"></a>00255         <a class="code" href="class_c_chat_bt_service_searcher.html#0b7e2b5c9c80bd53f50bc0e518a464ec">Finished</a>();<a name="l00256"></a>00256         }<a name="l00257"></a>00257     }</pre></div><p>    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="f32d5de215f836de78f1fe4cfa4abd3e"></a><!-- doxytag: member="CChatBtServiceSearcher::iStatusObserver" ref="f32d5de215f836de78f1fe4cfa4abd3e" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">TRequestStatus* <a class="el" href="class_c_chat_bt_service_searcher.html#f32d5de215f836de78f1fe4cfa4abd3e">CChatBtServiceSearcher::iStatusObserver</a><code> [private]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>iStatusObserver pointer to the request status observer Not owned by CChatBtServiceSearcher <p>Definition at line <a class="el" href="_chat_bt_service_searcher_8h-source.html#l00209">209</a> of file <a class="el" href="_chat_bt_service_searcher_8h-source.html">ChatBtServiceSearcher.h</a>.<p>Referenced by <a class="el" href="_chat_bt_service_searcher_8cpp-source.html#l00083">FindServiceL()</a>, and <a class="el" href="_chat_bt_service_searcher_8cpp-source.html#l00265">Finished()</a>.    </td>  </tr></table><a class="anchor" name="b12a238c2f88a245d8e39cab2a45ecd3"></a><!-- doxytag: member="CChatBtServiceSearcher::iIsDeviceSelectorConnected" ref="b12a238c2f88a245d8e39cab2a45ecd3" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">TBool <a class="el" href="class_c_chat_bt_service_searcher.html#b12a238c2f88a245d8e39cab2a45ecd3">CChatBtServiceSearcher::iIsDeviceSelectorConnected</a><code> [private]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>iIsDeviceSelectorConnected is the device selector connected? <p>Definition at line <a class="el" href="_chat_bt_service_searcher_8h-source.html#l00215">215</a> of file <a class="el" href="_chat_bt_service_searcher_8h-source.html">ChatBtServiceSearcher.h</a>.<p>Referenced by <a class="el" href="_chat_bt_service_searcher_8cpp-source.html#l00059">SelectDeviceByDiscoveryL()</a>, and <a class="el" href="_chat_bt_service_searcher_8cpp-source.html#l00040">~CChatBtServiceSearcher()</a>.    </td>  </tr></table><a class="anchor" name="94faf68cac3fade8ee2f1bed47731797"></a><!-- doxytag: member="CChatBtServiceSearcher::iDeviceSelector" ref="94faf68cac3fade8ee2f1bed47731797" args="" --><p><table class="mdTable" cellpadding="2

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -