TimeTracker/Documentation/source/Plugin_Time_Tracker.TimeTracker.TimeTrackEntry.html

changeset 87
4ac2329b36da
parent 42
37049a04b8fa
child 95
7449695cf655
equal deleted inserted replaced
86:94ee489db94c 87:4ac2329b36da
16 16
17 a { color: #BA6D36; } 17 a { color: #BA6D36; }
18 18
19 </style> 19 </style>
20 </head> 20 </head>
21 <body><a NAME="top" ID="top"></a> 21 <body>
22 <a NAME="top" ID="top"></a>
22 <h1>Plugin_Time_Tracker.TimeTracker.TimeTrackEntry</h1> 23 <h1>Plugin_Time_Tracker.TimeTracker.TimeTrackEntry</h1>
24
23 <p> 25 <p>
24 Module implementing the time track entry class. 26 Module implementing the time track entry class.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>None</td></tr> 31 <tr><td>None</td></tr>
29 </table> 32 </table>
30 <h3>Classes</h3> 33 <h3>Classes</h3>
31 <table> 34
35 <table>
36
32 <tr> 37 <tr>
33 <td><a href="#TimeTrackEntry">TimeTrackEntry</a></td> 38 <td><a href="#TimeTrackEntry">TimeTrackEntry</a></td>
34 <td>Class implementing the time track entry.</td> 39 <td>Class implementing the time track entry.</td>
35 </tr> 40 </tr>
36 </table> 41 </table>
37 <h3>Functions</h3> 42 <h3>Functions</h3>
43
38 <table> 44 <table>
39 <tr><td>None</td></tr> 45 <tr><td>None</td></tr>
40 </table> 46 </table>
41 <hr /><hr /> 47 <hr />
48 <hr />
42 <a NAME="TimeTrackEntry" ID="TimeTrackEntry"></a> 49 <a NAME="TimeTrackEntry" ID="TimeTrackEntry"></a>
43 <h2>TimeTrackEntry</h2> 50 <h2>TimeTrackEntry</h2>
51
44 <p> 52 <p>
45 Class implementing the time track entry. 53 Class implementing the time track entry.
46 </p> 54 </p>
47 <h3>Derived from</h3> 55 <h3>Derived from</h3>
48 object 56 object
49 <h3>Class Attributes</h3> 57 <h3>Class Attributes</h3>
58
50 <table> 59 <table>
51 <tr><td>LineMarker</td></tr><tr><td>Separator</td></tr> 60 <tr><td>LineMarker</td></tr><tr><td>Separator</td></tr>
52 </table> 61 </table>
53 <h3>Class Methods</h3> 62 <h3>Class Methods</h3>
63
54 <table> 64 <table>
55 <tr><td>None</td></tr> 65 <tr><td>None</td></tr>
56 </table> 66 </table>
57 <h3>Methods</h3> 67 <h3>Methods</h3>
58 <table> 68
69 <table>
70
59 <tr> 71 <tr>
60 <td><a href="#TimeTrackEntry.__init__">TimeTrackEntry</a></td> 72 <td><a href="#TimeTrackEntry.__init__">TimeTrackEntry</a></td>
61 <td>Constructor</td> 73 <td>Constructor</td>
62 </tr><tr> 74 </tr>
75 <tr>
63 <td><a href="#TimeTrackEntry.__calculateDuration">__calculateDuration</a></td> 76 <td><a href="#TimeTrackEntry.__calculateDuration">__calculateDuration</a></td>
64 <td>Private method to calculate the duration in minutes.</td> 77 <td>Private method to calculate the duration in minutes.</td>
65 </tr><tr> 78 </tr>
79 <tr>
66 <td><a href="#TimeTrackEntry.__currentDateTime">__currentDateTime</a></td> 80 <td><a href="#TimeTrackEntry.__currentDateTime">__currentDateTime</a></td>
67 <td>Private method to get the current date and time without milliseconds.</td> 81 <td>Private method to get the current date and time without milliseconds.</td>
68 </tr><tr> 82 </tr>
83 <tr>
69 <td><a href="#TimeTrackEntry.__lt__">__lt__</a></td> 84 <td><a href="#TimeTrackEntry.__lt__">__lt__</a></td>
70 <td>Special method implementing the less than function.</td> 85 <td>Special method implementing the less than function.</td>
71 </tr><tr> 86 </tr>
87 <tr>
72 <td><a href="#TimeTrackEntry.addDuration">addDuration</a></td> 88 <td><a href="#TimeTrackEntry.addDuration">addDuration</a></td>
73 <td>Public method to add a duration.</td> 89 <td>Public method to add a duration.</td>
74 </tr><tr> 90 </tr>
91 <tr>
75 <td><a href="#TimeTrackEntry.continue_">continue_</a></td> 92 <td><a href="#TimeTrackEntry.continue_">continue_</a></td>
76 <td>Public method to continue the entry.</td> 93 <td>Public method to continue the entry.</td>
77 </tr><tr> 94 </tr>
95 <tr>
78 <td><a href="#TimeTrackEntry.fromString">fromString</a></td> 96 <td><a href="#TimeTrackEntry.fromString">fromString</a></td>
79 <td>Public method to populate the entry from the given string.</td> 97 <td>Public method to populate the entry from the given string.</td>
80 </tr><tr> 98 </tr>
99 <tr>
81 <td><a href="#TimeTrackEntry.getComment">getComment</a></td> 100 <td><a href="#TimeTrackEntry.getComment">getComment</a></td>
82 <td>Public method to get the comment.</td> 101 <td>Public method to get the comment.</td>
83 </tr><tr> 102 </tr>
103 <tr>
84 <td><a href="#TimeTrackEntry.getDuration">getDuration</a></td> 104 <td><a href="#TimeTrackEntry.getDuration">getDuration</a></td>
85 <td>Public slot to get the duration.</td> 105 <td>Public slot to get the duration.</td>
86 </tr><tr> 106 </tr>
107 <tr>
87 <td><a href="#TimeTrackEntry.getEntryData">getEntryData</a></td> 108 <td><a href="#TimeTrackEntry.getEntryData">getEntryData</a></td>
88 <td>Public method to get the entry data.</td> 109 <td>Public method to get the entry data.</td>
89 </tr><tr> 110 </tr>
111 <tr>
90 <td><a href="#TimeTrackEntry.getID">getID</a></td> 112 <td><a href="#TimeTrackEntry.getID">getID</a></td>
91 <td>Public method to get the ID of the entry.</td> 113 <td>Public method to get the ID of the entry.</td>
92 </tr><tr> 114 </tr>
115 <tr>
93 <td><a href="#TimeTrackEntry.getStartDateTime">getStartDateTime</a></td> 116 <td><a href="#TimeTrackEntry.getStartDateTime">getStartDateTime</a></td>
94 <td>Public method to get the start date and time.</td> 117 <td>Public method to get the start date and time.</td>
95 </tr><tr> 118 </tr>
119 <tr>
96 <td><a href="#TimeTrackEntry.getTask">getTask</a></td> 120 <td><a href="#TimeTrackEntry.getTask">getTask</a></td>
97 <td>Public method to get the task description.</td> 121 <td>Public method to get the task description.</td>
98 </tr><tr> 122 </tr>
123 <tr>
99 <td><a href="#TimeTrackEntry.isPaused">isPaused</a></td> 124 <td><a href="#TimeTrackEntry.isPaused">isPaused</a></td>
100 <td>Public method to check for a paused state.</td> 125 <td>Public method to check for a paused state.</td>
101 </tr><tr> 126 </tr>
127 <tr>
102 <td><a href="#TimeTrackEntry.isValid">isValid</a></td> 128 <td><a href="#TimeTrackEntry.isValid">isValid</a></td>
103 <td>Public method to check the validity of the entry.</td> 129 <td>Public method to check the validity of the entry.</td>
104 </tr><tr> 130 </tr>
131 <tr>
105 <td><a href="#TimeTrackEntry.pause">pause</a></td> 132 <td><a href="#TimeTrackEntry.pause">pause</a></td>
106 <td>Public method to pause the entry.</td> 133 <td>Public method to pause the entry.</td>
107 </tr><tr> 134 </tr>
135 <tr>
108 <td><a href="#TimeTrackEntry.setComment">setComment</a></td> 136 <td><a href="#TimeTrackEntry.setComment">setComment</a></td>
109 <td>Public method to set a comment.</td> 137 <td>Public method to set a comment.</td>
110 </tr><tr> 138 </tr>
139 <tr>
111 <td><a href="#TimeTrackEntry.setDuration">setDuration</a></td> 140 <td><a href="#TimeTrackEntry.setDuration">setDuration</a></td>
112 <td>Public method to set the duration.</td> 141 <td>Public method to set the duration.</td>
113 </tr><tr> 142 </tr>
143 <tr>
114 <td><a href="#TimeTrackEntry.setID">setID</a></td> 144 <td><a href="#TimeTrackEntry.setID">setID</a></td>
115 <td>Public method to assign an ID to the entry.</td> 145 <td>Public method to assign an ID to the entry.</td>
116 </tr><tr> 146 </tr>
147 <tr>
117 <td><a href="#TimeTrackEntry.setStartDateTime">setStartDateTime</a></td> 148 <td><a href="#TimeTrackEntry.setStartDateTime">setStartDateTime</a></td>
118 <td>Public method to set the start date and time.</td> 149 <td>Public method to set the start date and time.</td>
119 </tr><tr> 150 </tr>
151 <tr>
120 <td><a href="#TimeTrackEntry.setTask">setTask</a></td> 152 <td><a href="#TimeTrackEntry.setTask">setTask</a></td>
121 <td>Public method to set the task description.</td> 153 <td>Public method to set the task description.</td>
122 </tr><tr> 154 </tr>
155 <tr>
123 <td><a href="#TimeTrackEntry.start">start</a></td> 156 <td><a href="#TimeTrackEntry.start">start</a></td>
124 <td>Public method to set the start time of this entry.</td> 157 <td>Public method to set the start time of this entry.</td>
125 </tr><tr> 158 </tr>
159 <tr>
126 <td><a href="#TimeTrackEntry.stop">stop</a></td> 160 <td><a href="#TimeTrackEntry.stop">stop</a></td>
127 <td>Public method to stop this entry.</td> 161 <td>Public method to stop this entry.</td>
128 </tr><tr> 162 </tr>
163 <tr>
129 <td><a href="#TimeTrackEntry.toString">toString</a></td> 164 <td><a href="#TimeTrackEntry.toString">toString</a></td>
130 <td>Public method to get a string representation of the entry.</td> 165 <td>Public method to get a string representation of the entry.</td>
131 </tr> 166 </tr>
132 </table> 167 </table>
133 <h3>Static Methods</h3> 168 <h3>Static Methods</h3>
169
134 <table> 170 <table>
135 <tr><td>None</td></tr> 171 <tr><td>None</td></tr>
136 </table> 172 </table>
173
137 <a NAME="TimeTrackEntry.__init__" ID="TimeTrackEntry.__init__"></a> 174 <a NAME="TimeTrackEntry.__init__" ID="TimeTrackEntry.__init__"></a>
138 <h4>TimeTrackEntry (Constructor)</h4> 175 <h4>TimeTrackEntry (Constructor)</h4>
139 <b>TimeTrackEntry</b>(<i>plugin</i>) 176 <b>TimeTrackEntry</b>(<i>plugin</i>)
177
140 <p> 178 <p>
141 Constructor 179 Constructor
142 </p><dl> 180 </p>
181 <dl>
182
143 <dt><i>plugin</i></dt> 183 <dt><i>plugin</i></dt>
144 <dd> 184 <dd>
145 reference to the plugin object (TimeTrackerPlugin) 185 reference to the plugin object (TimeTrackerPlugin)
146 </dd> 186 </dd>
147 </dl><a NAME="TimeTrackEntry.__calculateDuration" ID="TimeTrackEntry.__calculateDuration"></a> 187 </dl>
188 <a NAME="TimeTrackEntry.__calculateDuration" ID="TimeTrackEntry.__calculateDuration"></a>
148 <h4>TimeTrackEntry.__calculateDuration</h4> 189 <h4>TimeTrackEntry.__calculateDuration</h4>
149 <b>__calculateDuration</b>(<i>start, stop</i>) 190 <b>__calculateDuration</b>(<i>start, stop</i>)
191
150 <p> 192 <p>
151 Private method to calculate the duration in minutes. 193 Private method to calculate the duration in minutes.
152 </p><dl> 194 </p>
195 <dl>
196
153 <dt><i>start</i></dt> 197 <dt><i>start</i></dt>
154 <dd> 198 <dd>
155 start date and time (QDateTime) 199 start date and time (QDateTime)
156 </dd><dt><i>stop</i></dt> 200 </dd>
201 <dt><i>stop</i></dt>
157 <dd> 202 <dd>
158 end date and time (QDateTime) 203 end date and time (QDateTime)
159 </dd> 204 </dd>
160 </dl><dl> 205 </dl>
206 <dl>
161 <dt>Returns:</dt> 207 <dt>Returns:</dt>
162 <dd> 208 <dd>
163 duration in minutes (int) 209 duration in minutes (int)
164 </dd> 210 </dd>
165 </dl><a NAME="TimeTrackEntry.__currentDateTime" ID="TimeTrackEntry.__currentDateTime"></a> 211 </dl>
212 <a NAME="TimeTrackEntry.__currentDateTime" ID="TimeTrackEntry.__currentDateTime"></a>
166 <h4>TimeTrackEntry.__currentDateTime</h4> 213 <h4>TimeTrackEntry.__currentDateTime</h4>
167 <b>__currentDateTime</b>(<i></i>) 214 <b>__currentDateTime</b>(<i></i>)
215
168 <p> 216 <p>
169 Private method to get the current date and time without milliseconds. 217 Private method to get the current date and time without milliseconds.
170 </p><dl> 218 </p>
219 <dl>
171 <dt>Returns:</dt> 220 <dt>Returns:</dt>
172 <dd> 221 <dd>
173 current date and time (QDateTime) 222 current date and time (QDateTime)
174 </dd> 223 </dd>
175 </dl><a NAME="TimeTrackEntry.__lt__" ID="TimeTrackEntry.__lt__"></a> 224 </dl>
225 <a NAME="TimeTrackEntry.__lt__" ID="TimeTrackEntry.__lt__"></a>
176 <h4>TimeTrackEntry.__lt__</h4> 226 <h4>TimeTrackEntry.__lt__</h4>
177 <b>__lt__</b>(<i>other</i>) 227 <b>__lt__</b>(<i>other</i>)
228
178 <p> 229 <p>
179 Special method implementing the less than function. 230 Special method implementing the less than function.
180 </p><dl> 231 </p>
232 <dl>
233
181 <dt><i>other</i></dt> 234 <dt><i>other</i></dt>
182 <dd> 235 <dd>
183 reference to the other object (TimeTrackEntry) 236 reference to the other object (TimeTrackEntry)
184 </dd> 237 </dd>
185 </dl><dl> 238 </dl>
239 <dl>
186 <dt>Returns:</dt> 240 <dt>Returns:</dt>
187 <dd> 241 <dd>
188 flag indicating that self is less than other (boolean) 242 flag indicating that self is less than other (boolean)
189 </dd> 243 </dd>
190 </dl><a NAME="TimeTrackEntry.addDuration" ID="TimeTrackEntry.addDuration"></a> 244 </dl>
245 <a NAME="TimeTrackEntry.addDuration" ID="TimeTrackEntry.addDuration"></a>
191 <h4>TimeTrackEntry.addDuration</h4> 246 <h4>TimeTrackEntry.addDuration</h4>
192 <b>addDuration</b>(<i>duration</i>) 247 <b>addDuration</b>(<i>duration</i>)
248
193 <p> 249 <p>
194 Public method to add a duration. 250 Public method to add a duration.
195 </p><dl> 251 </p>
252 <dl>
253
196 <dt><i>duration</i></dt> 254 <dt><i>duration</i></dt>
197 <dd> 255 <dd>
198 duration to be added in minutes (integer). Negative 256 duration to be added in minutes (integer). Negative
199 values are ignored. 257 values are ignored.
200 </dd> 258 </dd>
201 </dl><a NAME="TimeTrackEntry.continue_" ID="TimeTrackEntry.continue_"></a> 259 </dl>
260 <a NAME="TimeTrackEntry.continue_" ID="TimeTrackEntry.continue_"></a>
202 <h4>TimeTrackEntry.continue_</h4> 261 <h4>TimeTrackEntry.continue_</h4>
203 <b>continue_</b>(<i></i>) 262 <b>continue_</b>(<i></i>)
263
204 <p> 264 <p>
205 Public method to continue the entry. 265 Public method to continue the entry.
206 </p><a NAME="TimeTrackEntry.fromString" ID="TimeTrackEntry.fromString"></a> 266 </p>
267 <a NAME="TimeTrackEntry.fromString" ID="TimeTrackEntry.fromString"></a>
207 <h4>TimeTrackEntry.fromString</h4> 268 <h4>TimeTrackEntry.fromString</h4>
208 <b>fromString</b>(<i>line</i>) 269 <b>fromString</b>(<i>line</i>)
270
209 <p> 271 <p>
210 Public method to populate the entry from the given string. 272 Public method to populate the entry from the given string.
211 </p><dl> 273 </p>
274 <dl>
275
212 <dt><i>line</i></dt> 276 <dt><i>line</i></dt>
213 <dd> 277 <dd>
214 stringified entry data as generated by toString() (string) 278 stringified entry data as generated by toString() (string)
215 </dd> 279 </dd>
216 </dl><dl> 280 </dl>
281 <dl>
217 <dt>Returns:</dt> 282 <dt>Returns:</dt>
218 <dd> 283 <dd>
219 ID of the tracker entry; -1 indicates an error (integer) 284 ID of the tracker entry; -1 indicates an error (integer)
220 </dd> 285 </dd>
221 </dl><a NAME="TimeTrackEntry.getComment" ID="TimeTrackEntry.getComment"></a> 286 </dl>
287 <a NAME="TimeTrackEntry.getComment" ID="TimeTrackEntry.getComment"></a>
222 <h4>TimeTrackEntry.getComment</h4> 288 <h4>TimeTrackEntry.getComment</h4>
223 <b>getComment</b>(<i></i>) 289 <b>getComment</b>(<i></i>)
290
224 <p> 291 <p>
225 Public method to get the comment. 292 Public method to get the comment.
226 </p><dl> 293 </p>
294 <dl>
227 <dt>Returns:</dt> 295 <dt>Returns:</dt>
228 <dd> 296 <dd>
229 comment (string) 297 comment (string)
230 </dd> 298 </dd>
231 </dl><a NAME="TimeTrackEntry.getDuration" ID="TimeTrackEntry.getDuration"></a> 299 </dl>
300 <a NAME="TimeTrackEntry.getDuration" ID="TimeTrackEntry.getDuration"></a>
232 <h4>TimeTrackEntry.getDuration</h4> 301 <h4>TimeTrackEntry.getDuration</h4>
233 <b>getDuration</b>(<i></i>) 302 <b>getDuration</b>(<i></i>)
303
234 <p> 304 <p>
235 Public slot to get the duration. 305 Public slot to get the duration.
236 </p><dl> 306 </p>
307 <dl>
237 <dt>Returns:</dt> 308 <dt>Returns:</dt>
238 <dd> 309 <dd>
239 duration (integer) 310 duration (integer)
240 </dd> 311 </dd>
241 </dl><a NAME="TimeTrackEntry.getEntryData" ID="TimeTrackEntry.getEntryData"></a> 312 </dl>
313 <a NAME="TimeTrackEntry.getEntryData" ID="TimeTrackEntry.getEntryData"></a>
242 <h4>TimeTrackEntry.getEntryData</h4> 314 <h4>TimeTrackEntry.getEntryData</h4>
243 <b>getEntryData</b>(<i></i>) 315 <b>getEntryData</b>(<i></i>)
316
244 <p> 317 <p>
245 Public method to get the entry data. 318 Public method to get the entry data.
246 </p><dl> 319 </p>
320 <dl>
247 <dt>Returns:</dt> 321 <dt>Returns:</dt>
248 <dd> 322 <dd>
249 entry data as a tuple of start date (string), start time 323 entry data as a tuple of start date (string), start time
250 (string), duration (integer), task (string), comment (string) 324 (string), duration (integer), task (string), comment (string)
251 and flag indicating a paused state (boolean) 325 and flag indicating a paused state (boolean)
252 </dd> 326 </dd>
253 </dl><a NAME="TimeTrackEntry.getID" ID="TimeTrackEntry.getID"></a> 327 </dl>
328 <a NAME="TimeTrackEntry.getID" ID="TimeTrackEntry.getID"></a>
254 <h4>TimeTrackEntry.getID</h4> 329 <h4>TimeTrackEntry.getID</h4>
255 <b>getID</b>(<i></i>) 330 <b>getID</b>(<i></i>)
331
256 <p> 332 <p>
257 Public method to get the ID of the entry. 333 Public method to get the ID of the entry.
258 </p><dl> 334 </p>
335 <dl>
259 <dt>Returns:</dt> 336 <dt>Returns:</dt>
260 <dd> 337 <dd>
261 ID of the entry (integer) 338 ID of the entry (integer)
262 </dd> 339 </dd>
263 </dl><a NAME="TimeTrackEntry.getStartDateTime" ID="TimeTrackEntry.getStartDateTime"></a> 340 </dl>
341 <a NAME="TimeTrackEntry.getStartDateTime" ID="TimeTrackEntry.getStartDateTime"></a>
264 <h4>TimeTrackEntry.getStartDateTime</h4> 342 <h4>TimeTrackEntry.getStartDateTime</h4>
265 <b>getStartDateTime</b>(<i></i>) 343 <b>getStartDateTime</b>(<i></i>)
344
266 <p> 345 <p>
267 Public method to get the start date and time. 346 Public method to get the start date and time.
268 </p><dl> 347 </p>
348 <dl>
269 <dt>Returns:</dt> 349 <dt>Returns:</dt>
270 <dd> 350 <dd>
271 start date and time (QDateTime) 351 start date and time (QDateTime)
272 </dd> 352 </dd>
273 </dl><a NAME="TimeTrackEntry.getTask" ID="TimeTrackEntry.getTask"></a> 353 </dl>
354 <a NAME="TimeTrackEntry.getTask" ID="TimeTrackEntry.getTask"></a>
274 <h4>TimeTrackEntry.getTask</h4> 355 <h4>TimeTrackEntry.getTask</h4>
275 <b>getTask</b>(<i></i>) 356 <b>getTask</b>(<i></i>)
357
276 <p> 358 <p>
277 Public method to get the task description. 359 Public method to get the task description.
278 </p><dl> 360 </p>
361 <dl>
279 <dt>Returns:</dt> 362 <dt>Returns:</dt>
280 <dd> 363 <dd>
281 task description (string) 364 task description (string)
282 </dd> 365 </dd>
283 </dl><a NAME="TimeTrackEntry.isPaused" ID="TimeTrackEntry.isPaused"></a> 366 </dl>
367 <a NAME="TimeTrackEntry.isPaused" ID="TimeTrackEntry.isPaused"></a>
284 <h4>TimeTrackEntry.isPaused</h4> 368 <h4>TimeTrackEntry.isPaused</h4>
285 <b>isPaused</b>(<i></i>) 369 <b>isPaused</b>(<i></i>)
370
286 <p> 371 <p>
287 Public method to check for a paused state. 372 Public method to check for a paused state.
288 </p><dl> 373 </p>
374 <dl>
289 <dt>Returns:</dt> 375 <dt>Returns:</dt>
290 <dd> 376 <dd>
291 flag indicating a paused state (boolean) 377 flag indicating a paused state (boolean)
292 </dd> 378 </dd>
293 </dl><a NAME="TimeTrackEntry.isValid" ID="TimeTrackEntry.isValid"></a> 379 </dl>
380 <a NAME="TimeTrackEntry.isValid" ID="TimeTrackEntry.isValid"></a>
294 <h4>TimeTrackEntry.isValid</h4> 381 <h4>TimeTrackEntry.isValid</h4>
295 <b>isValid</b>(<i></i>) 382 <b>isValid</b>(<i></i>)
383
296 <p> 384 <p>
297 Public method to check the validity of the entry. 385 Public method to check the validity of the entry.
298 </p><dl> 386 </p>
387 <dl>
299 <dt>Returns:</dt> 388 <dt>Returns:</dt>
300 <dd> 389 <dd>
301 validity of the entry (boolean) 390 validity of the entry (boolean)
302 </dd> 391 </dd>
303 </dl><a NAME="TimeTrackEntry.pause" ID="TimeTrackEntry.pause"></a> 392 </dl>
393 <a NAME="TimeTrackEntry.pause" ID="TimeTrackEntry.pause"></a>
304 <h4>TimeTrackEntry.pause</h4> 394 <h4>TimeTrackEntry.pause</h4>
305 <b>pause</b>(<i></i>) 395 <b>pause</b>(<i></i>)
396
306 <p> 397 <p>
307 Public method to pause the entry. 398 Public method to pause the entry.
308 </p><a NAME="TimeTrackEntry.setComment" ID="TimeTrackEntry.setComment"></a> 399 </p>
400 <a NAME="TimeTrackEntry.setComment" ID="TimeTrackEntry.setComment"></a>
309 <h4>TimeTrackEntry.setComment</h4> 401 <h4>TimeTrackEntry.setComment</h4>
310 <b>setComment</b>(<i>comment</i>) 402 <b>setComment</b>(<i>comment</i>)
403
311 <p> 404 <p>
312 Public method to set a comment. 405 Public method to set a comment.
313 </p><dl> 406 </p>
407 <dl>
408
314 <dt><i>comment</i></dt> 409 <dt><i>comment</i></dt>
315 <dd> 410 <dd>
316 comment to set (string) 411 comment to set (string)
317 </dd> 412 </dd>
318 </dl><a NAME="TimeTrackEntry.setDuration" ID="TimeTrackEntry.setDuration"></a> 413 </dl>
414 <a NAME="TimeTrackEntry.setDuration" ID="TimeTrackEntry.setDuration"></a>
319 <h4>TimeTrackEntry.setDuration</h4> 415 <h4>TimeTrackEntry.setDuration</h4>
320 <b>setDuration</b>(<i>duration</i>) 416 <b>setDuration</b>(<i>duration</i>)
417
321 <p> 418 <p>
322 Public method to set the duration. 419 Public method to set the duration.
323 </p><dl> 420 </p>
421 <dl>
422
324 <dt><i>duration</i></dt> 423 <dt><i>duration</i></dt>
325 <dd> 424 <dd>
326 duration in minutes (integer) 425 duration in minutes (integer)
327 </dd> 426 </dd>
328 </dl><a NAME="TimeTrackEntry.setID" ID="TimeTrackEntry.setID"></a> 427 </dl>
428 <a NAME="TimeTrackEntry.setID" ID="TimeTrackEntry.setID"></a>
329 <h4>TimeTrackEntry.setID</h4> 429 <h4>TimeTrackEntry.setID</h4>
330 <b>setID</b>(<i>eid</i>) 430 <b>setID</b>(<i>eid</i>)
431
331 <p> 432 <p>
332 Public method to assign an ID to the entry. 433 Public method to assign an ID to the entry.
333 </p><dl> 434 </p>
435 <dl>
436
334 <dt><i>eid</i></dt> 437 <dt><i>eid</i></dt>
335 <dd> 438 <dd>
336 ID for the entry (integer) 439 ID for the entry (integer)
337 </dd> 440 </dd>
338 </dl><a NAME="TimeTrackEntry.setStartDateTime" ID="TimeTrackEntry.setStartDateTime"></a> 441 </dl>
442 <a NAME="TimeTrackEntry.setStartDateTime" ID="TimeTrackEntry.setStartDateTime"></a>
339 <h4>TimeTrackEntry.setStartDateTime</h4> 443 <h4>TimeTrackEntry.setStartDateTime</h4>
340 <b>setStartDateTime</b>(<i>startDateTime</i>) 444 <b>setStartDateTime</b>(<i>startDateTime</i>)
445
341 <p> 446 <p>
342 Public method to set the start date and time. 447 Public method to set the start date and time.
343 </p><dl> 448 </p>
449 <dl>
450
344 <dt><i>startDateTime</i></dt> 451 <dt><i>startDateTime</i></dt>
345 <dd> 452 <dd>
346 start date and time (QDateTime) 453 start date and time (QDateTime)
347 </dd> 454 </dd>
348 </dl><a NAME="TimeTrackEntry.setTask" ID="TimeTrackEntry.setTask"></a> 455 </dl>
456 <a NAME="TimeTrackEntry.setTask" ID="TimeTrackEntry.setTask"></a>
349 <h4>TimeTrackEntry.setTask</h4> 457 <h4>TimeTrackEntry.setTask</h4>
350 <b>setTask</b>(<i>description</i>) 458 <b>setTask</b>(<i>description</i>)
459
351 <p> 460 <p>
352 Public method to set the task description. 461 Public method to set the task description.
353 </p><dl> 462 </p>
463 <dl>
464
354 <dt><i>description</i></dt> 465 <dt><i>description</i></dt>
355 <dd> 466 <dd>
356 task description (string) 467 task description (string)
357 </dd> 468 </dd>
358 </dl><a NAME="TimeTrackEntry.start" ID="TimeTrackEntry.start"></a> 469 </dl>
470 <a NAME="TimeTrackEntry.start" ID="TimeTrackEntry.start"></a>
359 <h4>TimeTrackEntry.start</h4> 471 <h4>TimeTrackEntry.start</h4>
360 <b>start</b>(<i></i>) 472 <b>start</b>(<i></i>)
473
361 <p> 474 <p>
362 Public method to set the start time of this entry. 475 Public method to set the start time of this entry.
363 </p><a NAME="TimeTrackEntry.stop" ID="TimeTrackEntry.stop"></a> 476 </p>
477 <a NAME="TimeTrackEntry.stop" ID="TimeTrackEntry.stop"></a>
364 <h4>TimeTrackEntry.stop</h4> 478 <h4>TimeTrackEntry.stop</h4>
365 <b>stop</b>(<i></i>) 479 <b>stop</b>(<i></i>)
480
366 <p> 481 <p>
367 Public method to stop this entry. 482 Public method to stop this entry.
368 </p><a NAME="TimeTrackEntry.toString" ID="TimeTrackEntry.toString"></a> 483 </p>
484 <a NAME="TimeTrackEntry.toString" ID="TimeTrackEntry.toString"></a>
369 <h4>TimeTrackEntry.toString</h4> 485 <h4>TimeTrackEntry.toString</h4>
370 <b>toString</b>(<i></i>) 486 <b>toString</b>(<i></i>)
487
371 <p> 488 <p>
372 Public method to get a string representation of the entry. 489 Public method to get a string representation of the entry.
373 </p><dl> 490 </p>
491 <dl>
374 <dt>Returns:</dt> 492 <dt>Returns:</dt>
375 <dd> 493 <dd>
376 string representation of the entry (string) 494 string representation of the entry (string)
377 </dd> 495 </dd>
378 </dl> 496 </dl>

eric ide

mercurial