CSchedule Class Reference

class CSchedule : public CBase

Inherits from

Public Member Functions
~CSchedule()
voidAddTask(TScheduledTask &)
voidCalculateDueTime(TBool)
voidCheckAccessAllowedL(const RMessagePtr2 &)
TBool ClientInSchedule(const TDesC &)
const RArray< TTaskSchedulerCondition > &Conditions()
voidConditionsL(CArrayFixFlat< TTaskSchedulerCondition > &)
const TTsTime &DefaultRunTimeL()
const TTsTime &DueTime()
TBool Enabled()
voidEntriesL(CArrayFixFlat< TScheduleEntryInfo2 > &)
voidExternalizeL(RWriteStream &)
TInt GenerateTaskId()
voidGetInfo(TScheduleInfo &, TBool)
TBool HasTasks()
TInt Id()
voidInternalizeL(RReadStream &)
TBool IsAccessAllowed(const RMessagePtr2 &)
TBool IsUpdatable()
const TDesC &Name()
CSchedule *NewL(CFileStore &, TStreamId &)
CSchedule *NewLC(TInt, const TDesC &, TBool, const CArrayFixFlat< TScheduleEntryInfo2 > &, const TSecurityInfo &)
CSchedule *NewLC(TInt, const TDesC &, TBool, const CArrayFixFlat< TTaskSchedulerCondition > &, const TTsTime &, const TSecurityInfo &)
voidNotifyTasks()
TInt Offset()
TBool Persists()
voidRemoveConditions()
voidRemoveEntries()
voidRemoveTask(TScheduledTask *)
voidRemoveTasks(TBool)
voidReplaceConditionsL(const CArrayFixFlat< TTaskSchedulerCondition > &)
voidReplaceEntriesL(const CArrayFixFlat< TScheduleEntryInfo2 > &)
const TSecurityInfo &SecurityInfo()
voidSetEnabled(TBool)
TScheduledTask *Task(const TInt)
TSglQue< TScheduledTask > *Tasks()
voidTasksL(CArrayFixFlat< TTaskInfo > &)
TScheduleType Type()
Private Member Functions
CSchedule()
CSchedule(const TSecurityInfo &, TInt, TBool)
voidAddConditionsL(const CArrayFixFlat< TTaskSchedulerCondition > &)
voidAddEntriesL(const CArrayFixFlat< TScheduleEntryInfo2 > &)
voidConstructL(const TDesC &, const CArrayFixFlat< TScheduleEntryInfo2 > &)
voidConstructL(const TDesC &, const CArrayFixFlat< TTaskSchedulerCondition > &, const TTsTime &)
voidRestoreL(CFileStore &, TStreamId &)
TTsTime ValidUntil()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
RArray< TTaskSchedulerCondition >iConditions
TTsTime iDueTime
TBool iEnabled
TSglQue< TScheduleEntry >iEntryList
TInt iId
TSglQueLink iLink
HBufC *iName
TBool iPersists
TSecurityInfo iSecurityInfo
TSglQue< TScheduledTask >iTaskList
TTimeIntervalMinutes iValidityPeriod

Constructor & Destructor Documentation

CSchedule()

CSchedule()[private]

CSchedule(const TSecurityInfo &, TInt, TBool)

CSchedule(const TSecurityInfo &aSecurityInfo,
TIntaHandle,
TBoolaPersists
)[private]

Parameters

const TSecurityInfo & aSecurityInfo
TInt aHandle
TBool aPersists

~CSchedule()

~CSchedule()

Member Functions Documentation

AddConditionsL(const CArrayFixFlat< TTaskSchedulerCondition > &)

voidAddConditionsL(const CArrayFixFlat< TTaskSchedulerCondition > &aConditions)[private]

Parameters

const CArrayFixFlat< TTaskSchedulerCondition > & aConditions

AddEntriesL(const CArrayFixFlat< TScheduleEntryInfo2 > &)

voidAddEntriesL(const CArrayFixFlat< TScheduleEntryInfo2 > &aEntries)[private]

Parameters

const CArrayFixFlat< TScheduleEntryInfo2 > & aEntries

AddTask(TScheduledTask &)

voidAddTask(TScheduledTask &aTask)

Parameters

TScheduledTask & aTask

CalculateDueTime(TBool)

voidCalculateDueTime(TBoolaNotFirstTime = EFalse)

Parameters

TBool aNotFirstTime = EFalse

CheckAccessAllowedL(const RMessagePtr2 &)

voidCheckAccessAllowedL(const RMessagePtr2 &aMessage)const [inline]

Parameters

const RMessagePtr2 & aMessage

ClientInSchedule(const TDesC &)

TBool ClientInSchedule(const TDesC &aClientName)

Parameters

const TDesC & aClientName

Conditions()

const RArray< TTaskSchedulerCondition > &Conditions()const

ConditionsL(CArrayFixFlat< TTaskSchedulerCondition > &)

voidConditionsL(CArrayFixFlat< TTaskSchedulerCondition > &aConditions)

Parameters

CArrayFixFlat< TTaskSchedulerCondition > & aConditions

ConstructL(const TDesC &, const CArrayFixFlat< TScheduleEntryInfo2 > &)

voidConstructL(const TDesC &aName,
const CArrayFixFlat< TScheduleEntryInfo2 > &aEntries
)[private]

Parameters

const TDesC & aName
const CArrayFixFlat< TScheduleEntryInfo2 > & aEntries

ConstructL(const TDesC &, const CArrayFixFlat< TTaskSchedulerCondition > &, const TTsTime &)

voidConstructL(const TDesC &aName,
const CArrayFixFlat< TTaskSchedulerCondition > &aEntries,
const TTsTime &aDefaultRunTime
)[private]

Parameters

