Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_descriptor_examples_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/DescriptorExample/inc/DescriptorExamples.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/DescriptorExample/inc/DescriptorExamples.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 DESCRIPTOREXEXAMPLES_H</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define DESCRIPTOREXEXAMPLES_H</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;e32std.h&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;f32file.h&gt;</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00018"></a><a class="code" href="class_m_result_viewer.html">00018</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="class_m_result_viewer.html">MResultViewer</a>
<a name="l00019"></a>00019     {
<a name="l00020"></a>00020     <span class="keyword">public</span>:
<a name="l00025"></a>00025         <span class="keyword">virtual</span> TPtr <a class="code" href="class_m_result_viewer.html#a30d7e86bbb78ba769648736a9ee9e62d">GetViewBuffer</a>()=0;
<a name="l00026"></a>00026 
<a name="l00033"></a>00033         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_m_result_viewer.html#a8e10673e2504a4af6382f26794bb8004">UpdateView</a>()=0;
<a name="l00034"></a>00034     };
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00041"></a><a class="code" href="class_c_descriptor_examples.html">00041</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="class_c_descriptor_examples.html">CDescriptorExamples</a>
<a name="l00042"></a>00042     {
<a name="l00043"></a>00043     <span class="keyword">public</span>:
<a name="l00044"></a>00044 
<a name="l00053"></a><a class="code" href="class_c_descriptor_examples.html#a3508c2638781bb0ff9c0976cc0ff9d0f">00053</a>         <a class="code" href="class_c_descriptor_examples.html#a3508c2638781bb0ff9c0976cc0ff9d0f">CDescriptorExamples</a>(<a class="code" href="class_m_result_viewer.html">MResultViewer</a> *aViewer) : iViewer(aViewer) {};
<a name="l00054"></a>00054 
<a name="l00055"></a>00055         <span class="comment">//----------------------------------------------------------------------</span>
<a name="l00056"></a>00056         <span class="comment">// Methods below are implemented in DeclaringDescriptors.cpp</span>
<a name="l00057"></a>00057 
<a name="l00066"></a>00066         <span class="keywordtype">void</span> <a class="code" href="class_c_descriptor_examples.html#a7f529caf8413e46dbb90c73f9b8839da">ToStack</a>();
<a name="l00067"></a>00067 
<a name="l00072"></a>00072         <span class="keywordtype">void</span> <a class="code" href="class_c_descriptor_examples.html#abfb8e980e2e7e89daa2b46de2cb98d4a">ToHeapL</a>();
<a name="l00073"></a>00073 
<a name="l00082"></a>00082         <span class="keywordtype">void</span> <a class="code" href="class_c_descriptor_examples.html#ac09dcbba3fcb7b55391e50c3692052d5">Literals</a>();
<a name="l00083"></a>00083 
<a name="l00084"></a>00084         <span class="comment">//----------------------------------------------------------------------</span>
<a name="l00085"></a>00085         <span class="comment">// Methods below are implemented in ManipulatingDescriptors.cpp</span>
<a name="l00086"></a>00086 
<a name="l00091"></a>00091         <span class="keywordtype">void</span> <a class="code" href="class_c_descriptor_examples.html#ac45c0edc4bd868c8c21d25ec676f121b">NonModifyingMethods</a>();
<a name="l00092"></a>00092 
<a name="l00097"></a>00097         <span class="keywordtype">void</span> <a class="code" href="class_c_descriptor_examples.html#a5c4e6afcc42704c6d55ff898f7d5f749">ModifyingMethodsL</a>();
<a name="l00098"></a>00098 
<a name="l00104"></a>00104         <span class="keywordtype">void</span> <a class="code" href="class_c_descriptor_examples.html#ae51548be0afb3319e849f7ff8ccf440f">CharacterConversionsL</a>();
<a name="l00105"></a>00105 
<a name="l00110"></a>00110         <span class="keywordtype">void</span> <a class="code" href="class_c_descriptor_examples.html#ace06425c580f03f1bdd084f079de168f">LexicalAnalysis</a>();
<a name="l00111"></a>00111 
<a name="l00112"></a>00112         <span class="comment">//----------------------------------------------------------------------</span>
<a name="l00113"></a>00113         <span class="comment">// Methods below are implemented in OtherBuffers.cpp</span>
<a name="l00114"></a>00114 
<a name="l00125"></a>00125         <span class="keywordtype">void</span> <a class="code" href="class_c_descriptor_examples.html#a16794acec84adb6c9f9bd53493bfda8f">CircularBuffersL</a>();
<a name="l00126"></a>00126 
<a name="l00142"></a>00142         <span class="keywordtype">void</span> <a class="code" href="class_c_descriptor_examples.html#a7b302d526ed71c8039a1be75d9ceb21a">FlatDynamicBuffersL</a>();
<a name="l00143"></a>00143 
<a name="l00158"></a>00158         <span class="keywordtype">void</span> <a class="code" href="class_c_descriptor_examples.html#a4fbafdaa5db8471d65748de40a0fac1b">SegmentedDynamicBuffersL</a>();
<a name="l00159"></a>00159 
<a name="l00174"></a>00174         <span class="keywordtype">void</span> <a class="code" href="class_c_descriptor_examples.html#aa3004492a8d6c9ba4aebeb1b81b1f6a3">PackageBuffers</a>();
<a name="l00175"></a>00175         
<a name="l00176"></a>00176                 
<a name="l00184"></a>00184         <span class="keywordtype">void</span> <a class="code" href="class_c_descriptor_examples.html#a0c138dfa0a2aa25627963b9fee1b63d5">RBufDemonstrations</a>();
<a name="l00185"></a>00185 
<a name="l00186"></a>00186     <span class="keyword">private</span>: <span class="comment">// attributes</span>
<a name="l00187"></a>00187 
<a name="l00188"></a>00188         <a class="code" href="class_m_result_viewer.html">MResultViewer</a>* iViewer; <span class="comment">// not owned, just referred</span>
<a name="l00189"></a>00189     
<a name="l00190"></a>00190     };
<a name="l00191"></a>00191 
<a name="l00192"></a>00192 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00199"></a>00199 <span class="comment"></span><span class="comment">//PK:TODO:</span>
<a name="l00200"></a>00200 <span class="preprocessor">#ifdef __SERIES60_3X__</span>
<a name="l00201"></a>00201 <span class="preprocessor"></span><a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>( KDefaultLogFile, <span class="stringliteral">&quot;c:\\Data\\descriptorEx.log.txt&quot;</span> );
<a name="l00202"></a>00202 <span class="preprocessor">#else</span>
<a name="l00203"></a>00203 <span class="preprocessor"></span><a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>( KDefaultLogFile, <span class="stringliteral">&quot;c:\\Nokia\\descriptorEx.log.txt&quot;</span> );
<a name="l00204"></a>00204 <span class="preprocessor">#endif</span>
<a name="l00205"></a>00205 <span class="preprocessor"></span>
<a name="l00206"></a><a class="code" href="class_c_file_forwarder.html">00206</a> <span class="keyword">class </span><a class="code" href="class_c_file_forwarder.html">CFileForwarder</a> : <span class="keyword">public</span> CBase, <span class="keyword">public</span> <a class="code" href="class_m_result_viewer.html">MResultViewer</a>
<a name="l00207"></a>00207     {
<a name="l00208"></a>00208     <span class="keyword">public</span>:
<a name="l00209"></a>00209 
<a name="l00217"></a>00217         <span class="keywordtype">void</span> <a class="code" href="class_c_file_forwarder.html#a8ba86f9e2f054d9c44114276428cfe98">ConstructL</a>(<span class="keyword">const</span> TDesC &amp;logFileName=KDefaultLogFile);
<a name="l00218"></a>00218 
<a name="l00223"></a>00223         <span class="keyword">virtual</span> TPtr <a class="code" href="class_c_file_forwarder.html#a6e4641a03eaf706f957e7ed7014bcec3">GetViewBuffer</a>();
<a name="l00224"></a>00224 
<a name="l00229"></a>00229         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_file_forwarder.html#abcff5e4b92b098ffd0474ce712493d49">UpdateView</a>();
<a name="l00230"></a>00230 
<a name="l00231"></a>00231     <span class="keyword">private</span>:
<a name="l00232"></a>00232 
<a name="l00236"></a>00236         <span class="keyword">virtual</span> ~<a class="code" href="class_c_file_forwarder.html">CFileForwarder</a>();
<a name="l00237"></a>00237 
<a name="l00238"></a>00238     <span class="keyword">private</span>:
<a name="l00239"></a>00239         RFs          iFsSession;
<a name="l00240"></a>00240         RFile        iFile;
<a name="l00241"></a>00241         HBufC        *iBuf;
<a name="l00242"></a>00242     };
<a name="l00243"></a>00243 
<a name="l00244"></a>00244 <span class="preprocessor">#endif // DESCRIPTOREXEXAMPLES_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>