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

Inherits from

Constructor & Destructor Documentation

CScheduledTask(TTaskInfo &, HBufC *, TScheduleType, const TSecurityInfo &)

CScheduledTask(TTaskInfo &aInfo,
HBufC *aData,
TScheduleTypeaScheduleType,
const TSecurityInfo &aSecurityInfo
)

Parameters

TTaskInfo & aInfo
HBufC * aData
TScheduleType aScheduleType
const TSecurityInfo & aSecurityInfo

CScheduledTask()

CScheduledTask()[private]

~CScheduledTask()

~CScheduledTask()

Member Functions Documentation

Data()

IMPORT_C const HBufC &Data()const

DecRepeat()

voidDecRepeat()

Due()

TBool Due()const

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

Info()

IMPORT_C const TTaskInfo &Info()const

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)[private]

Parameters

RReadStream & aStream

NewLC(RReadStream &)

IMPORT_C CScheduledTask *NewLC(RReadStream &aStream)[static]

Parameters

RReadStream & aStream

Offset()

TInt Offset()[static]

OnDue(const TTsTime &)

voidOnDue(const TTsTime &aValidUntil)

Parameters

const TTsTime & aValidUntil

Persists()

TBool Persists()const

Remove()

voidRemove()

ScheduleId()

TInt ScheduleId()const

ScheduleType()

IMPORT_C TScheduleTypeScheduleType()const

SecurityInfo()

IMPORT_C const TSecurityInfo &SecurityInfo()const

SetDue(TBool)

voidSetDue(TBoolaDue)

Parameters

TBool aDue

SetPersists()

voidSetPersists()

SetScheduleId(TInt)

voidSetScheduleId(TIntaScheduleId)

Parameters

TInt aScheduleId

ValidUntil()

IMPORT_C const TTsTime &ValidUntil()const

Member Data Documentation

HBufC * iData

HBufC *iData[private]

TBool iDue

TBool iDue[private]

TTaskInfo iInfo

TTaskInfo iInfo[private]

TPriQueLink iPLink

TPriQueLink iPLink[private]

TBool iPersists

TBool iPersists[private]

TInt iScheduleId

TInt iScheduleId[private]

TScheduleType iScheduleType

TScheduleType iScheduleType[private]

TSecurityInfo iSecurityInfo

TSecurityInfo iSecurityInfo[private]

TTsTime iValidUntil

TTsTime iValidUntil[private]