CScheduledTask Class Reference
class CScheduledTask : public CBase
|
The representation of a scheduled task that is passed to registered programs.
When tasks are due, the Task Scheduler encapsulates task information within
CScheduledTask
objects, and externalises them to a direct file store.
The root stream of the direct file store contains a 32 bit value, followed by the external representations of one or more
CScheduledTask
objects. The 32 bit value is interpreted as a TInt32 and contains the number of
CScheduledTask
objects that follow in the stream.
The registered program can create successive
CScheduledTask
objects from this stream using the static
NewLC()
function.
TScheduledTaskFile
RStoreReadStream
Constructor & Destructor Documentation
CScheduledTask(TTaskInfo &, HBufC *, TScheduleType, const TSecurityInfo &)
CScheduledTask()
CScheduledTask
|
(
|
)
|
[private]
|
Member Functions Documentation
Due()
Is this task due? only used by server
ExternalizeL(RWriteStream &)
Info()
Gets the detailed information for the task.
InternalizeL(RReadStream &)
NewLC(RReadStream &)
Creates the object from the specified stream.
Parameters
RReadStream
& aStream
|
The stream containing the external representation of this object.
|
Offset()
queue offset only used by server
OnDue(const TTsTime &)
void
|
OnDue
|
(
|
const
TTsTime
&
|
aValidUntil
|
)
|
|
Persists()
Return flag that determines if task is transisent or persistent. only used by server
Remove()
Remove from queue only used by server
ScheduleId()
TInt
|
ScheduleId
|
(
|
)
|
const
|
Gets the schedulesID only used by server
SecurityInfo()
Gets the security information for this scheduled task. This information is the securityID, VenforID and capabilities of the client who created the schedule responsible for invoking this task.
SetDue(TBool)
void
|
SetDue
|
(
|
TBool
|
aDue
|
)
|
|
Set due flag. only used by server
SetPersists()
Mark task as belonging to a persistent schedule. only used by server
SetScheduleId(TInt)
void
|
SetScheduleId
|
(
|
TInt
|
aScheduleId
|
)
|
|
Sets the schedules ID only used by server
ValidUntil()
IMPORT_C const
TTsTime
&
|
ValidUntil
|
(
|
)
|
const
|
Gets the time when the task stops being valid.
If the executing program determines that this time is in the past, then it should not run the task.
Member Data Documentation
TBool
iPersists
TBool
|
iPersists
|
[private]
|
TInt
iScheduleId
TInt
|
iScheduleId
|
[private]
|
TScheduleType
iScheduleType
TSecurityInfo
iSecurityInfo
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.