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

📄 class_c_chat_service_searcher.html

📁 一个聊天的软件
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<p>    </td>  </tr></table><a class="anchor" name="f997177ee5a23aed717d3bc9fb37f5a9"></a><!-- doxytag: member="CChatServiceSearcher::Port" ref="f997177ee5a23aed717d3bc9fb37f5a9" 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">TInt CChatServiceSearcher::Port           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></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_service_searcher.html#f997177ee5a23aed717d3bc9fb37f5a9">Port()</a> Retrieve the port on which the service is installed <dl compact><dt><b>Returns:</b></dt><dd>the port number </dd></dl><p>Definition at line <a class="el" href="_chat_service_searcher_8cpp-source.html#l00159">159</a> of file <a class="el" href="_chat_service_searcher_8cpp-source.html">ChatServiceSearcher.cpp</a>.<p>References <a class="el" href="_chat_service_searcher_8h-source.html#l00116">iPort</a>.<p>Referenced by <a class="el" href="_chat_bt_8cpp-source.html#l00377">CChatBt::ConnectToServerL()</a>.<div class="fragment"><pre class="fragment"><a name="l00160"></a>00160     {<a name="l00161"></a>00161     <span class="keywordflow">return</span> <a class="code" href="class_c_chat_service_searcher.html#ca13b175f9849e6ff5ce23ea58682739">iPort</a>;<a name="l00162"></a>00162     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="cd96c3f1564cfbcd93a2ce89f92d7d3a"></a><!-- doxytag: member="CChatServiceSearcher::ServiceClass" ref="cd96c3f1564cfbcd93a2ce89f92d7d3a" args="() const " --><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">const TUUID &amp; CChatServiceSearcher::ServiceClass           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [protected, virtual]</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_service_searcher.html#cd96c3f1564cfbcd93a2ce89f92d7d3a">ServiceClass()</a> <dl compact><dt><b>Returns:</b></dt><dd>the service class uid. </dd></dl><p>Implements <a class="el" href="class_c_chat_bt_service_searcher.html#a77aa7bd3e321d24397563b01bb689af">CChatBtServiceSearcher</a>.<p>Definition at line <a class="el" href="_chat_service_searcher_8cpp-source.html#l00086">86</a> of file <a class="el" href="_chat_service_searcher_8cpp-source.html">ChatServiceSearcher.cpp</a>.<p>References <a class="el" href="_chat_service_searcher_8h-source.html#l00110">iServiceClass</a>.<div class="fragment"><pre class="fragment"><a name="l00087"></a>00087     {<a name="l00088"></a>00088     <span class="keywordflow">return</span> <a class="code" href="class_c_chat_service_searcher.html#1bc54a0225f7f74e4f2cb7302d5e38ba">iServiceClass</a>;<a name="l00089"></a>00089     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="a8b0373828fe331fbc50b6e0b03a4942"></a><!-- doxytag: member="CChatServiceSearcher::FoundElementL" ref="a8b0373828fe331fbc50b6e0b03a4942" args="(TInt aKey, CSdpAttrValue &amp;aValue)" --><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 CChatServiceSearcher::FoundElementL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TInt&nbsp;</td>          <td class="mdname" nowrap> <em>aKey</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>CSdpAttrValue &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>aValue</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected, virtual]</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_service_searcher.html#a8b0373828fe331fbc50b6e0b03a4942">FoundElementL()</a> Read the data element <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aKey</em>&nbsp;</td><td>a key that identifies the element </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aValue</em>&nbsp;</td><td>the data element </td></tr>  </table></dl><p>Implements <a class="el" href="class_c_chat_bt_service_searcher.html#b081256c1393c2846e7a2dc3ba0fce33">CChatBtServiceSearcher</a>.<p>Definition at line <a class="el" href="_chat_service_searcher_8cpp-source.html#l00147">147</a> of file <a class="el" href="_chat_service_searcher_8cpp-source.html">ChatServiceSearcher.cpp</a>.<p>References <a class="el" href="_chat_service_searcher_8h-source.html#l00116">iPort</a>.<div class="fragment"><pre class="fragment"><a name="l00148"></a>00148     {<a name="l00149"></a>00149     __ASSERT_ALWAYS( aKey == static_cast&lt;TInt&gt;( KRfcommChannel ), <a name="l00150"></a>00150         Panic( EChatBtServiceSearcherProtocolRead ) );<a name="l00151"></a>00151     <a class="code" href="class_c_chat_service_searcher.html#ca13b175f9849e6ff5ce23ea58682739">iPort</a> = aValue.Uint();<a name="l00152"></a>00152     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="cb57dffc4b0711f6c4ba22a88abc6510"></a><!-- doxytag: member="CChatServiceSearcher::ProtocolList" ref="cb57dffc4b0711f6c4ba22a88abc6510" 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">RArray&lt; <a class="el" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html">TChatSdpAttributeParser::TChatSdpAttributeNode</a> &gt; &amp; CChatServiceSearcher::ProtocolList           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [protected, virtual]</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_service_searcher.html#cb57dffc4b0711f6c4ba22a88abc6510">ProtocolList()</a> <dl compact><dt><b>Returns:</b></dt><dd>the attribute list. </dd></dl><p>Implements <a class="el" href="class_c_chat_bt_service_searcher.html#f6b20b18e1f84b2443b79ad7ad84f7a4">CChatBtServiceSearcher</a>.<p>Definition at line <a class="el" href="_chat_service_searcher_8cpp-source.html#l00097">97</a> of file <a class="el" href="_chat_service_searcher_8cpp-source.html">ChatServiceSearcher.cpp</a>.<p>References <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00245">TChatSdpAttributeParser::TChatSdpAttributeNode::SetCommand()</a>, <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00255">TChatSdpAttributeParser::TChatSdpAttributeNode::SetType()</a>, and <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00265">TChatSdpAttributeParser::TChatSdpAttributeNode::SetValue()</a>.<div class="fragment"><pre class="fragment"><a name="l00098"></a>00098     {<a name="l00099"></a>00099     <a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html">TChatSdpAttributeParser::TChatSdpAttributeNode</a> attrib;<a name="l00100"></a>00100     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#156c0e62f47d5ceac7079a53a4c0c546">SetCommand</a>( TChatSdpAttributeParser::ECheckType );<a name="l00101"></a>00101     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#6e32f35a92af83af7f7250d94be6e1de">SetType</a>( ETypeDES );<a name="l00102"></a>00102     <a class="code" href="class_c_chat_service_searcher.html#742c2eb510a278b67fb80fedb30bd71a">iProtocolArray</a>.Append( attrib );<a name="l00103"></a>00103 <a name="l00104"></a>00104     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#156c0e62f47d5ceac7079a53a4c0c546">SetCommand</a>( TChatSdpAttributeParser::ECheckType );<a name="l00105"></a>00105     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#6e32f35a92af83af7f7250d94be6e1de">SetType</a>( ETypeDES );<a name="l00106"></a>00106     <a class="code" href="class_c_chat_service_searcher.html#742c2eb510a278b67fb80fedb30bd71a">iProtocolArray</a>.Append( attrib );<a name="l00107"></a>00107 <a name="l00108"></a>00108     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#156c0e62f47d5ceac7079a53a4c0c546">SetCommand</a>( TChatSdpAttributeParser::ECheckValue );<a name="l00109"></a>00109     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#6e32f35a92af83af7f7250d94be6e1de">SetType</a>( ETypeUUID );<a name="l00110"></a>00110     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#fc2d1e44fb7a2749358617eb9c8034ca">SetValue</a>( KL2CAP );<a name="l00111"></a>00111     <a class="code" href="class_c_chat_service_searcher.html#742c2eb510a278b67fb80fedb30bd71a">iProtocolArray</a>.Append( attrib );<a name="l00112"></a>00112 <a name="l00113"></a>00113     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#156c0e62f47d5ceac7079a53a4c0c546">SetCommand</a>( TChatSdpAttributeParser::ECheckEnd );<a name="l00114"></a>00114     <a class="code" href="class_c_chat_service_searcher.html#742c2eb510a278b67fb80fedb30bd71a">iProtocolArray</a>.Append( attrib );<a name="l00115"></a>00115   <a name="l00116"></a>00116     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#156c0e62f47d5ceac7079a53a4c0c546">SetCommand</a>( TChatSdpAttributeParser::ECheckType );<a name="l00117"></a>00117     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#6e32f35a92af83af7f7250d94be6e1de">SetType</a>( ETypeDES );<a name="l00118"></a>00118     <a class="code" href="class_c_chat_service_searcher.html#742c2eb510a278b67fb80fedb30bd71a">iProtocolArray</a>.Append( attrib );<a name="l00119"></a>00119 <a name="l00120"></a>00120     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#156c0e62f47d5ceac7079a53a4c0c546">SetCommand</a>( TChatSdpAttributeParser::ECheckValue );<a name="l00121"></a>00121     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#6e32f35a92af83af7f7250d94be6e1de">SetType</a>( ETypeUUID );<a name="l00122"></a>00122     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#fc2d1e44fb7a2749358617eb9c8034ca">SetValue</a>( KRFCOMM );<a name="l00123"></a>00123     <a class="code" href="class_c_chat_service_searcher.html#742c2eb510a278b67fb80fedb30bd71a">iProtocolArray</a>.Append( attrib );<a name="l00124"></a>00124   <a name="l00125"></a>00125     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#156c0e62f47d5ceac7079a53a4c0c546">SetCommand</a>( TChatSdpAttributeParser::EReadValue );<a name="l00126"></a>00126     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#6e32f35a92af83af7f7250d94be6e1de">SetType</a>( ETypeUint );<a name="l00127"></a>00127     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#fc2d1e44fb7a2749358617eb9c8034ca">SetValue</a>( KRfcommChannel );<a name="l00128"></a>00128     <a class="code" href="class_c_chat_service_searcher.html#742c2eb510a278b67fb80fedb30bd71a">iProtocolArray</a>.Append( attrib );<a name="l00129"></a>00129 <a name="l00130"></a>00130     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#156c0e62f47d5ceac7079a53a4c0c546">SetCommand</a>( TChatSdpAttributeParser::ECheckEnd );<a name="l00131"></a>00131     <a class="code" href="class_c_chat_service_searcher.html#742c2eb510a278b67fb80fedb30bd71a">iProtocolArray</a>.Append( attrib );<a name="l00132"></a>00132   <a name="l00133"></a>00133     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#156c0e62f47d5ceac7079a53a4c0c546">SetCommand</a>( TChatSdpAttributeParser::ECheckEnd );<a name="l00134"></a>00134     <a class="code" href="class_c_chat_service_searcher.html#742c2eb510a278b67fb80fedb30bd71a">iProtocolArray</a>.Append( attrib );<a name="l00135"></a>00135 <a name="l00136"></a>00136     attrib.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#156c0e62f47d5ceac7079a53a4c0c546">SetCommand</a>( TChatSdpAttributeParser::EFinished );<a name="l00137"></a>00137     <a class="code" href="class_c_chat_service_searcher.html#742c2eb510a278b67fb80fedb30bd71a">iProtocolArray</a>.Append( attrib );<a name="l00138"></a>00138   <a name="l00139"></a>00139     <span class="keywordflow">return</span> <a class="code" href="class_c_chat_service_searcher.html#742c2eb510a278b67fb80fedb30bd71a">iProtocolArray</a>;<a name="l00140"></a>00140     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="9ce34ba0b947863222da3c63d0481044"></a><!-- doxytag: member="CChatServiceSearcher::ConstructL" ref="9ce34ba0b947863222da3c63d0481044" args="()" --><p>

⌨️ 快捷键说明

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