Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/threadanimation_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/ThreadExample/inc/threadanimation.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/ThreadExample/inc/threadanimation.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">* ============================================================================</span>
<a name="l00003"></a>00003 <span class="comment">*  Name     : CThreadAnimation from CThreadAnimation.h</span>
<a name="l00004"></a>00004 <span class="comment">*  Part of  : Thread</span>
<a name="l00005"></a>00005 <span class="comment">*  Created  : 04.02.2005 by Forum Nokia</span>
<a name="l00006"></a>00006 <span class="comment">*  Description:</span>
<a name="l00007"></a>00007 <span class="comment">*     Animation class that is used to animate thread state. While animation is</span>
<a name="l00008"></a>00008 <span class="comment">*     running a spiral is circulating. When thread is not alive then no animation</span>
<a name="l00009"></a>00009 <span class="comment">*     is showed.</span>
<a name="l00010"></a>00010 <span class="comment">*  Version  : 1.0</span>
<a name="l00011"></a>00011 <span class="comment">*  Copyright: Nokia Corporation</span>
<a name="l00012"></a>00012 <span class="comment">* ============================================================================</span>
<a name="l00013"></a>00013 <span class="comment">*/</span>
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="preprocessor">#ifndef THREADANIMATION_H</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#define THREADANIMATION_H</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span>
<a name="l00018"></a>00018 <span class="comment">// INCLUDES</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;coecntrl.h&gt;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &quot;e32base.h&quot;</span> 
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="comment">// FORWARD DECLARATIONS</span>
<a name="l00023"></a>00023 <span class="keyword">class </span>CAknBitmapAnimation;
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="comment">// CLASS DECLARATION</span>
<a name="l00026"></a>00026 
<a name="l00031"></a><a class="code" href="class_c_thread_animation.html">00031</a> <span class="keyword">class </span><a class="code" href="class_c_thread_animation.html">CThreadAnimation</a>
<a name="l00032"></a>00032         {
<a name="l00033"></a>00033 <span class="keyword">public</span>:
<a name="l00034"></a>00034 
<a name="l00043"></a>00043         <span class="keyword">static</span> <a class="code" href="class_c_thread_animation.html">CThreadAnimation</a>* <a class="code" href="class_c_thread_animation.html#ad466e37bbf2c1275dd7be52bb3da9186">NewL</a>(TResourceReader&amp; aReader, RWindow&amp; aWindow);
<a name="l00048"></a>00048         <span class="keyword">static</span> <a class="code" href="class_c_thread_animation.html">CThreadAnimation</a>* <a class="code" href="class_c_thread_animation.html#a32a26fa68a4788aa7fcb8a361ac7aa5d">NewLC</a>(TResourceReader&amp; aReader, RWindow&amp; aWindow);
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 
<a name="l00057"></a>00057         <a class="code" href="class_c_thread_animation.html#af781102597f21a24e3171f5eaa07b185">~CThreadAnimation</a>(<span class="keywordtype">void</span>);
<a name="l00058"></a>00058 
<a name="l00065"></a>00065         <span class="keywordtype">void</span> <a class="code" href="class_c_thread_animation.html#a25c3d4648dd8cc0e258173341c2b21ce">StartAnimationL</a>();
<a name="l00066"></a>00066 
<a name="l00073"></a>00073         <span class="keywordtype">void</span> <a class="code" href="class_c_thread_animation.html#a27125fb245b96ac2d4d3f7ef6231ed2a">StopAnimation</a>();
<a name="l00074"></a>00074 
<a name="l00075"></a>00075 <span class="keyword">private</span>: <span class="comment">// Basic two-phase EPOC constructors</span>
<a name="l00076"></a>00076 
<a name="l00083"></a>00083         <a class="code" href="class_c_thread_animation.html">CThreadAnimation</a>(<span class="keywordtype">void</span>);
<a name="l00084"></a>00084 
<a name="l00091"></a>00091         <span class="keywordtype">void</span> ConstructL(TResourceReader&amp; aReader, RWindow&amp; aWindow);
<a name="l00092"></a>00092 
<a name="l00093"></a>00093 <span class="keyword">private</span>: <span class="comment">// data members </span>
<a name="l00094"></a>00094         <span class="comment">// Bitmap animation .</span>
<a name="l00095"></a>00095         CAknBitmapAnimation* iAnimation;
<a name="l00096"></a>00096 
<a name="l00098"></a>00098         TBool iRunning;
<a name="l00099"></a>00099         };
<a name="l00100"></a>00100 
<a name="l00101"></a>00101 <span class="preprocessor">#endif</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>