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

📄 class_c_chat_inet.html

📁 一个聊天的软件
💻 HTML
📖 第 1 页 / 共 5 页
字号:
      &nbsp;    </td>    <td><p>CChatInet Constructs this object <p>Definition at line <a class="el" href="_chat_inet_8cpp-source.html#l00059">59</a> of file <a class="el" href="_chat_inet_8cpp-source.html">ChatInet.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_inet_8cpp-source.html#l00045">NewLC()</a>.<div class="fragment"><pre class="fragment"><a name="l00059"></a>00059                                  : <a name="l00060"></a>00060     <a class="code" href="class_c_chat_base.html#28ae7c04dd1166a7f0a6622146281234">CChatBase</a>( aLog ),<a name="l00061"></a>00061     <a class="code" href="class_c_chat_inet.html#9d387bbae93f2ae894f3e1c32e6bf1c6">iLog</a>( aLog ),<a name="l00062"></a>00062     <a class="code" href="class_c_chat_inet.html#ca13b175f9849e6ff5ce23ea58682739">iPort</a>( KDefaultPortNumber )<a name="l00063"></a>00063     {<a name="l00064"></a>00064     <a class="code" href="class_c_chat_base.html#deacd9f98d0548748cf116698aea2be0">SetState</a>( EDisconnected );<a name="l00065"></a>00065     }</pre></div><p>    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="c650367611ceff6213885d162a246c4e"></a><!-- doxytag: member="CChatInet::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_inet.html">CChatInet</a> * CChatInet::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>NewL Construct a CChatInet <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 CChatInet </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_inet_8cpp-source.html#l00033">33</a> of file <a class="el" href="_chat_inet_8cpp-source.html">ChatInet.cpp</a>.<p>References <a class="el" href="_chat_inet_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_inet.html">CChatInet</a>* <span class="keyword">self</span> = <a class="code" href="class_c_chat_inet.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="CChatInet::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_inet.html">CChatInet</a> * CChatInet::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>NewLC Construct a CChatInet <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 CChatInet </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_inet_8cpp-source.html#l00045">45</a> of file <a class="el" href="_chat_inet_8cpp-source.html">ChatInet.cpp</a>.<p>References <a class="el" href="_chat_inet_8cpp-source.html#l00059">CChatInet()</a>.<p>Referenced by <a class="el" href="_chat_inet_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_inet.html">CChatInet</a>* <span class="keyword">self</span> = <span class="keyword">new</span> ( ELeave ) <a class="code" href="class_c_chat_inet.html#180faf5de2b6ad9ddee9330875b758bf">CChatInet</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 <a name="l00052"></a>00052     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="8972dc718386d445f2d0b38cc55db1e7"></a><!-- doxytag: member="CChatInet::ConnectL" ref="8972dc718386d445f2d0b38cc55db1e7" args="(const TDesC &amp;aAddress)" --><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 CChatInet::ConnectL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TDesC &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aAddress</em>          </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>ConnectL Connect to an available service on a remote machine <p>Definition at line <a class="el" href="_chat_inet_8cpp-source.html#l00265">265</a> of file <a class="el" href="_chat_inet_8cpp-source.html">ChatInet.cpp</a>.<p>References <a class="el" href="_chat_inet_8cpp-source.html#l00327">ConnectToServerL()</a>, <a class="el" href="_chat_inet_8h-source.html#l00152">iLog</a>, <a class="el" href="class_m_log.html#70fb5098d98a8b349c056b46102d5de9">MLog::LogL()</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>.<p>Referenced by <a class="el" href="_chat_inet_8cpp-source.html#l00327">ConnectToServerL()</a>.<div class="fragment"><pre class="fragment"><a name="l00266"></a>00266     {<a name="l00267"></a>00267     <span class="keywordflow">if</span> ( <a class="code" href="class_c_chat_base.html#af77e92297a4bac4704e440284577ebe">State</a>() == EDisconnected &amp;&amp; !IsActive() )<a name="l00268"></a>00268         {<a name="l00269"></a>00269         <a class="code" href="class_c_chat_base.html#deacd9f98d0548748cf116698aea2be0">SetState</a>( EGettingConnection );<a name="l00270"></a>00270         <a class="code" href="class_c_chat_inet.html#b449bdd385967c4126b2611e5cb7e36f">ConnectToServerL</a>( aAddress );<a name="l00271"></a>00271         }<a name="l00272"></a>00272     <span class="keywordflow">else</span><a name="l00273"></a>00273         {<a name="l00274"></a>00274         HBufC* errClientBusy = StringLoader::LoadLC ( R_CHAT_CLIENT_BUSY );<a name="l00275"></a>00275         <a class="code" href="class_c_chat_inet.html#9d387bbae93f2ae894f3e1c32e6bf1c6">iLog</a>.<a class="code" href="class_m_log.html#70fb5098d98a8b349c056b46102d5de9">LogL</a>( *errClientBusy );<a name="l00276"></a>00276         CleanupStack::PopAndDestroy( errClientBusy );<a name="l00277"></a>00277 <a name="l00278"></a>00278         User::Leave( KErrInUse );<a name="l00279"></a>00279         }<a name="l00280"></a>00280     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="90fa17f1549fcafa070e14c9e5e7234d"></a><!-- doxytag: member="CChatInet::DisconnectL" ref="90fa17f1549fcafa070e14c9e5e7234d" 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 CChatInet::DisconnectL           </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>

⌨️ 快捷键说明

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