sl@0
|
1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
// System includes
|
sl@0
|
17 |
#include <logwraplimits.h>
|
sl@0
|
18 |
#include <logwrap.h>
|
sl@0
|
19 |
#include <schtask.h>
|
sl@0
|
20 |
|
sl@0
|
21 |
|
sl@0
|
22 |
// User includes
|
sl@0
|
23 |
#include "SCHCLI.H"
|
sl@0
|
24 |
#include "SchLogger.h"
|
sl@0
|
25 |
#include "SCHEXEC.H"
|
sl@0
|
26 |
#include "SCHLOG.h"
|
sl@0
|
27 |
|
sl@0
|
28 |
|
sl@0
|
29 |
// Constants
|
sl@0
|
30 |
#define KEllipsis 0x2026
|
sl@0
|
31 |
const TInt KTaskArrayGranularity = 1;
|
sl@0
|
32 |
_LIT(KTaskNameSeparator, ", ");
|
sl@0
|
33 |
|
sl@0
|
34 |
|
sl@0
|
35 |
|
sl@0
|
36 |
//
|
sl@0
|
37 |
// CClientProxy
|
sl@0
|
38 |
//
|
sl@0
|
39 |
CClientProxy::CClientProxy(RFs& aFsSession, CSchLogManager& aLogManager)
|
sl@0
|
40 |
: iFsSession(aFsSession),
|
sl@0
|
41 |
iTasks(CScheduledTask::Offset()),
|
sl@0
|
42 |
iSchLogManager(aLogManager)
|
sl@0
|
43 |
{
|
sl@0
|
44 |
}
|
sl@0
|
45 |
|
sl@0
|
46 |
CClientProxy::CClientProxy(RFs& aFsSession, TInt aPriority, CSchLogManager& aLogManager)
|
sl@0
|
47 |
: iFsSession(aFsSession),
|
sl@0
|
48 |
iTasks(CScheduledTask::Offset()),
|
sl@0
|
49 |
iSchLogManager(aLogManager)
|
sl@0
|
50 |
{
|
sl@0
|
51 |
iPriLink.iPriority = aPriority;
|
sl@0
|
52 |
}
|
sl@0
|
53 |
|
sl@0
|
54 |
CClientProxy::~CClientProxy()
|
sl@0
|
55 |
{
|
sl@0
|
56 |
LOGSTRING("CClientProxy::~CClientProxy - start");
|
sl@0
|
57 |
|
sl@0
|
58 |
TDblQueIter<CScheduledTask> taskIter(iTasks);
|
sl@0
|
59 |
taskIter.SetToFirst();
|
sl@0
|
60 |
CScheduledTask* task;
|
sl@0
|
61 |
while ((task = taskIter++) != NULL)
|
sl@0
|
62 |
{
|
sl@0
|
63 |
RemoveTask(task);
|
sl@0
|
64 |
}
|
sl@0
|
65 |
delete iFileName;
|
sl@0
|
66 |
LOGSTRING("CClientProxy::~CClientProxy - end");
|
sl@0
|
67 |
}
|
sl@0
|
68 |
|
sl@0
|
69 |
void CClientProxy::ConstructL(const TDesC& aFileName)
|
sl@0
|
70 |
{
|
sl@0
|
71 |
iFileName = aFileName.AllocL();
|
sl@0
|
72 |
}
|
sl@0
|
73 |
|
sl@0
|
74 |
CClientProxy* CClientProxy::NewL(RFs& aFsSession,
|
sl@0
|
75 |
const TDesC& aFileName,
|
sl@0
|
76 |
TInt aPriority,
|
sl@0
|
77 |
CSchLogManager& aLogManager)
|
sl@0
|
78 |
{
|
sl@0
|
79 |
CClientProxy* self = new(ELeave) CClientProxy(aFsSession, aPriority,aLogManager);
|
sl@0
|
80 |
CleanupStack::PushL(self);
|
sl@0
|
81 |
self->ConstructL(aFileName);
|
sl@0
|
82 |
CleanupStack::Pop();
|
sl@0
|
83 |
return self;
|
sl@0
|
84 |
}
|
sl@0
|
85 |
|
sl@0
|
86 |
CClientProxy* CClientProxy::NewL(RFs& aFsSession,
|
sl@0
|
87 |
RReadStream& aStream,
|
sl@0
|
88 |
CSchLogManager& aLogManager)
|
sl@0
|
89 |
{
|
sl@0
|
90 |
CClientProxy* self = new(ELeave) CClientProxy(aFsSession,aLogManager);
|
sl@0
|
91 |
CleanupStack::PushL(self);
|
sl@0
|
92 |
aStream >> *self;
|
sl@0
|
93 |
CleanupStack::Pop();
|
sl@0
|
94 |
return self;
|
sl@0
|
95 |
}
|
sl@0
|
96 |
|
sl@0
|
97 |
TBool CClientProxy::IsEqual(const TDesC& aFilename, TInt aPriority) const
|
sl@0
|
98 |
{
|
sl@0
|
99 |
// Equality here means: same DLL filename, DLL ordinal & priority
|
sl@0
|
100 |
return ((*iFileName == aFilename) && (iPriLink.iPriority == aPriority));
|
sl@0
|
101 |
}
|
sl@0
|
102 |
|
sl@0
|
103 |
void CClientProxy::AddTask(CScheduledTask& aTask)
|
sl@0
|
104 |
{
|
sl@0
|
105 |
LOGSTRING("CClientProxy::AddTask - start");
|
sl@0
|
106 |
iTasks.Add(aTask);
|
sl@0
|
107 |
iUsers++;
|
sl@0
|
108 |
LOGSTRING("CClientProxy::AddTask - end");
|
sl@0
|
109 |
}
|
sl@0
|
110 |
|
sl@0
|
111 |
void CClientProxy::RemoveTask(CScheduledTask* aTask)
|
sl@0
|
112 |
{
|
sl@0
|
113 |
LOGSTRING("CClientProxy::RemoveTask - start");
|
sl@0
|
114 |
iUsers--;
|
sl@0
|
115 |
aTask->Remove();
|
sl@0
|
116 |
delete aTask;
|
sl@0
|
117 |
LOGSTRING("CClientProxy::RemoveTask - end");
|
sl@0
|
118 |
}
|
sl@0
|
119 |
|
sl@0
|
120 |
//
|
sl@0
|
121 |
static void BuildTaskErrorMessage(const CArrayPtr<CScheduledTask>& aTasks, TDes& aErrorMessage)
|
sl@0
|
122 |
//
|
sl@0
|
123 |
// Establish the names of all the tasks that potentially might fail
|
sl@0
|
124 |
// when executing the task. This is done *before* actually executing the
|
sl@0
|
125 |
// tasks as its not possible to discern (at failure time) which tasks
|
sl@0
|
126 |
// were actually executing (because we don't know at what time the task
|
sl@0
|
127 |
// executor was spawned).
|
sl@0
|
128 |
//
|
sl@0
|
129 |
{
|
sl@0
|
130 |
const TInt count = aTasks.Count();
|
sl@0
|
131 |
for(TInt i=0; i<count; i++)
|
sl@0
|
132 |
{
|
sl@0
|
133 |
const TDesC& taskName = aTasks.At(i)->Info().iName;
|
sl@0
|
134 |
if (aErrorMessage.Length() + taskName.Length() > KLogMaxSubjectLength - KTaskNameSeparator().Length())
|
sl@0
|
135 |
{
|
sl@0
|
136 |
// The task name that still needs adding to the subject line (of the
|
sl@0
|
137 |
// log entry) is too big to fit within KLogCallEventTypeUid characters.
|
sl@0
|
138 |
// Trim the task name so that it will fit, and append the ellipsis
|
sl@0
|
139 |
// character to indicate that more tasks were present but unable to be
|
sl@0
|
140 |
// shown.
|
sl@0
|
141 |
TInt lengthOfTaskNameToAccept = (KLogMaxSubjectLength - aErrorMessage.Length()) - KTaskNameSeparator().Length();
|
sl@0
|
142 |
if (lengthOfTaskNameToAccept <= 0)
|
sl@0
|
143 |
break;
|
sl@0
|
144 |
aErrorMessage += taskName.Left(lengthOfTaskNameToAccept);
|
sl@0
|
145 |
aErrorMessage.Append(KEllipsis);
|
sl@0
|
146 |
|
sl@0
|
147 |
// Exit the 'for' loop as there isn't any more room to hold subsequent
|
sl@0
|
148 |
// tasks that potentially failed...
|
sl@0
|
149 |
break;
|
sl@0
|
150 |
}
|
sl@0
|
151 |
else
|
sl@0
|
152 |
{
|
sl@0
|
153 |
aErrorMessage += taskName;
|
sl@0
|
154 |
}
|
sl@0
|
155 |
|
sl@0
|
156 |
if (i<count-1) // not the last taskName
|
sl@0
|
157 |
{
|
sl@0
|
158 |
// Append a comma
|
sl@0
|
159 |
aErrorMessage += KTaskNameSeparator;
|
sl@0
|
160 |
}
|
sl@0
|
161 |
}
|
sl@0
|
162 |
}
|
sl@0
|
163 |
|
sl@0
|
164 |
void CClientProxy::ExecuteTasks()
|
sl@0
|
165 |
{
|
sl@0
|
166 |
// generate an array of due tasks
|
sl@0
|
167 |
CArrayPtr<CScheduledTask>* tasks = NULL;
|
sl@0
|
168 |
TRAPD(err, tasks = DueTasksL());
|
sl@0
|
169 |
if(err)
|
sl@0
|
170 |
{
|
sl@0
|
171 |
iSchLogManager.LogError(err);
|
sl@0
|
172 |
return;
|
sl@0
|
173 |
}
|
sl@0
|
174 |
|
sl@0
|
175 |
// Create the task error message, just in case an error occurs
|
sl@0
|
176 |
TBuf<KLogMaxSubjectLength> errorMessage;
|
sl@0
|
177 |
BuildTaskErrorMessage(*tasks, errorMessage);
|
sl@0
|
178 |
|
sl@0
|
179 |
TInt error =DoExecuteTasks(*tasks, errorMessage);
|
sl@0
|
180 |
if(error)
|
sl@0
|
181 |
iSchLogManager.LogError(errorMessage,error);
|
sl@0
|
182 |
delete tasks;
|
sl@0
|
183 |
}
|
sl@0
|
184 |
|
sl@0
|
185 |
TInt CClientProxy::DoExecuteTasks(const CArrayPtr<CScheduledTask>& aTasks,
|
sl@0
|
186 |
const TDesC& aErrorMessage)
|
sl@0
|
187 |
{
|
sl@0
|
188 |
// Generate a unique task name
|
sl@0
|
189 |
TTime timenow;
|
sl@0
|
190 |
timenow.UniversalTime();
|
sl@0
|
191 |
TBuf<24> filename; // 20 is the longest decimal char length of a 64-bit number + 4 for extension
|
sl@0
|
192 |
filename.Format(_L("%Ld.tmp"),timenow.Int64());
|
sl@0
|
193 |
|
sl@0
|
194 |
// Save & perform execution
|
sl@0
|
195 |
TRAPD(error, DoExecuteTasksL(aTasks, filename, aErrorMessage));
|
sl@0
|
196 |
|
sl@0
|
197 |
if (error != KErrNone)
|
sl@0
|
198 |
{
|
sl@0
|
199 |
LOGSTRING2("CClientProxy::ExecuteTasksL - attempted to execute tasks, error was %d", error);
|
sl@0
|
200 |
// Cleanup the file that was created if the execution fails in any way. Note
|
sl@0
|
201 |
// that it might not have been created
|
sl@0
|
202 |
|
sl@0
|
203 |
// If a debug build - record error
|
sl@0
|
204 |
TInt fileDeleteErr=iFsSession.Delete(filename);
|
sl@0
|
205 |
if (fileDeleteErr != KErrNone)
|
sl@0
|
206 |
{
|
sl@0
|
207 |
LOGSTRING2("CClientProxy::DoExecuteTasks - Failed to delete file. Error = %d", fileDeleteErr);
|
sl@0
|
208 |
}
|
sl@0
|
209 |
}
|
sl@0
|
210 |
return error;
|
sl@0
|
211 |
}
|
sl@0
|
212 |
|
sl@0
|
213 |
void CClientProxy::DoExecuteTasksL(const CArrayPtr<CScheduledTask>& aTasks,
|
sl@0
|
214 |
const TDesC& aFileName,
|
sl@0
|
215 |
const TDesC& aErrorMessage)
|
sl@0
|
216 |
{
|
sl@0
|
217 |
// Save the tasks to disk
|
sl@0
|
218 |
SaveTasksToFileL(aTasks, aFileName);
|
sl@0
|
219 |
|
sl@0
|
220 |
// Spawn the task executor active object (deletes itself upon completion)
|
sl@0
|
221 |
CTaskExecutor* executor = CTaskExecutor::NewLC(aErrorMessage,aFileName,*iFileName,iSchLogManager);
|
sl@0
|
222 |
executor->ExecuteL();
|
sl@0
|
223 |
CleanupStack::Pop(executor);
|
sl@0
|
224 |
// Don't delete executor here as it does it itself once
|
sl@0
|
225 |
// the task has finished (delete this in its RunL() )
|
sl@0
|
226 |
}
|
sl@0
|
227 |
|
sl@0
|
228 |
|
sl@0
|
229 |
CArrayPtr<CScheduledTask>* CClientProxy::DueTasksL()
|
sl@0
|
230 |
//
|
sl@0
|
231 |
// Returns a copy of any due tasks
|
sl@0
|
232 |
//
|
sl@0
|
233 |
{
|
sl@0
|
234 |
CArrayPtrFlat<CScheduledTask>* tasks = new(ELeave)CArrayPtrFlat<CScheduledTask> (KTaskArrayGranularity);
|
sl@0
|
235 |
CleanupStack::PushL(tasks);
|
sl@0
|
236 |
TDblQueIter<CScheduledTask> taskIter(iTasks);
|
sl@0
|
237 |
taskIter.SetToFirst();
|
sl@0
|
238 |
CScheduledTask* task;
|
sl@0
|
239 |
while ((task=taskIter++)!=NULL)
|
sl@0
|
240 |
{
|
sl@0
|
241 |
if (task->Due())
|
sl@0
|
242 |
{
|
sl@0
|
243 |
tasks->AppendL(task);
|
sl@0
|
244 |
}
|
sl@0
|
245 |
}
|
sl@0
|
246 |
CleanupStack::Pop(tasks);
|
sl@0
|
247 |
return tasks;
|
sl@0
|
248 |
}
|
sl@0
|
249 |
|
sl@0
|
250 |
|
sl@0
|
251 |
CFileStore* CClientProxy::CreateStoreL(const TDesC& aName,TUint aFileMode)
|
sl@0
|
252 |
//
|
sl@0
|
253 |
// To make the code clearer - called within a trap frame that shouldn't leave anything
|
sl@0
|
254 |
// on cleanup stack.
|
sl@0
|
255 |
//
|
sl@0
|
256 |
{
|
sl@0
|
257 |
CFileStore* store = CDirectFileStore::CreateLC(iFsSession, aName, aFileMode);
|
sl@0
|
258 |
CleanupStack::Pop(store);
|
sl@0
|
259 |
return store;
|
sl@0
|
260 |
}
|
sl@0
|
261 |
|
sl@0
|
262 |
void CClientProxy::SaveTasksToFileL(const CArrayPtr<CScheduledTask>& aTasks, const TDesC& aFileName)
|
sl@0
|
263 |
{
|
sl@0
|
264 |
LOGSTRING("CClientProxy::SaveTasksToFileL - start");
|
sl@0
|
265 |
|
sl@0
|
266 |
// Create the file store
|
sl@0
|
267 |
LOGSTRING("CClientProxy::SaveTasksToFileL - creating store");
|
sl@0
|
268 |
CFileStore* store = CreateStoreL(aFileName, EFileWrite);
|
sl@0
|
269 |
CleanupStack::PushL(store);
|
sl@0
|
270 |
|
sl@0
|
271 |
// Save the actual tasks to the store
|
sl@0
|
272 |
LOGSTRING("CClientProxy::SaveTasksToFileL - saving tasks");
|
sl@0
|
273 |
SaveTasksL(*store, aTasks);
|
sl@0
|
274 |
CleanupStack::PopAndDestroy(store);
|
sl@0
|
275 |
|
sl@0
|
276 |
LOGSTRING("CClientProxy::SaveTasksToFileL - end");
|
sl@0
|
277 |
}
|
sl@0
|
278 |
|
sl@0
|
279 |
void CClientProxy::SaveTasksL(CFileStore& aStore, const CArrayPtr<CScheduledTask>& aTasks)
|
sl@0
|
280 |
{
|
sl@0
|
281 |
LOGSTRING("CClientProxy::SaveTasksL - start");
|
sl@0
|
282 |
aStore.SetTypeL(KDirectFileStoreLayoutUid);
|
sl@0
|
283 |
|
sl@0
|
284 |
// Save the tasks
|
sl@0
|
285 |
RStoreWriteStream outstream;
|
sl@0
|
286 |
TStreamId id = outstream.CreateLC(aStore);
|
sl@0
|
287 |
const TInt count = aTasks.Count();
|
sl@0
|
288 |
LOGSTRING2("CClientProxy::SaveTasksL - saving %d tasks", count);
|
sl@0
|
289 |
outstream.WriteInt32L(count);
|
sl@0
|
290 |
for (TInt i=0;i<count;i++)
|
sl@0
|
291 |
{
|
sl@0
|
292 |
CScheduledTask* task = aTasks.At(i);
|
sl@0
|
293 |
task->ExternalizeL(outstream);
|
sl@0
|
294 |
}
|
sl@0
|
295 |
outstream.CommitL();
|
sl@0
|
296 |
CleanupStack::PopAndDestroy(); // outstream
|
sl@0
|
297 |
|
sl@0
|
298 |
aStore.SetRootL(id);
|
sl@0
|
299 |
aStore.CommitL();
|
sl@0
|
300 |
LOGSTRING("CClientProxy::SaveTasksL - end");
|
sl@0
|
301 |
}
|
sl@0
|
302 |
|
sl@0
|
303 |
void CClientProxy::RemoveDueTasks()
|
sl@0
|
304 |
{
|
sl@0
|
305 |
LOGSTRING("CClientProxy::RemoveDueTasks - start");
|
sl@0
|
306 |
|
sl@0
|
307 |
TDblQueIter<CScheduledTask> taskIter(iTasks);
|
sl@0
|
308 |
taskIter.SetToFirst();
|
sl@0
|
309 |
CScheduledTask* task;
|
sl@0
|
310 |
//
|
sl@0
|
311 |
while ((task=taskIter++)!=NULL)
|
sl@0
|
312 |
{
|
sl@0
|
313 |
if (task->Due())
|
sl@0
|
314 |
{
|
sl@0
|
315 |
LOGSTRING3("CClientProxy::RemoveDueTasks - found due task %S, %d", &task->Info().iName, task->Info().iTaskId);
|
sl@0
|
316 |
|
sl@0
|
317 |
if (!task->Info().iRepeat)
|
sl@0
|
318 |
{
|
sl@0
|
319 |
LOGSTRING("CClientProxy::RemoveDueTasks - task has no repeats left - it's being removed");
|
sl@0
|
320 |
RemoveTask(task);
|
sl@0
|
321 |
}
|
sl@0
|
322 |
else
|
sl@0
|
323 |
{
|
sl@0
|
324 |
LOGSTRING("CClientProxy::RemoveDueTasks - task still has some repeats, setting as 'no longer due'");
|
sl@0
|
325 |
task->SetDue(EFalse);
|
sl@0
|
326 |
}
|
sl@0
|
327 |
}
|
sl@0
|
328 |
}
|
sl@0
|
329 |
iReadyToExecute = EFalse;
|
sl@0
|
330 |
LOGSTRING("CClientProxy::RemoveDueTasks - end");
|
sl@0
|
331 |
}
|
sl@0
|
332 |
|
sl@0
|
333 |
void CClientProxy::TransferTasks(CClientProxy& aTargetClient)
|
sl@0
|
334 |
{
|
sl@0
|
335 |
TDblQueIter<CScheduledTask> taskIter(iTasks);
|
sl@0
|
336 |
taskIter.SetToFirst();
|
sl@0
|
337 |
CScheduledTask* task;
|
sl@0
|
338 |
while ((task=taskIter++)!=NULL)
|
sl@0
|
339 |
{
|
sl@0
|
340 |
task->Remove();
|
sl@0
|
341 |
aTargetClient.AddTask(*task);
|
sl@0
|
342 |
}
|
sl@0
|
343 |
}
|
sl@0
|
344 |
|
sl@0
|
345 |
void CClientProxy::InternalizeL(RReadStream& aReadStream)
|
sl@0
|
346 |
{
|
sl@0
|
347 |
LOGSTRING("CClientProxy::InternalizeL - start");
|
sl@0
|
348 |
|
sl@0
|
349 |
HBufC* fileName = HBufC::NewL(aReadStream, KMaxFileName);
|
sl@0
|
350 |
delete iFileName;
|
sl@0
|
351 |
iFileName = fileName;
|
sl@0
|
352 |
//
|
sl@0
|
353 |
iPriLink.iPriority = aReadStream.ReadInt32L();
|
sl@0
|
354 |
|
sl@0
|
355 |
const TInt count = aReadStream.ReadInt32L();
|
sl@0
|
356 |
for(TInt i=0; i<count; i++)
|
sl@0
|
357 |
{
|
sl@0
|
358 |
CScheduledTask* task = CScheduledTask::NewLC(aReadStream);
|
sl@0
|
359 |
AddTask(*task);
|
sl@0
|
360 |
CleanupStack::Pop(task);
|
sl@0
|
361 |
}
|
sl@0
|
362 |
|
sl@0
|
363 |
LOGSTRING("CClientProxy::InternalizeL - end");
|
sl@0
|
364 |
}
|
sl@0
|
365 |
|
sl@0
|
366 |
void CClientProxy::ExternalizeL(RWriteStream& aWriteStream) const
|
sl@0
|
367 |
{
|
sl@0
|
368 |
LOGSTRING("CClientProxy::ExternalizeL - start");
|
sl@0
|
369 |
|
sl@0
|
370 |
aWriteStream << *iFileName;
|
sl@0
|
371 |
aWriteStream.WriteInt32L(iPriLink.iPriority);
|
sl@0
|
372 |
|
sl@0
|
373 |
TDblQueIter<CScheduledTask> taskIter(const_cast<CClientProxy*>(this)->iTasks);
|
sl@0
|
374 |
taskIter.SetToFirst();
|
sl@0
|
375 |
CScheduledTask* task;
|
sl@0
|
376 |
|
sl@0
|
377 |
// Count tasks
|
sl@0
|
378 |
TInt count = 0;
|
sl@0
|
379 |
while ((task=taskIter++)!=NULL)
|
sl@0
|
380 |
{
|
sl@0
|
381 |
if(task->Persists())
|
sl@0
|
382 |
{
|
sl@0
|
383 |
count++;
|
sl@0
|
384 |
}
|
sl@0
|
385 |
}
|
sl@0
|
386 |
|
sl@0
|
387 |
// Store leading count
|
sl@0
|
388 |
aWriteStream.WriteInt32L(count);
|
sl@0
|
389 |
|
sl@0
|
390 |
// Store tasks
|
sl@0
|
391 |
taskIter.SetToFirst();
|
sl@0
|
392 |
while ((task=taskIter++)!=NULL)
|
sl@0
|
393 |
{
|
sl@0
|
394 |
if(task->Persists())
|
sl@0
|
395 |
{
|
sl@0
|
396 |
aWriteStream << *task;
|
sl@0
|
397 |
}
|
sl@0
|
398 |
}
|
sl@0
|
399 |
|
sl@0
|
400 |
LOGSTRING("CClientProxy::ExternalizeL - end");
|
sl@0
|
401 |
}
|
sl@0
|
402 |
|
sl@0
|
403 |
|
sl@0
|
404 |
TDblQueIter<CScheduledTask> CClientProxy::TaskIterator()
|
sl@0
|
405 |
{
|
sl@0
|
406 |
return TDblQueIter<CScheduledTask>(iTasks);
|
sl@0
|
407 |
}
|
sl@0
|
408 |
|
sl@0
|
409 |
|
sl@0
|
410 |
|