Location:
SCHTASK.H
Link against: schsvr.lib
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.
CBase
- Base class for all classes to be instantiated on the heap
CScheduledTask
- The representation of a scheduled task that is passed to registered programs
Defined in CScheduledTask
:
Data()
, Info()
, NewLC()
, ScheduleType()
, SecurityInfo()
, ValidUntil()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
static IMPORT_C CScheduledTask *NewLC(RReadStream &aStream);
Creates the object from the specified stream.
|
|
IMPORT_C const TTaskInfo &Info() const;
Gets the detailed information for the task.
|
IMPORT_C const HBufC &Data() const;
Gets a reference to the data to be passed to the program on execution.
|
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.
|
IMPORT_C TScheduleType ScheduleType() const;
Gets the schedules type.
|
IMPORT_C const TSecurityInfo &SecurityInfo() const;
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.
|