Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/timerentry_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/Base/ArraysAndLists/linkedlist/deltaque/inc/timerentry.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/Base/ArraysAndLists/linkedlist/deltaque/inc/timerentry.h</h1><a href="timerentry_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).</span>
<a name="l00002"></a>00002 <span class="comment">// All rights reserved.</span>
<a name="l00003"></a>00003 <span class="comment">// This component and the accompanying materials are made available</span>
<a name="l00004"></a>00004 <span class="comment">// under the terms of &quot;Eclipse Public License v1.0&quot;</span>
<a name="l00005"></a>00005 <span class="comment">// which accompanies this distribution, and is available</span>
<a name="l00006"></a>00006 <span class="comment">// at the URL &quot;http://www.eclipse.org/legal/epl-v10.html&quot;.</span>
<a name="l00007"></a>00007 <span class="comment">//</span>
<a name="l00008"></a>00008 <span class="comment">// Initial Contributors:</span>
<a name="l00009"></a>00009 <span class="comment">// Nokia Corporation - initial contribution.</span>
<a name="l00010"></a>00010 <span class="comment">//</span>
<a name="l00011"></a>00011 <span class="comment">// Contributors:</span>
<a name="l00012"></a>00012 <span class="comment">//</span>
<a name="l00013"></a>00013 <span class="comment">// Description:</span>
<a name="l00014"></a>00014 <span class="comment">// Contains definitions of the TTimerEntry and the CTimerEntry classes.</span>
<a name="l00015"></a>00015 <span class="comment">// It also defines the KMaxEntry variable.</span>
<a name="l00016"></a>00016 <span class="comment">//</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef __TIMERENTRY_H__</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define __TIMERENTRY_H__</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;<a class="code" href="deltaque_8h.html">deltaque.h</a>&quot;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">const</span> TUint KWaitTime = 2;
<a name="l00029"></a>00029 <span class="keyword">const</span> TInt KMaxTimeToWait = 5;
<a name="l00030"></a>00030 <span class="keyword">const</span> TUint KInterval = 1000000;
<a name="l00031"></a>00031 
<a name="l00036"></a><a class="code" href="class_t_timer_entry.html">00036</a> <span class="keyword">class </span><a class="code" href="class_t_timer_entry.html">TTimerEntry</a>
<a name="l00037"></a>00037         {
<a name="l00038"></a>00038 <span class="keyword">public</span>:
<a name="l00042"></a><a class="code" href="class_t_timer_entry.html#a3ab7cbadf08c805fd2ddb864b19eb9d7">00042</a>         TDeltaQueLink <a class="code" href="class_t_timer_entry.html#a3ab7cbadf08c805fd2ddb864b19eb9d7">iLink</a>;
<a name="l00043"></a>00043         };
<a name="l00044"></a>00044 
<a name="l00048"></a><a class="code" href="timerentry_8h.html#a417100e77f433b7a4e47986b04938e0c">00048</a> <span class="keyword">const</span> TInt <a class="code" href="timerentry_8h.html#a417100e77f433b7a4e47986b04938e0c">KMaxEntry</a> = 5;
<a name="l00049"></a>00049 
<a name="l00064"></a><a class="code" href="class_c_timer_entry.html">00064</a> <span class="keyword">class </span><a class="code" href="class_c_timer_entry.html">CTimerEntry</a> : <span class="keyword">public</span> CTimer
<a name="l00065"></a>00065         {
<a name="l00066"></a>00066 <span class="keyword">private</span>:
<a name="l00070"></a>00070         <span class="keyword">enum</span> TOp{
<a name="l00075"></a>00075                         EInsert,
<a name="l00080"></a>00080                         ERemove
<a name="l00081"></a>00081                         };
<a name="l00082"></a>00082 <span class="keyword">public</span>:
<a name="l00083"></a>00083         <span class="keyword">static</span> <a class="code" href="class_c_timer_entry.html">CTimerEntry</a>* <a class="code" href="class_c_timer_entry.html#ae9239b3945aa446c00506024551a8268">NewL</a>(CConsoleBase* aConsole);
<a name="l00084"></a>00084         <a class="code" href="class_c_timer_entry.html#a193d31aafb44a96b5b1e2ea6c0d57f78">~CTimerEntry</a>();
<a name="l00085"></a>00085         TBool <a class="code" href="class_c_timer_entry.html#a0500f775214fb36077a020c8d6ec58d1">AddToQueueL</a>(TInt aInterval);
<a name="l00086"></a>00086         <span class="keywordtype">void</span> <a class="code" href="class_c_timer_entry.html#a19f74837cbfb53d10b57b922898648d1">ArbitratorL</a>();
<a name="l00087"></a>00087         TBool <a class="code" href="class_c_timer_entry.html#a41e0ec777102f5e9317469a83ddd6b82">RemoveFromQueue</a>();
<a name="l00088"></a>00088         <span class="keywordtype">void</span> <a class="code" href="class_c_timer_entry.html#ab03ab2f073ce345c257048d5f364cc98">RunL</a>();
<a name="l00089"></a>00089         <span class="keywordtype">void</span> <a class="code" href="class_c_timer_entry.html#a21a3db06e926673b3dd3f83b40bd57e2">DoCancel</a>();
<a name="l00090"></a>00090         <span class="keywordtype">void</span> <a class="code" href="class_c_timer_entry.html#a06ea9b1cc9e02c51ac544ec85cacb477">IssueRequest</a>();
<a name="l00091"></a>00091         <span class="keywordtype">void</span> <a class="code" href="class_c_timer_entry.html#a50d4cca6ff84c59189d437bb83007a03">PrintQue</a>();
<a name="l00092"></a>00092 <span class="keyword">private</span>:
<a name="l00093"></a>00093         <a class="code" href="class_c_timer_entry.html">CTimerEntry</a>(CConsoleBase* aConsole);
<a name="l00094"></a>00094         <span class="keywordtype">void</span> ConstructL();
<a name="l00095"></a>00095 <span class="keyword">private</span>:
<a name="l00099"></a>00099         TDeltaQue&lt;TTimerEntry&gt; iQueue;
<a name="l00103"></a>00103         TDblQueIter&lt;TTimerEntry&gt; iIterator;
<a name="l00107"></a>00107         TInt iCount;
<a name="l00111"></a>00111         TOp iOp;
<a name="l00115"></a>00115         CConsoleBase* iConsole;
<a name="l00121"></a>00121         TBool iWaitFlag;
<a name="l00122"></a>00122         };
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 <span class="preprocessor">#endif</span>
<a name="l00125"></a>00125 <span class="preprocessor"></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>