Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/threadaoengine_8h_source.html
changeset 6 43e37759235e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/threadaoengine_8h_source.html	Tue Mar 30 16:16:55 2010 +0100
@@ -0,0 +1,80 @@
+<!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/ThreadAndActiveObjectsEx/inc/threadaoengine.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/ThreadAndActiveObjectsEx/inc/threadaoengine.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 
+<a name="l00006"></a>00006 <span class="preprocessor">#ifndef __THREAD_AO_ENGINE_H__</span>
+<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define __THREAD_AO_ENGINE_H__</span>
+<a name="l00008"></a>00008 <span class="preprocessor"></span>
+<a name="l00009"></a>00009 <span class="comment">// INCLUDES</span>
+<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;e32base.h&quot;</span> <span class="comment">//CTimer</span>
+<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;badesca.h&quot;</span> <span class="comment">// CDesCaRrayFlat</span>
+<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;SharedIntermediator.h&quot;</span>
+<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;ThreadListener.h&quot;</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>SharedIntermediator;
+<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_thread_a_o_engine.html">00023</a> <span class="keyword">class </span><a class="code" href="class_c_thread_a_o_engine.html">CThreadAOEngine</a> : <span class="keyword">public</span> CBase
+<a name="l00024"></a>00024         {
+<a name="l00025"></a>00025 <span class="keyword">public</span>: 
+<a name="l00026"></a>00026 
+<a name="l00035"></a>00035         <span class="keyword">static</span> <a class="code" href="class_c_thread_a_o_engine.html">CThreadAOEngine</a>* <a class="code" href="class_c_thread_a_o_engine.html#ae47fec51f868c97d25af41502cedb93c">NewL</a>(<a class="code" href="class_c_shared_intermediator.html">CSharedIntermediator</a>* aSMediator);
+<a name="l00036"></a>00036 
+<a name="l00041"></a>00041         <span class="keyword">static</span> <a class="code" href="class_c_thread_a_o_engine.html">CThreadAOEngine</a>* <a class="code" href="class_c_thread_a_o_engine.html#af60ccf499b44adb966152a3b970309a1">NewLC</a>(<a class="code" href="class_c_shared_intermediator.html">CSharedIntermediator</a>* aSMediator);
+<a name="l00042"></a>00042 
+<a name="l00047"></a>00047         <a class="code" href="class_c_thread_a_o_engine.html#a74d5ebd45dff44ee13467a48ab9ad46c">~CThreadAOEngine</a>();
+<a name="l00048"></a>00048 
+<a name="l00055"></a>00055         <span class="keywordtype">void</span> <a class="code" href="class_c_thread_a_o_engine.html#ac6e884d9c4dec96288fa725385924382">StartL</a>();
+<a name="l00056"></a>00056 
+<a name="l00062"></a>00062         <span class="keywordtype">void</span> <a class="code" href="class_c_thread_a_o_engine.html#a5fce7387851b38d1e5ae0b295511909f">Stop</a>();
+<a name="l00063"></a>00063 
+<a name="l00071"></a>00071         <span class="keyword">static</span> TInt <a class="code" href="class_c_thread_a_o_engine.html#a466c0b37441e2a42ad7d4d237f543f37">ExecuteThreadOne</a>(TAny *aPtr);
+<a name="l00072"></a>00072 
+<a name="l00081"></a>00081         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_c_thread_a_o_engine.html#aa3a782d96f8123de748ed4a95d652db8">CreateActiveSchedulerL</a>(<a class="code" href="class_c_shared_intermediator.html">CSharedIntermediator</a>* aSMediator);
+<a name="l00082"></a>00082 
+<a name="l00083"></a>00083 <span class="keyword">private</span>: <span class="comment">//functions</span>
+<a name="l00084"></a>00084 
+<a name="l00090"></a>00090         <span class="keywordtype">void</span> CreateThreadsL();
+<a name="l00091"></a>00091 
+<a name="l00092"></a>00092 <span class="keyword">private</span>: <span class="comment">// Basic two-phase Symbian OS constructors</span>
+<a name="l00093"></a>00093 
+<a name="l00098"></a>00098         <span class="keywordtype">void</span> ConstructL();
+<a name="l00099"></a>00099 
+<a name="l00106"></a>00106         <a class="code" href="class_c_thread_a_o_engine.html">CThreadAOEngine</a>(<a class="code" href="class_c_shared_intermediator.html">CSharedIntermediator</a>* aSMediator);
+<a name="l00107"></a>00107         
+<a name="l00108"></a>00108 <span class="keyword">private</span>: <span class="comment">// data members       </span>
+<a name="l00109"></a>00109         
+<a name="l00110"></a>00110         <span class="comment">// a handle for thread1</span>
+<a name="l00111"></a>00111         RThread iThreadOne;
+<a name="l00112"></a>00112 
+<a name="l00113"></a>00113         <span class="comment">// Create a new thread only once. True means that the thread has been created, </span>
+<a name="l00114"></a>00114         <span class="comment">// false otherwise.</span>
+<a name="l00115"></a>00115         TBool iCreatedThreads;
+<a name="l00116"></a>00116 
+<a name="l00117"></a>00117         <span class="comment">// Shared intermediator. Transmits data between thread1 and the mainthread</span>
+<a name="l00118"></a>00118         <a class="code" href="class_c_shared_intermediator.html">CSharedIntermediator</a>* iSMediator;
+<a name="l00119"></a>00119 
+<a name="l00120"></a>00120         <span class="comment">// Thread1 state listener. </span>
+<a name="l00121"></a>00121         <a class="code" href="class_c_thread_listener.html">CThreadListener</a>* iListener;
+<a name="l00122"></a>00122         };
+<a name="l00123"></a>00123 
+<a name="l00124"></a>00124 <span class="preprocessor">#endif // __THREAD_AO_ENGINE_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>