| 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.
| Public Member Functions | |
|---|---|
| CScheduledTask(TTaskInfo &, HBufC *, TScheduleType, const TSecurityInfo &) | |
| ~CScheduledTask() | |
| IMPORT_C const HBufC & | Data() |
| void | DecRepeat() |
| TBool | Due() |
| void | ExternalizeL(RWriteStream &) |
| IMPORT_C const TTaskInfo & | Info() |
| IMPORT_C CScheduledTask * | NewLC(RReadStream &) |
| TInt | Offset() |
| void | OnDue(const TTsTime &) |
| TBool | Persists() |
| void | Remove() |
| TInt | ScheduleId() |
| IMPORT_C TScheduleType | ScheduleType() |
| IMPORT_C const TSecurityInfo & | SecurityInfo() |
| void | SetDue(TBool) |
| void | SetPersists() |
| void | SetScheduleId(TInt) |
| IMPORT_C const TTsTime & | ValidUntil() |
| Private Member Functions | |
|---|---|
| CScheduledTask() | |
| void | InternalizeL(RReadStream &) |
| Private Attributes | |
|---|---|
| HBufC * | iData |
| TBool | iDue |
| TTaskInfo | iInfo |
| TPriQueLink | iPLink |
| TBool | iPersists |
| TInt | iScheduleId |
| TScheduleType | iScheduleType |
| TSecurityInfo | iSecurityInfo |
| TTsTime | iValidUntil |
| CScheduledTask | ( | TTaskInfo & | aInfo, |
| HBufC * | aData, | ||
| TScheduleType | aScheduleType, | ||
| const TSecurityInfo & | aSecurityInfo | ||
| ) | |||
| TTaskInfo & aInfo | |
| HBufC * aData | |
| TScheduleType aScheduleType | |
| const TSecurityInfo & aSecurityInfo |
| void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
| RWriteStream & aStream |
| void | InternalizeL | ( | RReadStream & | aStream | ) | [private] |
| RReadStream & aStream |
| IMPORT_C CScheduledTask * | NewLC | ( | RReadStream & | aStream | ) | [static] |
| RReadStream & aStream |