CTaskScheduler Class Reference

class CTaskScheduler : public CBase

Inherits from

Public Member Functions
~CTaskScheduler()
CClientProxy *AddClientL(const TDesC &, TInt)
voidAddScheduleL(CSchedule &)
TBUROperation BUROperationInProgress()
voidDeleteTaskL(TInt, TInt)
voidDisableScheduleL(TInt)
voidDueTaskNotifyL(TInt)
voidEditScheduleL(TInt, CArrayFixFlat< TScheduleEntryInfo2 > &)
voidEditScheduleL(TInt, CArrayFixFlat< TTaskSchedulerCondition > &, const TTsTime &)
voidEnableScheduleL(TInt)
CSchedule *FindL(TInt)
TInt GenerateId()
TInt GetScheduleRefsL(CArrayFixFlat< TSchedulerItemRef > *, TScheduleFilter, const RMessagePtr2 &)
TInt GetTaskRefsL(CArrayFixFlat< TSchedulerItemRef > *, TScheduleFilter, TTaskFilter, CClientProxy *, const RMessagePtr2 &)
voidHandleBackupOperationEventL(const TBackupOperationAttributes &)
TBool IsScheduleReadyForUpdate(CSchedule &)
TBool IsStartupStateNonCritical()
CTaskScheduler *NewL()
CTaskScheduler *NewLC()
voidProcessSSAEventL(TStartupStateIdentifier)
voidRemoveScheduleL(TInt)
voidScheduleTaskL(CSchedule &, CClientProxy &)
Private Member Functions
CTaskScheduler()
voidAddSchedulesToTimerL()
voidBURBeginningL(TBUROperation)
voidBURCompleteL(TBUROperation, TBUROperationResult)
voidCleanupScheduledTasksL()
voidConstructL()
voidDoEditScheduleL(CSchedule &, CArrayFixFlat< TTaskSchedulerCondition > &, const TTsTime &)
voidDoRemoveL(CSchedule *)
TInt EnvironmentChanged(TAny *)
voidExecuteClients(TBool)
CSchedule *Find(TInt)
voidHandleEnvironmentChange()
voidUpdateClients()
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
TBUROperation iBUROperationInProgress
CSchBackupManager *iBackupManager
CBaBackupSessionWrapper *iBackupNotification
TPriQue< CClientProxy >iClients
RFs iFsSession
CEnvironmentChangeNotifier *iNotifier
CSchLogManager *iSchLogManager
CScheduleCriteriaManager *iScheduleCriteriaManager
TSglQue< CSchedule >iSchedules
TBool iStartupStatePassNonCritical
TBool iTaskExecutedDuringBUR

Constructor & Destructor Documentation

CTaskScheduler()

CTaskScheduler()[private]

~CTaskScheduler()

~CTaskScheduler()

Member Functions Documentation

AddClientL(const TDesC &, TInt)

CClientProxy *AddClientL(const TDesC &aFilename,
TIntaPriority
)

Parameters

const TDesC & aFilename
TInt aPriority

AddScheduleL(CSchedule &)

voidAddScheduleL(CSchedule &aSchedule)

Parameters

CSchedule & aSchedule

AddSchedulesToTimerL()

voidAddSchedulesToTimerL()[private]

BURBeginningL(TBUROperation)

voidBURBeginningL(TBUROperationaOperationType)[private]

This function is called to notify when a Backup or Restore operation is commencing.

Parameters

TBUROperation aOperationType

BURCompleteL(TBUROperation, TBUROperationResult)

voidBURCompleteL(TBUROperationaOperationType,
TBUROperationResultaBURResult
)[private]

This function is called to notify when a Backup or Restore operation is finished.

Parameters

TBUROperation aOperationType
TBUROperationResult aBURResult

BUROperationInProgress()

TBUROperation BUROperationInProgress()[inline]

CleanupScheduledTasksL()

voidCleanupScheduledTasksL()[private]

ConstructL()

voidConstructL()[private]

DeleteTaskL(TInt, TInt)

voidDeleteTaskL(TIntaScheduleHandle,
TIntaTaskHandle
)

Parameters

TInt aScheduleHandle
TInt aTaskHandle

DisableScheduleL(TInt)

voidDisableScheduleL(TIntaHandle)

Parameters

TInt aHandle

DoEditScheduleL(CSchedule &, CArrayFixFlat< TTaskSchedulerCondition > &, const TTsTime &)

voidDoEditScheduleL(CSchedule &aSchedule,
CArrayFixFlat< TTaskSchedulerCondition > &aConditionList,
const TTsTime &aDefaultTime
)[private]

Parameters

CSchedule & aSchedule
CArrayFixFlat< TTaskSchedulerCondition > & aConditionList
const TTsTime & aDefaultTime

DoRemoveL(CSchedule *)

voidDoRemoveL(CSchedule *aSchedule)[private]

Parameters

CSchedule * aSchedule

DueTaskNotifyL(TInt)

voidDueTaskNotifyL(TIntaScheduleHandle)

Parameters

TInt aScheduleHandle

EditScheduleL(TInt, CArrayFixFlat< TScheduleEntryInfo2 > &)

voidEditScheduleL(TIntaScheduleHandle,
CArrayFixFlat< TScheduleEntryInfo2 > &aEntryList
)

Parameters

TInt aScheduleHandle
CArrayFixFlat< TScheduleEntryInfo2 > & aEntryList

EditScheduleL(TInt, CArrayFixFlat< TTaskSchedulerCondition > &, const TTsTime &)

voidEditScheduleL(TIntaScheduleHandle,
CArrayFixFlat< TTaskSchedulerCondition > &aEntryList,
const TTsTime &aDefaultTime
)

Parameters

TInt aScheduleHandle
CArrayFixFlat< TTaskSchedulerCondition > & aEntryList
const TTsTime & aDefaultTime

EnableScheduleL(TInt)

voidEnableScheduleL(TIntaHandle)

Parameters

TInt aHandle

EnvironmentChanged(TAny *)

TInt EnvironmentChanged(TAny *aScheduler)[private, static]

Parameters

TAny * aScheduler

ExecuteClients(TBool)

voidExecuteClients(TBoolaUpdateClient = ETrue)[private]

Parameters

TBool aUpdateClient = ETrue

Find(TInt)

CSchedule *Find(TIntaHandle)[private]

Parameters

TInt aHandle

FindL(TInt)

CSchedule *FindL(TIntaHandle)

Parameters

TInt aHandle

GenerateId()

TInt GenerateId()

GetScheduleRefsL(CArrayFixFlat< TSchedulerItemRef > *, TScheduleFilter, const RMessagePtr2 &)

TInt GetScheduleRefsL(CArrayFixFlat< TSchedulerItemRef > *aRefArray,
TScheduleFilteraFilter,
const RMessagePtr2 &aMessage
)

Parameters

CArrayFixFlat< TSchedulerItemRef > * aRefArray
TScheduleFilter aFilter
const RMessagePtr2 & aMessage

GetTaskRefsL(CArrayFixFlat< TSchedulerItemRef > *, TScheduleFilter, TTaskFilter, CClientProxy *, const RMessagePtr2 &)

TInt GetTaskRefsL(CArrayFixFlat< TSchedulerItemRef > *aRefArray,
TScheduleFilteraScheduleFilter,
TTaskFilteraTaskFilter,
CClientProxy *aClient,
const RMessagePtr2 &aMessage
)

Parameters

CArrayFixFlat< TSchedulerItemRef > * aRefArray
TScheduleFilter aScheduleFilter
TTaskFilter aTaskFilter
CClientProxy * aClient
const RMessagePtr2 & aMessage

HandleBackupOperationEventL(const TBackupOperationAttributes &)

voidHandleBackupOperationEventL(const TBackupOperationAttributes &aBackupOperationAttributes)[virtual]

babackup server calls this to notify backup operations. The attributes are read and translated to determine which operation is actually in progress.

Parameters

const TBackupOperationAttributes & aBackupOperationAttributes

HandleEnvironmentChange()

voidHandleEnvironmentChange()[private]

IsScheduleReadyForUpdate(CSchedule &)

TBool IsScheduleReadyForUpdate(CSchedule &aSchedule)

Check schedule is valid

Parameters

CSchedule & aSchedule

IsStartupStateNonCritical()

TBool IsStartupStateNonCritical()

Returns ETrue if Start-up State is NonCritical

NewL()

CTaskScheduler *NewL()[static]

NewLC()

CTaskScheduler *NewLC()[static]

ProcessSSAEventL(TStartupStateIdentifier)

voidProcessSSAEventL(TStartupStateIdentifieraKnownState)

CSchStartupStateMgr calls this to notify startup state changes of interest.

Parameters

TStartupStateIdentifier aKnownState

RemoveScheduleL(TInt)

voidRemoveScheduleL(TIntaHandle)

Parameters

TInt aHandle

ScheduleTaskL(CSchedule &, CClientProxy &)

voidScheduleTaskL(CSchedule &aSchedule,
CClientProxy &aClient
)

Parameters

CSchedule & aSchedule
CClientProxy & aClient

UpdateClients()

voidUpdateClients()[private]

Member Data Documentation

TBUROperation iBUROperationInProgress

TBUROperation iBUROperationInProgress[private]

CSchBackupManager * iBackupManager

CSchBackupManager *iBackupManager[private]

CBaBackupSessionWrapper * iBackupNotification

CBaBackupSessionWrapper *iBackupNotification[private]

TPriQue< CClientProxy > iClients

TPriQue< CClientProxy >iClients[private]

RFs iFsSession

RFs iFsSession[private]

CEnvironmentChangeNotifier * iNotifier

CEnvironmentChangeNotifier *iNotifier[private]

CSchLogManager * iSchLogManager

CSchLogManager *iSchLogManager[private]

CScheduleCriteriaManager * iScheduleCriteriaManager

CScheduleCriteriaManager *iScheduleCriteriaManager[private]

TSglQue< CSchedule > iSchedules

TSglQue< CSchedule >iSchedules[private]

TBool iStartupStatePassNonCritical

TBool iStartupStatePassNonCritical[private]

TBool iTaskExecutedDuringBUR

TBool iTaskExecutedDuringBUR[private]