const TDesC & aName
const CArrayFixFlat< TTaskSchedulerCondition > & aEntries
const TTsTime & aDefaultRunTime

DefaultRunTimeL()

const TTsTime &DefaultRunTimeL()const

DueTime()

const TTsTime &DueTime()const [inline]

Enabled()

TBool Enabled()const [inline]

EntriesL(CArrayFixFlat< TScheduleEntryInfo2 > &)

voidEntriesL(CArrayFixFlat< TScheduleEntryInfo2 > &aEntries)

Parameters

CArrayFixFlat< TScheduleEntryInfo2 > & aEntries

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aWriteStream)const

Parameters

RWriteStream & aWriteStream

GenerateTaskId()

TInt GenerateTaskId()

GetInfo(TScheduleInfo &, TBool)

voidGetInfo(TScheduleInfo &aInfo,
TBoolaCalculateForConditions
)

Parameters

TScheduleInfo & aInfo
TBool aCalculateForConditions

HasTasks()

TBool HasTasks()const [inline]

Id()

TInt Id()const [inline]

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aReadStream)

Parameters

RReadStream & aReadStream

IsAccessAllowed(const RMessagePtr2 &)

TBool IsAccessAllowed(const RMessagePtr2 &aMessage)const

Parameters

const RMessagePtr2 & aMessage

IsUpdatable()

TBool IsUpdatable()

Name()

const TDesC &Name()const [inline]

NewL(CFileStore &, TStreamId &)

CSchedule *NewL(CFileStore &aStore,
TStreamId &aId
)[static]

Parameters

CFileStore & aStore
TStreamId & aId

NewLC(TInt, const TDesC &, TBool, const CArrayFixFlat< TScheduleEntryInfo2 > &, const TSecurityInfo &)

CSchedule *NewLC(TIntaHandle,
const TDesC &aName,
TBoolaPersists,
const CArrayFixFlat< TScheduleEntryInfo2 > &aEntries,
const TSecurityInfo &aSecurityInfo
)[static]

Parameters

TInt aHandle
const TDesC & aName
TBool aPersists
const CArrayFixFlat< TScheduleEntryInfo2 > & aEntries
const TSecurityInfo & aSecurityInfo

NewLC(TInt, const TDesC &, TBool, const CArrayFixFlat< TTaskSchedulerCondition > &, const TTsTime &, const TSecurityInfo &)

CSchedule *NewLC(TIntaHandle,
const TDesC &aName,
TBoolaPersists,
const CArrayFixFlat< TTaskSchedulerCondition > &aEntries,
const TTsTime &aDefaultRunTime,
const TSecurityInfo &aSecurityInfo
)[static]

Parameters

TInt aHandle
const TDesC & aName
TBool aPersists
const CArrayFixFlat< TTaskSchedulerCondition > & aEntries
const TTsTime & aDefaultRunTime
const TSecurityInfo & aSecurityInfo

NotifyTasks()

voidNotifyTasks()

Offset()

TInt Offset()[static]

Persists()

TBool Persists()const [inline]

RemoveConditions()

voidRemoveConditions()

RemoveEntries()

voidRemoveEntries()

RemoveTask(TScheduledTask *)

voidRemoveTask(TScheduledTask *aTask)

Parameters

TScheduledTask * aTask

RemoveTasks(TBool)

voidRemoveTasks(TBoolaFromClient)

Parameters

TBool aFromClient

ReplaceConditionsL(const CArrayFixFlat< TTaskSchedulerCondition > &)

voidReplaceConditionsL(const CArrayFixFlat< TTaskSchedulerCondition > &aConditions)

Parameters

const CArrayFixFlat< TTaskSchedulerCondition > & aConditions

ReplaceEntriesL(const CArrayFixFlat< TScheduleEntryInfo2 > &)

voidReplaceEntriesL(const CArrayFixFlat< TScheduleEntryInfo2 > &aEntries)

Parameters

const CArrayFixFlat< TScheduleEntryInfo2 > & aEntries

RestoreL(CFileStore &, TStreamId &)

voidRestoreL(CFileStore &aStore,
TStreamId &aId
)[private]

Parameters

CFileStore & aStore
TStreamId & aId

SecurityInfo()

const TSecurityInfo &SecurityInfo()const

SetEnabled(TBool)

voidSetEnabled(TBoolaEnabled)[inline]

Parameters

TBool aEnabled

Task(const TInt)

TScheduledTask *Task(const TIntaTaskId)

Parameters

const TInt aTaskId

Tasks()

TSglQue< TScheduledTask > *Tasks()[inline]

TasksL(CArrayFixFlat< TTaskInfo > &)

voidTasksL(CArrayFixFlat< TTaskInfo > &aTasks)

Parameters

CArrayFixFlat< TTaskInfo > & aTasks

Type()

TScheduleType Type()const [inline]

ValidUntil()

TTsTime ValidUntil()const [private]

Member Data Documentation

RArray< TTaskSchedulerCondition > iConditions

RArray< TTaskSchedulerCondition >iConditions[private]

TTsTime iDueTime

TTsTime iDueTime[private]

TBool iEnabled

TBool iEnabled[private]

TSglQue< TScheduleEntry > iEntryList

TSglQue< TScheduleEntry >iEntryList[private]

TInt iId

TInt iId[private]

TSglQueLink iLink

TSglQueLink iLink[private]

HBufC * iName

HBufC *iName[private]

TBool iPersists

TBool iPersists[private]

TSecurityInfo iSecurityInfo

TSecurityInfo iSecurityInfo[private]

TSglQue< TScheduledTask > iTaskList

TSglQue< TScheduledTask >iTaskList[private]

TTimeIntervalMinutes iValidityPeriod

TTimeIntervalMinutes iValidityPeriod[private]