|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
|
3 <title>TB10.1 Example Applications: CTimerEntry Class Reference</title> |
|
4 <link href="doxygen.css" rel="stylesheet" type="text/css"> |
|
5 <link href="tabs.css" rel="stylesheet" type="text/css"> |
|
6 </head><body> |
|
7 <!-- Generated by Doxygen 1.5.3 --> |
|
8 <h1>CTimerEntry Class Reference</h1><!-- doxytag: class="CTimerEntry" --> |
|
9 <p> |
|
10 <a href="class_c_timer_entry-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
|
11 <tr><td></td></tr> |
|
12 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
|
13 <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_timer_entry.html#193d31aafb44a96b5b1e2ea6c0d57f78">~CTimerEntry</a> ()</td></tr> |
|
14 |
|
15 <tr><td class="memItemLeft" nowrap align="right" valign="top">TBool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_timer_entry.html#0500f775214fb36077a020c8d6ec58d1">AddToQueueL</a> (TInt aInterval)</td></tr> |
|
16 |
|
17 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_timer_entry.html#19f74837cbfb53d10b57b922898648d1">ArbitratorL</a> ()</td></tr> |
|
18 |
|
19 <tr><td class="memItemLeft" nowrap align="right" valign="top">TBool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_timer_entry.html#41e0ec777102f5e9317469a83ddd6b82">RemoveFromQueue</a> ()</td></tr> |
|
20 |
|
21 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_timer_entry.html#b03ab2f073ce345c257048d5f364cc98">RunL</a> ()</td></tr> |
|
22 |
|
23 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_timer_entry.html#21a3db06e926673b3dd3f83b40bd57e2">DoCancel</a> ()</td></tr> |
|
24 |
|
25 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_timer_entry.html#06ea9b1cc9e02c51ac544ec85cacb477">IssueRequest</a> ()</td></tr> |
|
26 |
|
27 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_timer_entry.html#50d4cca6ff84c59189d437bb83007a03">PrintQue</a> ()</td></tr> |
|
28 |
|
29 <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> |
|
30 <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_timer_entry.html">CTimerEntry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_timer_entry.html#e9239b3945aa446c00506024551a8268">NewL</a> (CConsoleBase *aConsole)</td></tr> |
|
31 |
|
32 </table> |
|
33 <hr><a name="_details"></a><h2>Detailed Description</h2> |
|
34 This class has a delta queue of objects of the <a class="el" href="class_t_timer_entry.html">TTimerEntry</a> class.<p> |
|
35 It triggers timer events at random intervals. At each such event, either the tick count is added to the queue or an element is removed from the queue based on the number of elements present in the queue.<p> |
|
36 The tick count is taken as the delta value of the queue and this value is adjusted each time an object of the <a class="el" href="class_t_timer_entry.html">TTimerEntry</a> class is added to the queue.<p> |
|
37 It also has methods to:<ul> |
|
38 <li>add elements to the delta queue</li><li>remove elements from the delta queue. </li></ul> |
|
39 |
|
40 <p>Definition at line <a class="el" href="timerentry_8h-source.html#l00064">64</a> of file <a class="el" href="timerentry_8h-source.html">timerentry.h</a>.</p> |
|
41 <hr><h2>Constructor & Destructor Documentation</h2> |
|
42 <a class="anchor" name="193d31aafb44a96b5b1e2ea6c0d57f78"></a><!-- doxytag: member="CTimerEntry::~CTimerEntry" ref="193d31aafb44a96b5b1e2ea6c0d57f78" args="()" --> |
|
43 <div class="memitem"> |
|
44 <div class="memproto"> |
|
45 <table class="memname"> |
|
46 <tr> |
|
47 <td class="memname">CTimerEntry::~CTimerEntry </td> |
|
48 <td>(</td> |
|
49 <td class="paramname"> </td> |
|
50 <td> ) </td> |
|
51 <td width="100%"></td> |
|
52 </tr> |
|
53 </table> |
|
54 </div> |
|
55 <div class="memdoc"> |
|
56 |
|
57 <p> |
|
58 Destructor. The <a class="el" href="class_t_timer_entry.html">TTimerEntry</a> objects were allocated memory at runtime. Iterate over the list to delete them. |
|
59 <p>Definition at line <a class="el" href="timerentry_8cpp-source.html#l00245">245</a> of file <a class="el" href="timerentry_8cpp-source.html">timerentry.cpp</a>.</p> |
|
60 |
|
61 </div> |
|
62 </div><p> |
|
63 <hr><h2>Member Function Documentation</h2> |
|
64 <a class="anchor" name="e9239b3945aa446c00506024551a8268"></a><!-- doxytag: member="CTimerEntry::NewL" ref="e9239b3945aa446c00506024551a8268" args="(CConsoleBase *aConsole)" --> |
|
65 <div class="memitem"> |
|
66 <div class="memproto"> |
|
67 <table class="memname"> |
|
68 <tr> |
|
69 <td class="memname"><a class="el" href="class_c_timer_entry.html">CTimerEntry</a> * CTimerEntry::NewL </td> |
|
70 <td>(</td> |
|
71 <td class="paramtype">CConsoleBase * </td> |
|
72 <td class="paramname"> <em>aConsole</em> </td> |
|
73 <td> ) </td> |
|
74 <td width="100%"><code> [static]</code></td> |
|
75 </tr> |
|
76 </table> |
|
77 </div> |
|
78 <div class="memdoc"> |
|
79 |
|
80 <p> |
|
81 Creates an object of the <a class="el" href="class_c_timer_entry.html">CTimerEntry</a> class. <dl compact><dt><b>Parameters:</b></dt><dd> |
|
82 <table border="0" cellspacing="2" cellpadding="0"> |
|
83 <tr><td valign="top"></td><td valign="top"><em>aConsole</em> </td><td>The user console. </td></tr> |
|
84 </table> |
|
85 </dl> |
|
86 |
|
87 <p>Definition at line <a class="el" href="timerentry_8cpp-source.html#l00029">29</a> of file <a class="el" href="timerentry_8cpp-source.html">timerentry.cpp</a>.</p> |
|
88 |
|
89 </div> |
|
90 </div><p> |
|
91 <a class="anchor" name="0500f775214fb36077a020c8d6ec58d1"></a><!-- doxytag: member="CTimerEntry::AddToQueueL" ref="0500f775214fb36077a020c8d6ec58d1" args="(TInt aInterval)" --> |
|
92 <div class="memitem"> |
|
93 <div class="memproto"> |
|
94 <table class="memname"> |
|
95 <tr> |
|
96 <td class="memname">TBool CTimerEntry::AddToQueueL </td> |
|
97 <td>(</td> |
|
98 <td class="paramtype">TInt </td> |
|
99 <td class="paramname"> <em>aTicks</em> </td> |
|
100 <td> ) </td> |
|
101 <td width="100%"></td> |
|
102 </tr> |
|
103 </table> |
|
104 </div> |
|
105 <div class="memdoc"> |
|
106 |
|
107 <p> |
|
108 Adds a tick count to the delta queue. <dl compact><dt><b>Parameters:</b></dt><dd> |
|
109 <table border="0" cellspacing="2" cellpadding="0"> |
|
110 <tr><td valign="top"></td><td valign="top"><em>aTicks</em> </td><td>The tick count. </td></tr> |
|
111 </table> |
|
112 </dl> |
|
113 <dl class="return" compact><dt><b>Returns:</b></dt><dd>EFalse if the queue is full, else EFalse. </dd></dl> |
|
114 |
|
115 <p>Definition at line <a class="el" href="timerentry_8cpp-source.html#l00151">151</a> of file <a class="el" href="timerentry_8cpp-source.html">timerentry.cpp</a>.</p> |
|
116 |
|
117 </div> |
|
118 </div><p> |
|
119 <a class="anchor" name="19f74837cbfb53d10b57b922898648d1"></a><!-- doxytag: member="CTimerEntry::ArbitratorL" ref="19f74837cbfb53d10b57b922898648d1" args="()" --> |
|
120 <div class="memitem"> |
|
121 <div class="memproto"> |
|
122 <table class="memname"> |
|
123 <tr> |
|
124 <td class="memname">void CTimerEntry::ArbitratorL </td> |
|
125 <td>(</td> |
|
126 <td class="paramname"> </td> |
|
127 <td> ) </td> |
|
128 <td width="100%"></td> |
|
129 </tr> |
|
130 </table> |
|
131 </div> |
|
132 <div class="memdoc"> |
|
133 |
|
134 <p> |
|
135 The arbitrator function. It either adds elements to the list or removes elements from the list based on the iOp variable. |
|
136 <p>Definition at line <a class="el" href="timerentry_8cpp-source.html#l00104">104</a> of file <a class="el" href="timerentry_8cpp-source.html">timerentry.cpp</a>.</p> |
|
137 |
|
138 </div> |
|
139 </div><p> |
|
140 <a class="anchor" name="41e0ec777102f5e9317469a83ddd6b82"></a><!-- doxytag: member="CTimerEntry::RemoveFromQueue" ref="41e0ec777102f5e9317469a83ddd6b82" args="()" --> |
|
141 <div class="memitem"> |
|
142 <div class="memproto"> |
|
143 <table class="memname"> |
|
144 <tr> |
|
145 <td class="memname">TBool CTimerEntry::RemoveFromQueue </td> |
|
146 <td>(</td> |
|
147 <td class="paramname"> </td> |
|
148 <td> ) </td> |
|
149 <td width="100%"></td> |
|
150 </tr> |
|
151 </table> |
|
152 </div> |
|
153 <div class="memdoc"> |
|
154 |
|
155 <p> |
|
156 Removes an element from the delta queue. <dl class="return" compact><dt><b>Returns:</b></dt><dd>EFalse if the queue is empty, else EFalse. </dd></dl> |
|
157 |
|
158 <p>Definition at line <a class="el" href="timerentry_8cpp-source.html#l00199">199</a> of file <a class="el" href="timerentry_8cpp-source.html">timerentry.cpp</a>.</p> |
|
159 |
|
160 </div> |
|
161 </div><p> |
|
162 <a class="anchor" name="b03ab2f073ce345c257048d5f364cc98"></a><!-- doxytag: member="CTimerEntry::RunL" ref="b03ab2f073ce345c257048d5f364cc98" args="()" --> |
|
163 <div class="memitem"> |
|
164 <div class="memproto"> |
|
165 <table class="memname"> |
|
166 <tr> |
|
167 <td class="memname">void CTimerEntry::RunL </td> |
|
168 <td>(</td> |
|
169 <td class="paramname"> </td> |
|
170 <td> ) </td> |
|
171 <td width="100%"></td> |
|
172 </tr> |
|
173 </table> |
|
174 </div> |
|
175 <div class="memdoc"> |
|
176 |
|
177 <p> |
|
178 Handles the request completion. |
|
179 <p>Definition at line <a class="el" href="timerentry_8cpp-source.html#l00071">71</a> of file <a class="el" href="timerentry_8cpp-source.html">timerentry.cpp</a>.</p> |
|
180 |
|
181 </div> |
|
182 </div><p> |
|
183 <a class="anchor" name="21a3db06e926673b3dd3f83b40bd57e2"></a><!-- doxytag: member="CTimerEntry::DoCancel" ref="21a3db06e926673b3dd3f83b40bd57e2" args="()" --> |
|
184 <div class="memitem"> |
|
185 <div class="memproto"> |
|
186 <table class="memname"> |
|
187 <tr> |
|
188 <td class="memname">void CTimerEntry::DoCancel </td> |
|
189 <td>(</td> |
|
190 <td class="paramname"> </td> |
|
191 <td> ) </td> |
|
192 <td width="100%"></td> |
|
193 </tr> |
|
194 </table> |
|
195 </div> |
|
196 <div class="memdoc"> |
|
197 |
|
198 <p> |
|
199 Cancel any outstanding request. |
|
200 <p>Definition at line <a class="el" href="timerentry_8cpp-source.html#l00266">266</a> of file <a class="el" href="timerentry_8cpp-source.html">timerentry.cpp</a>.</p> |
|
201 |
|
202 </div> |
|
203 </div><p> |
|
204 <a class="anchor" name="06ea9b1cc9e02c51ac544ec85cacb477"></a><!-- doxytag: member="CTimerEntry::IssueRequest" ref="06ea9b1cc9e02c51ac544ec85cacb477" args="()" --> |
|
205 <div class="memitem"> |
|
206 <div class="memproto"> |
|
207 <table class="memname"> |
|
208 <tr> |
|
209 <td class="memname">void CTimerEntry::IssueRequest </td> |
|
210 <td>(</td> |
|
211 <td class="paramname"> </td> |
|
212 <td> ) </td> |
|
213 <td width="100%"></td> |
|
214 </tr> |
|
215 </table> |
|
216 </div> |
|
217 <div class="memdoc"> |
|
218 |
|
219 <p> |
|
220 Issues a wait request. |
|
221 <p>Definition at line <a class="el" href="timerentry_8cpp-source.html#l00085">85</a> of file <a class="el" href="timerentry_8cpp-source.html">timerentry.cpp</a>.</p> |
|
222 |
|
223 </div> |
|
224 </div><p> |
|
225 <a class="anchor" name="50d4cca6ff84c59189d437bb83007a03"></a><!-- doxytag: member="CTimerEntry::PrintQue" ref="50d4cca6ff84c59189d437bb83007a03" args="()" --> |
|
226 <div class="memitem"> |
|
227 <div class="memproto"> |
|
228 <table class="memname"> |
|
229 <tr> |
|
230 <td class="memname">void CTimerEntry::PrintQue </td> |
|
231 <td>(</td> |
|
232 <td class="paramname"> </td> |
|
233 <td> ) </td> |
|
234 <td width="100%"></td> |
|
235 </tr> |
|
236 </table> |
|
237 </div> |
|
238 <div class="memdoc"> |
|
239 |
|
240 <p> |
|
241 Prints the contents of the delta queue. |
|
242 <p>Definition at line <a class="el" href="timerentry_8cpp-source.html#l00174">174</a> of file <a class="el" href="timerentry_8cpp-source.html">timerentry.cpp</a>.</p> |
|
243 |
|
244 </div> |
|
245 </div><p> |
|
246 <hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 21 10:33:07 2010 for TB10.1 Example Applications by |
|
247 <a href="http://www.doxygen.org/index.html"> |
|
248 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> |
|
249 </body> |
|
250 </html> |