📄 class_c_chat_container.html
字号:
</table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><a class="el" href="class_c_chat_container.html#eacfd2729e76d8c40ad4beed78d3be44">LogL()</a> Add an entry to the log. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aText</em> </td><td>the text of the entry </td></tr> <tr><td valign="top"></td><td valign="top"><em>aExtraText</em> </td><td>extra text to append onto the entry </td></tr> </table></dl><p>Implements <a class="el" href="class_m_log.html#d4967a6efe367f8389483cd59801cac6">MLog</a>.<p>Definition at line <a class="el" href="_chat_container_8cpp-source.html#l00192">192</a> of file <a class="el" href="_chat_container_8cpp-source.html">ChatContainer.cpp</a>.<p>References <a class="el" href="_chat_container_8h-source.html#l00198">iListBox</a>, and <a class="el" href="_chat_container_8h-source.html#l00204">iMessageList</a>.<div class="fragment"><pre class="fragment"><a name="l00194"></a>00194 {<a name="l00195"></a>00195 HBufC* buffer = HBufC::NewLC( KMessageHeaderLen + aText.Length() +<a name="l00196"></a>00196 aExtraText.Length() );<a name="l00197"></a>00197 <a name="l00198"></a>00198 buffer->Des().Append( aExtraText );<a name="l00199"></a>00199 buffer->Des().Append( <span class="charliteral">'\t'</span> );<a name="l00200"></a>00200 buffer->Des().Append( aText );<a name="l00201"></a>00201 <a name="l00202"></a>00202 <span class="comment">// add the message to the list</span><a name="l00203"></a>00203 <a class="code" href="class_c_chat_container.html#6bbe9a7332aad924e2907ed051176a63">iMessageList</a>->AppendL( *buffer );<a name="l00204"></a>00204 CleanupStack::PopAndDestroy( buffer );<a name="l00205"></a>00205 <a name="l00206"></a>00206 <span class="comment">// tell the control about the change</span><a name="l00207"></a>00207 <a class="code" href="class_c_chat_container.html#a4fe3028661554d5362654dd3ab592f6">iListBox</a>->HandleItemAdditionL();<a name="l00208"></a>00208 }</pre></div><p> </td> </tr></table><a class="anchor" name="8037c050763d0226da7d82a4314c3ca1"></a><!-- doxytag: member="CChatContainer::LogL" ref="8037c050763d0226da7d82a4314c3ca1" args="(const TDesC &aText, TInt aNumber)" --><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 CChatContainer::LogL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const TDesC & </td> <td class="mdname" nowrap> <em>aText</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>TInt </td> <td class="mdname" nowrap> <em>aNumber</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><a class="el" href="class_c_chat_container.html#eacfd2729e76d8c40ad4beed78d3be44">LogL()</a> Add an entry to the log. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aText</em> </td><td>the text of the entry </td></tr> <tr><td valign="top"></td><td valign="top"><em>aNumber</em> </td><td>a number to append onto the entry </td></tr> </table></dl><p>Implements <a class="el" href="class_m_log.html#91174782d016ee5f92b0bcf0f8b9f602">MLog</a>.<p>Definition at line <a class="el" href="_chat_container_8cpp-source.html#l00174">174</a> of file <a class="el" href="_chat_container_8cpp-source.html">ChatContainer.cpp</a>.<p>References <a class="el" href="_chat_container_8cpp-source.html#l00164">LogL()</a>.<div class="fragment"><pre class="fragment"><a name="l00175"></a>00175 {<a name="l00176"></a>00176 TBuf<KMessageHeaderLen> numberString;<a name="l00177"></a>00177 HBufC* buffer = HBufC::NewLC( KMessageHeaderLen + aText.Length() +<a name="l00178"></a>00178 numberString.Length() );<a name="l00179"></a>00179 numberString.Num( aNumber );<a name="l00180"></a>00180 buffer->Des().Append( aText );<a name="l00181"></a>00181 buffer->Des().Append( <span class="charliteral">' '</span> );<a name="l00182"></a>00182 buffer->Des().Append( numberString );<a name="l00183"></a>00183 <a class="code" href="class_c_chat_container.html#eacfd2729e76d8c40ad4beed78d3be44">LogL</a>( buffer->Des(), KNullDesC );<a name="l00184"></a>00184 CleanupStack::PopAndDestroy( buffer );<a name="l00185"></a>00185 }</pre></div><p> </td> </tr></table><a class="anchor" name="6775621e6d3ce05d6685555c939c7706"></a><!-- doxytag: member="CChatContainer::OfferKeyEventL" ref="6775621e6d3ce05d6685555c939c7706" args="(const TKeyEvent &aKeyEvent, TEventCode aType)" --><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">TKeyResponse CChatContainer::OfferKeyEventL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const TKeyEvent & </td> <td class="mdname" nowrap> <em>aKeyEvent</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>TEventCode </td> <td class="mdname" nowrap> <em>aType</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><a class="el" href="class_c_chat_container.html#6775621e6d3ce05d6685555c939c7706">OfferKeyEventL()</a> Offer the key event to the list box <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aKeyEvent</em> </td><td>the key that caused the event </td></tr> <tr><td valign="top"></td><td valign="top"><em>aType</em> </td><td>the type of event that occured </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>indicates whether or not the key event was used by this control </dd></dl><p>Definition at line <a class="el" href="_chat_container_8cpp-source.html#l00154">154</a> of file <a class="el" href="_chat_container_8cpp-source.html">ChatContainer.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00155"></a>00155 {<a name="l00156"></a>00156 <span class="keywordflow">return</span> <a class="code" href="class_c_chat_container.html#a4fe3028661554d5362654dd3ab592f6">iListBox</a>->OfferKeyEventL( aKeyEvent, aType );<a name="l00157"></a>00157 }</pre></div><p> </td> </tr></table><a class="anchor" name="195be64c0e5b9f91ce87699e499af01c"></a><!-- doxytag: member="CChatContainer::CountComponentControls" ref="195be64c0e5b9f91ce87699e499af01c" 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">TInt CChatContainer::CountComponentControls </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><a class="el" href="class_c_chat_container.html#195be64c0e5b9f91ce87699e499af01c">CountComponentControls()</a> Return the number of component controls <dl compact><dt><b>Returns:</b></dt><dd>the number of component controls </dd></dl><p>Definition at line <a class="el" href="_chat_container_8cpp-source.html#l00132">132</a> of file <a class="el" href="_chat_container_8cpp-source.html">ChatContainer.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00133"></a>00133 {<a name="l00134"></a>00134 <span class="keywordflow">return</span> 1; <span class="comment">// Only have one Component</span><a name="l00135"></a>00135 }</pre></div><p> </td> </tr></table><a class="anchor" name="c1d1ba8d1c19e939c47fb73d50cb5432"></a><!-- doxytag: member="CChatContainer::ComponentControl" ref="c1d1ba8d1c19e939c47fb73d50cb5432" args="(TInt aIndex) 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">CCoeControl * CChatContainer::ComponentControl </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TInt </td> <td class="mdname1" valign="top" nowrap> <em>aIndex</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><a class="el" href="class_c_chat_container.html#c1d1ba8d1c19e939c47fb73d50cb5432">ComponentControl()</a> Return a component control <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aIndex</em> </td><td>the index of the control to return </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>the specified component control </dd></dl><p>Definition at line <a class="el" href="_chat_container_8cpp-source.html#l00142">142</a> of file <a class="el" href="_chat_container_8cpp-source.html">ChatContainer.cpp</a>.<p>References <a class="el" href="_chat_container_8h-source.html#l00198">iListBox</a>.<div class="fragment"><pre class="fragment"><a name="l00143"></a>00143 {<a name="l00144"></a>00144 __ASSERT_ALWAYS( aIndex == 0, Panic( EChatInvalidControlIndex ) );<a name="l00145"></a>00145 <span class="keywordflow">return</span> <a class="code" href="class_c_chat_container.html#a4fe3028661554d5362654dd3ab592f6">iListBox</a>; <span class="comment">// Return the component</span><a name="l00146"></a>00146 }</pre></div><p> </td> </tr></table><a class="anchor" name="9f9bb5a2110532e2f2909eaefb44d36a"></a><!-- doxytag: member="CChatContainer::SizeChanged" ref="9f9bb5a2110532e2f2909eaefb44d36a" 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 CChatContainer::SizeChanged </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>From CoeControl,SizeChanged. <p>Definition at line <a class="el" href="_chat_container_8cpp-source.html#l00294">294</a> of file <a class="el" href="_chat_container_8cpp-source.html">ChatContainer.cpp</a>.<p>References <a class="el" href="_chat_container_8h-source.html#l00198">iListBox</a>.<div class="fragment"><pre class="fragment"><a name="l00295"></a>00295 { <a name="l00296"></a>00296 <span class="keywordflow">if</span> ( <a class="code" href="class_c_chat_container.html#a4fe3028661554d5362654dd3ab592f6">iListBox</a> )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -