Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_d_b_m_s_listbox_view_8h_source.html
author Dominic Pinkman <dominic.pinkman@nokia.com>
Fri, 13 Aug 2010 16:47:46 +0100
changeset 14 578be2adaf3e
parent 6 43e37759235e
permissions -rw-r--r--
Week 32 contribution of PDK documentation content. See release notes for details. Fixes bug Bug 3582

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>TB9.2 Example Applications: examples/ForumNokia/DBMS/inc/DBMSListboxView.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<h1>examples/ForumNokia/DBMS/inc/DBMSListboxView.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright © 2008 Nokia Corporation.</span>
<a name="l00003"></a>00003 <span class="comment"> */</span>
<a name="l00004"></a>00004 
<a name="l00005"></a>00005 <span class="preprocessor">#ifndef __DBMSLISTBOXVIEW_H__</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __DBMSLISTBOXVIEW_H__</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;coecntrl.h&gt;</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="comment">// Forward declarations</span>
<a name="l00011"></a>00011 <span class="keyword">class </span>CEikLabel;
<a name="l00012"></a>00012 <span class="keyword">class </span>CEikTextListBox;
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 
<a name="l00026"></a><a class="code" href="class_c_d_b_m_s_listbox_view.html">00026</a> <span class="keyword">class </span><a class="code" href="class_c_d_b_m_s_listbox_view.html">CDBMSListboxView</a> : <span class="keyword">public</span> CCoeControl
<a name="l00027"></a>00027     {
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="keyword">public</span>:
<a name="l00030"></a>00030 
<a name="l00041"></a>00041     <span class="keyword">static</span> <a class="code" href="class_c_d_b_m_s_listbox_view.html">CDBMSListboxView</a>* <a class="code" href="class_c_d_b_m_s_listbox_view.html#a1187c6bce072aace1351910deb676690">NewL</a>(<span class="keyword">const</span> TRect&amp; aRect);
<a name="l00042"></a>00042 
<a name="l00048"></a>00048      <a class="code" href="class_c_d_b_m_s_listbox_view.html#ab5c081351e65689c70982104c2a4e903">~CDBMSListboxView</a>();
<a name="l00049"></a>00049 
<a name="l00057"></a>00057     <span class="keywordtype">void</span> <a class="code" href="class_c_d_b_m_s_listbox_view.html#a5bf195c1c4b2688016cb7d88d58ea969">SetCaptionL</a>(<span class="keyword">const</span> TDesC&amp; aNewCaption);
<a name="l00058"></a>00058 
<a name="l00067"></a>00067     <span class="keywordtype">void</span> <a class="code" href="class_c_d_b_m_s_listbox_view.html#a48fe6a8bffab3afc9b09300b0974914a">SetListItemsL</a>(CDesCArrayFlat* aNewItems);
<a name="l00068"></a>00068 
<a name="l00079"></a>00079     TInt <a class="code" href="class_c_d_b_m_s_listbox_view.html#a0df7d5e7a352bacec3bf84e7f487d1ad">GetSelectedItem</a>(TDes&amp; aResult) <span class="keyword">const</span>;
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 <span class="keyword">public</span>:  <span class="comment">// from CCoeControl</span>
<a name="l00082"></a>00082 
<a name="l00091"></a>00091     <span class="keywordtype">void</span> <a class="code" href="class_c_d_b_m_s_listbox_view.html#ab3a47a0f42d7e6c6bf5e59882b24caa5">Draw</a>(<span class="keyword">const</span> TRect&amp; aRect) <span class="keyword">const</span>;
<a name="l00092"></a>00092 
<a name="l00098"></a>00098     <span class="keywordtype">void</span> <a class="code" href="class_c_d_b_m_s_listbox_view.html#a88ee1438bf69d34a5e25bf573dd3f036">SizeChanged</a>();
<a name="l00099"></a>00099 
<a name="l00100"></a>00100 
<a name="l00106"></a>00106     TInt <a class="code" href="class_c_d_b_m_s_listbox_view.html#a9fa2fb0202add3a56efa3b87dcd047c1">CountComponentControls</a>() <span class="keyword">const</span>;
<a name="l00107"></a>00107 
<a name="l00115"></a>00115     CCoeControl* <a class="code" href="class_c_d_b_m_s_listbox_view.html#afcba97b98e792a7573984944fc84276c">ComponentControl</a>(TInt aIndex) <span class="keyword">const</span>;
<a name="l00116"></a>00116 
<a name="l00130"></a>00130     TKeyResponse <a class="code" href="class_c_d_b_m_s_listbox_view.html#a50cb1de235fa9feb7a9f7bd16a96db31">OfferKeyEventL</a>(<span class="keyword">const</span> TKeyEvent&amp; aKeyEvent,TEventCode aType);
<a name="l00131"></a>00131 
<a name="l00132"></a>00132 <span class="keyword">private</span>:
<a name="l00133"></a>00133 
<a name="l00142"></a>00142     <span class="keywordtype">void</span> ConstructL(<span class="keyword">const</span> TRect&amp; aRect);
<a name="l00143"></a>00143 
<a name="l00149"></a>00149     <a class="code" href="class_c_d_b_m_s_listbox_view.html">CDBMSListboxView</a>();
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 <span class="keyword">private</span>: <span class="comment">// private attributes</span>
<a name="l00152"></a>00152 
<a name="l00153"></a>00153         CEikLabel* iLabel;             <span class="comment">// Title text for the view</span>
<a name="l00154"></a>00154         CEikTextListBox* iListBox;     <span class="comment">// List of book names or columns</span>
<a name="l00155"></a>00155     };
<a name="l00156"></a>00156 
<a name="l00157"></a>00157 
<a name="l00158"></a>00158 <span class="preprocessor">#endif // __DBMSLISTBOXVIEW_H__</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>