Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/timerentry_8h-source.html
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Tue, 30 Mar 2010 11:42:04 +0100
changeset 4 4816d766a08a
parent 1 25a17d01db0c
permissions -rw-r--r--
Week 12 contribution of SDK documentation_content. See release notes for details. Fixes Bug 1892, Bug 1522, Bug 1520, Bug 394, Bug 1319, Bug 344, Bug 1897

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>TB10.1 Example Applications: examples/Base/ArraysAndLists/linkedlist/deltaque/inc/timerentry.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.3 -->
<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 "Eclipse Public License v1.0"</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 "http://www.eclipse.org/legal/epl-v10.html".</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 "<a class="code" href="deltaque_8h.html">deltaque.h</a>"</span>
<a name="l00027"></a>00027 
<a name="l00028"></a><a class="code" href="timerentry_8h.html#1d76d5d6749e42f230fa13809142da9c">00028</a> <span class="keyword">const</span> TUint <a class="code" href="timerentry_8h.html#1d76d5d6749e42f230fa13809142da9c">KWaitTime</a> = 2;
<a name="l00029"></a><a class="code" href="timerentry_8h.html#7cfb6e84793cfd2baafc893a55b0ccb4">00029</a> <span class="keyword">const</span> TInt <a class="code" href="timerentry_8h.html#7cfb6e84793cfd2baafc893a55b0ccb4">KMaxTimeToWait</a> = 5;
<a name="l00030"></a><a class="code" href="timerentry_8h.html#90cbe647f799b86912411915ca39231c">00030</a> <span class="keyword">const</span> TUint <a class="code" href="timerentry_8h.html#90cbe647f799b86912411915ca39231c">KInterval</a> = 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#3ab7cbadf08c805fd2ddb864b19eb9d7">00042</a>         TDeltaQueLink <a class="code" href="class_t_timer_entry.html#3ab7cbadf08c805fd2ddb864b19eb9d7">iLink</a>;
<a name="l00043"></a>00043         };
<a name="l00044"></a>00044 
<a name="l00048"></a><a class="code" href="timerentry_8h.html#417100e77f433b7a4e47986b04938e0c">00048</a> <span class="keyword">const</span> TInt <a class="code" href="timerentry_8h.html#417100e77f433b7a4e47986b04938e0c">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#e9239b3945aa446c00506024551a8268">NewL</a>(CConsoleBase* aConsole);
<a name="l00084"></a>00084         <a class="code" href="class_c_timer_entry.html#193d31aafb44a96b5b1e2ea6c0d57f78">~CTimerEntry</a>();
<a name="l00085"></a>00085         TBool <a class="code" href="class_c_timer_entry.html#0500f775214fb36077a020c8d6ec58d1">AddToQueueL</a>(TInt aInterval);
<a name="l00086"></a>00086         <span class="keywordtype">void</span> <a class="code" href="class_c_timer_entry.html#19f74837cbfb53d10b57b922898648d1">ArbitratorL</a>();
<a name="l00087"></a>00087         TBool <a class="code" href="class_c_timer_entry.html#41e0ec777102f5e9317469a83ddd6b82">RemoveFromQueue</a>();
<a name="l00088"></a>00088         <span class="keywordtype">void</span> <a class="code" href="class_c_timer_entry.html#b03ab2f073ce345c257048d5f364cc98">RunL</a>();
<a name="l00089"></a>00089         <span class="keywordtype">void</span> <a class="code" href="class_c_timer_entry.html#21a3db06e926673b3dd3f83b40bd57e2">DoCancel</a>();
<a name="l00090"></a>00090         <span class="keywordtype">void</span> <a class="code" href="class_c_timer_entry.html#06ea9b1cc9e02c51ac544ec85cacb477">IssueRequest</a>();
<a name="l00091"></a>00091         <span class="keywordtype">void</span> <a class="code" href="class_c_timer_entry.html#50d4cca6ff84c59189d437bb83007a03">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><hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 21 10:32:55 2010 for TB10.1 Example Applications by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>