Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_contacts_model_document_8h_source.html
<!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/ContactsModelDocument.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/ContactsModelDocument.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 CONTACTSMODELDOCUMENT_H</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define CONTACTSMODELDOCUMENT_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 <akndoc.h></span>
<a name="l00010"></a>00010
<a name="l00011"></a>00011 <span class="preprocessor">#include <cntdb.h></span>
<a name="l00012"></a>00012
<a name="l00013"></a>00013 <span class="comment">// CONSTANTS</span>
<a name="l00014"></a>00014
<a name="l00015"></a>00015 <span class="comment">// FORWARD DECLARATIONS</span>
<a name="l00016"></a>00016 <span class="keyword">class </span>CEikAppUi;
<a name="l00017"></a>00017
<a name="l00018"></a>00018 <span class="comment">// CLASS DECLARATION</span>
<a name="l00019"></a>00019
<a name="l00023"></a><a class="code" href="class_c_contacts_model_document.html">00023</a> <span class="keyword">class </span><a class="code" href="class_c_contacts_model_document.html">CContactsModelDocument</a> : <span class="keyword">public</span> CAknDocument
<a name="l00024"></a>00024 {
<a name="l00025"></a>00025 <span class="keyword">public</span>: <span class="comment">// Constructors and destructor</span>
<a name="l00029"></a>00029 <span class="comment"></span> <span class="keyword">static</span> <a class="code" href="class_c_contacts_model_document.html">CContactsModelDocument</a>* <a class="code" href="class_c_contacts_model_document.html#a6ece7cee352f17924d51e2e0efe4a0db">NewL</a>(CEikApplication& aApp);
<a name="l00030"></a>00030
<a name="l00034"></a>00034 <span class="keyword">virtual</span> <a class="code" href="class_c_contacts_model_document.html#a62cf8fc01cf8078e4c5eb4fb6d86b6a8">~CContactsModelDocument</a>();
<a name="l00035"></a>00035
<a name="l00036"></a>00036 <span class="keyword">public</span>: <span class="comment">// New functions</span>
<a name="l00048"></a>00048 <span class="comment"></span> HBufC * <a class="code" href="class_c_contacts_model_document.html#a408bc4fcba90731f62d3e4ce0d7da83d">GetItemL</a>(TInt anIndex);
<a name="l00049"></a>00049
<a name="l00058"></a>00058 TInt <a class="code" href="class_c_contacts_model_document.html#a5173bd5e7d4d7a44a0daa07d51e93373">ItemCount</a>();
<a name="l00059"></a>00059
<a name="l00065"></a>00065 <span class="keywordtype">void</span> <a class="code" href="class_c_contacts_model_document.html#acc165ae349290322113929509bee068a">UpdateContactsL</a>();
<a name="l00066"></a>00066
<a name="l00079"></a>00079 TInt <a class="code" href="class_c_contacts_model_document.html#a79036a36e92f4e742866aed8cdfc6bf0">ImportL</a>(RReadStream& aReadStream);
<a name="l00080"></a>00080
<a name="l00094"></a>00094 <span class="keywordtype">void</span> <a class="code" href="class_c_contacts_model_document.html#ae431484c6c59d5ada5251051ebd75793">ExportL</a>(RWriteStream& aWriteStream, TInt aExportItem);
<a name="l00095"></a>00095
<a name="l00096"></a>00096
<a name="l00097"></a>00097 <span class="keyword">private</span>:
<a name="l00098"></a>00098
<a name="l00102"></a>00102 <a class="code" href="class_c_contacts_model_document.html">CContactsModelDocument</a>(CEikApplication& aApp);
<a name="l00103"></a>00103 <span class="keywordtype">void</span> ConstructL();
<a name="l00104"></a>00104
<a name="l00105"></a>00105 <span class="keyword">private</span>:
<a name="l00106"></a>00106
<a name="l00110"></a>00110 CEikAppUi* CreateAppUiL();
<a name="l00111"></a>00111
<a name="l00112"></a>00112 <span class="comment">// array of contact's ids that are displayed in the application</span>
<a name="l00113"></a>00113 CContactIdArray* iContacts;
<a name="l00114"></a>00114
<a name="l00115"></a>00115 <span class="comment">//text definition used to display contact items</span>
<a name="l00116"></a>00116 CContactTextDef* iTextDef;
<a name="l00117"></a>00117 };
<a name="l00118"></a>00118
<a name="l00119"></a>00119 <span class="preprocessor">#endif</span>
<a name="l00120"></a>00120 <span class="preprocessor"></span>
<a name="l00121"></a>00121 <span class="comment">// End of File</span>
<a name="l00122"></a>00122
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>