Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_contacts_model_container_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/ContactsModel/inc/ContactsModelContainer.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/ContactsModel/inc/ContactsModelContainer.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 CONTACTSMODELCONTAINER_H</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define CONTACTSMODELCONTAINER_H</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="comment">// INCLUDES</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;aknlists.h&gt;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;coecntrl.h&gt;</span>
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 <span class="comment">// FORWARD DECLARATIONS</span>
<a name="l00013"></a>00013 <span class="keyword">class </span><a class="code" href="class_c_contacts_model_document.html">CContactsModelDocument</a>;
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="comment">// CLASS DECLARATION</span>
<a name="l00016"></a>00016 
<a name="l00021"></a><a class="code" href="class_c_contacts_model_container.html">00021</a> <span class="keyword">class </span><a class="code" href="class_c_contacts_model_container.html">CContactsModelContainer</a> : <span class="keyword">public</span> CCoeControl, MCoeControlObserver
<a name="l00022"></a>00022     {
<a name="l00023"></a>00023     <span class="keyword">public</span>: <span class="comment">// Constructors and destructor</span>
<a name="l00024"></a>00024 
<a name="l00029"></a>00029         <span class="keywordtype">void</span> <a class="code" href="class_c_contacts_model_container.html#ac468c2165d1177d612ced36d7c0fe262">ConstructL</a>(<span class="keyword">const</span> TRect&amp; aRect, <a class="code" href="class_c_contacts_model_document.html">CContactsModelDocument</a>* aDocument);
<a name="l00030"></a>00030 
<a name="l00034"></a>00034         <a class="code" href="class_c_contacts_model_container.html#a9e868211c0658c4ff94c8cddfdd0ae37">~CContactsModelContainer</a>();
<a name="l00035"></a>00035 
<a name="l00036"></a>00036     <span class="keyword">public</span>: <span class="comment">// New functions</span>
<a name="l00037"></a>00037 
<a name="l00041"></a>00041                 <span class="keywordtype">void</span> <a class="code" href="class_c_contacts_model_container.html#ac0d028bfd2850ff55aa811fd4f899728">UpdateL</a>();
<a name="l00042"></a>00042 
<a name="l00046"></a>00046                 TInt <a class="code" href="class_c_contacts_model_container.html#a07afcb84d5b8d19acd6067c641d65cd0">GetSelectedItem</a>();
<a name="l00047"></a>00047 
<a name="l00056"></a>00056                 TInt <a class="code" href="class_c_contacts_model_container.html#a673952e47d42be81a85df0832375895c">ItemCount</a>();
<a name="l00057"></a>00057 
<a name="l00058"></a>00058     <span class="keyword">public</span>: <span class="comment">// Functions from base classes</span>
<a name="l00059"></a>00059 
<a name="l00060"></a>00060     <span class="keyword">private</span>: <span class="comment">// Functions from base classes</span>
<a name="l00061"></a>00061 
<a name="l00065"></a>00065         <span class="keywordtype">void</span> SizeChanged();
<a name="l00066"></a>00066 
<a name="l00070"></a>00070         TInt CountComponentControls() <span class="keyword">const</span>;
<a name="l00071"></a>00071 
<a name="l00075"></a>00075         CCoeControl* ComponentControl(TInt aIndex) <span class="keyword">const</span>;
<a name="l00076"></a>00076 
<a name="l00080"></a>00080         <span class="keywordtype">void</span> Draw(<span class="keyword">const</span> TRect&amp; aRect) <span class="keyword">const</span>;
<a name="l00081"></a>00081 
<a name="l00082"></a>00082 
<a name="l00090"></a>00090         <span class="keywordtype">void</span> HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
<a name="l00091"></a>00091 
<a name="l00100"></a>00100                 TKeyResponse OfferKeyEventL(<span class="keyword">const</span> TKeyEvent&amp; aKeyEvent, TEventCode aType);
<a name="l00101"></a>00101 
<a name="l00102"></a>00102     <span class="keyword">private</span>: <span class="comment">//data</span>
<a name="l00103"></a>00103 
<a name="l00104"></a>00104                 <span class="comment">//reference to the document</span>
<a name="l00105"></a>00105                 <a class="code" href="class_c_contacts_model_document.html">CContactsModelDocument</a>* iDocument;
<a name="l00106"></a>00106 
<a name="l00107"></a>00107                 <span class="comment">//list box component</span>
<a name="l00108"></a>00108             CAknSingleStyleListBox* iListBox;
<a name="l00109"></a>00109 
<a name="l00110"></a>00110                 <span class="comment">//list box data</span>
<a name="l00111"></a>00111                 CDesCArrayFlat* iListBoxRows;
<a name="l00112"></a>00112     };
<a name="l00113"></a>00113 
<a name="l00114"></a>00114 <span class="preprocessor">#endif</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span>
<a name="l00116"></a>00116 <span class="comment">// End of File</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>