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

📄 class_c_chat_bt.html

📁 一个聊天的软件
💻 HTML
📖 第 1 页 / 共 5 页
字号:
    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">CChatBt::CChatBt           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_m_log.html">MLog</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aLog</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><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.html#9dd1139a1264185c45de50b9b5fc02d5">CChatBt()</a> Constructs this object <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aLog</em>&nbsp;</td><td>the log to send output to </td></tr>  </table></dl><p>Definition at line <a class="el" href="_chat_bt_8cpp-source.html#l00058">58</a> of file <a class="el" href="_chat_bt_8cpp-source.html">ChatBt.cpp</a>.<p>References <a class="el" href="_chat_base_8cpp-source.html#l00130">CChatBase::SetState()</a>.<p>Referenced by <a class="el" href="_chat_bt_8cpp-source.html#l00045">NewLC()</a>.<div class="fragment"><pre class="fragment"><a name="l00058"></a>00058                              : <a name="l00059"></a>00059     <a class="code" href="class_c_chat_base.html#28ae7c04dd1166a7f0a6622146281234">CChatBase</a>( aLog ),<a name="l00060"></a>00060     <a class="code" href="class_c_chat_bt.html#9d387bbae93f2ae894f3e1c32e6bf1c6">iLog</a>( aLog )<a name="l00061"></a>00061     {<a name="l00062"></a>00062     <a class="code" href="class_c_chat_base.html#deacd9f98d0548748cf116698aea2be0">SetState</a>( EWaitingToGetDevice );<a name="l00063"></a>00063     }</pre></div><p>    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="c650367611ceff6213885d162a246c4e"></a><!-- doxytag: member="CChatBt::NewL" ref="c650367611ceff6213885d162a246c4e" args="(MLog &amp;aLog)" --><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"><a class="el" href="class_c_chat_bt.html">CChatBt</a> * CChatBt::NewL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_m_log.html">MLog</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aLog</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [static]</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.html#c650367611ceff6213885d162a246c4e">NewL()</a> Construct a CChatBt <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aLog</em>&nbsp;</td><td>the log to send output to </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>a pointer to the created instance of CChatBt </dd></dl><p>Reimplemented from <a class="el" href="class_c_chat_base.html#c650367611ceff6213885d162a246c4e">CChatBase</a>.<p>Definition at line <a class="el" href="_chat_bt_8cpp-source.html#l00033">33</a> of file <a class="el" href="_chat_bt_8cpp-source.html">ChatBt.cpp</a>.<p>References <a class="el" href="_chat_bt_8cpp-source.html#l00045">NewLC()</a>.<p>Referenced by <a class="el" href="_chat_appui_8cpp-source.html#l00043">CChatAppUi::ConstructL()</a>.<div class="fragment"><pre class="fragment"><a name="l00034"></a>00034     {<a name="l00035"></a>00035     <a class="code" href="class_c_chat_bt.html">CChatBt</a>* <span class="keyword">self</span> = <a class="code" href="class_c_chat_bt.html#1583db2c4c2022de2f2362c0d588699f">NewLC</a>( aLog );<a name="l00036"></a>00036     CleanupStack::Pop( <span class="keyword">self</span> );<a name="l00037"></a>00037     <span class="keywordflow">return</span> <span class="keyword">self</span>;<a name="l00038"></a>00038     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="1583db2c4c2022de2f2362c0d588699f"></a><!-- doxytag: member="CChatBt::NewLC" ref="1583db2c4c2022de2f2362c0d588699f" args="(MLog &amp;aLog)" --><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"><a class="el" href="class_c_chat_bt.html">CChatBt</a> * CChatBt::NewLC           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_m_log.html">MLog</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aLog</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [static]</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.html#1583db2c4c2022de2f2362c0d588699f">NewLC()</a> Construct a CChatBt <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aLog</em>&nbsp;</td><td>the log to send output to </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>a pointer to the created instance of CChatBt </dd></dl><p>Reimplemented from <a class="el" href="class_c_chat_base.html#1583db2c4c2022de2f2362c0d588699f">CChatBase</a>.<p>Definition at line <a class="el" href="_chat_bt_8cpp-source.html#l00045">45</a> of file <a class="el" href="_chat_bt_8cpp-source.html">ChatBt.cpp</a>.<p>References <a class="el" href="_chat_bt_8cpp-source.html#l00058">CChatBt()</a>.<p>Referenced by <a class="el" href="_chat_bt_8cpp-source.html#l00033">NewL()</a>.<div class="fragment"><pre class="fragment"><a name="l00046"></a>00046     {<a name="l00047"></a>00047     <a class="code" href="class_c_chat_bt.html">CChatBt</a>* <span class="keyword">self</span> = <span class="keyword">new</span> ( ELeave ) <a class="code" href="class_c_chat_bt.html#9dd1139a1264185c45de50b9b5fc02d5">CChatBt</a>( aLog );<a name="l00048"></a>00048     CleanupStack::PushL( <span class="keyword">self</span> );<a name="l00049"></a>00049     <span class="keyword">self</span>-&gt;ConstructL();<a name="l00050"></a>00050     <span class="keywordflow">return</span> <span class="keyword">self</span>;<a name="l00051"></a>00051     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="e8a170fa40d8d9d67f0cebf751b96e87"></a><!-- doxytag: member="CChatBt::ConnectL" ref="e8a170fa40d8d9d67f0cebf751b96e87" 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">void CChatBt::ConnectL           </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_bt.html#e8a170fa40d8d9d67f0cebf751b96e87">ConnectL()</a> Connect to an available service on a remote machine <p>Definition at line <a class="el" href="_chat_bt_8cpp-source.html#l00314">314</a> of file <a class="el" href="_chat_bt_8cpp-source.html">ChatBt.cpp</a>.<p>References <a class="el" href="_chat_bt_8h-source.html#l00189">iLog</a>, <a class="el" href="_chat_bt_8h-source.html#l00183">iServiceSearcher</a>, <a class="el" href="class_m_log.html#70fb5098d98a8b349c056b46102d5de9">MLog::LogL()</a>, <a class="el" href="_chat_bt_service_searcher_8cpp-source.html#l00059">CChatBtServiceSearcher::SelectDeviceByDiscoveryL()</a>, <a class="el" href="_chat_base_8cpp-source.html#l00130">CChatBase::SetState()</a>, and <a class="el" href="_chat_base_8cpp-source.html#l00140">CChatBase::State()</a>.<div class="fragment"><pre class="fragment"><a name="l00315"></a>00315     {<a name="l00316"></a>00316     <span class="keywordflow">if</span> ( <a class="code" href="class_c_chat_base.html#af77e92297a4bac4704e440284577ebe">State</a>() == EWaitingToGetDevice &amp;&amp; !IsActive() )<a name="l00317"></a>00317         {<a name="l00318"></a>00318         <a class="code" href="class_c_chat_base.html#deacd9f98d0548748cf116698aea2be0">SetState</a>( EGettingDevice );<a name="l00319"></a>00319         <a class="code" href="class_c_chat_bt.html#9ab6aa3a90546e2d22228cd414354816">iServiceSearcher</a>-&gt;<a class="code" href="class_c_chat_bt_service_searcher.html#26bae2155757128e219cfd00e0bad926">SelectDeviceByDiscoveryL</a>( iStatus );<a name="l00320"></a>00320         SetActive();<a name="l00321"></a>00321         }<a name="l00322"></a>00322     <span class="keywordflow">else</span>

⌨️ 快捷键说明

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