CTaskScheduler Class Reference

class CTaskScheduler : public CBase

Inherits from

Public Member Functions
~CTaskScheduler ()
CClientProxy * AddClientL (const TDesC &, TInt )
void AddScheduleL ( CSchedule &)
TBUROperation BUROperationInProgress ()
void DeleteTaskL ( TInt , TInt )
void DisableScheduleL ( TInt )
void DueTaskNotifyL ( TInt )
void EditScheduleL ( TInt , CArrayFixFlat < TScheduleEntryInfo2 > &)
void EditScheduleL ( TInt , CArrayFixFlat < TTaskSchedulerCondition > &, const TTsTime &)
void EnableScheduleL ( TInt )
CSchedule * FindL ( TInt )
TInt GenerateId ()
TInt GetScheduleRefsL ( CArrayFixFlat < TSchedulerItemRef > *, TScheduleFilter , const RMessagePtr2 &)
TInt GetTaskRefsL ( CArrayFixFlat < TSchedulerItemRef > *, TScheduleFilter , TTaskFilter , CClientProxy *, const RMessagePtr2 &)
void HandleBackupOperationEventL (const TBackupOperationAttributes &)
TBool IsScheduleReadyForUpdate ( CSchedule &)
TBool IsStartupStateNonCritical ()
CTaskScheduler * NewL ()
CTaskScheduler * NewLC ()
void ProcessSSAEventL ( TStartupStateIdentifier )
void RemoveScheduleL ( TInt )
void ScheduleTaskL ( CSchedule &, CClientProxy &)
Private Member Functions
CTaskScheduler ()
void AddSchedulesToTimerL ()
void BURBeginningL ( TBUROperation )
void BURCompleteL ( TBUROperation , TBUROperationResult )
void CleanupScheduledTasksL ()
void ConstructL ()
void DoEditScheduleL ( CSchedule &, CArrayFixFlat < TTaskSchedulerCondition > &, const TTsTime &)
void DoRemoveL ( CSchedule *)
TInt EnvironmentChanged ( TAny *)
void ExecuteClients ( TBool )
CSchedule * Find ( TInt )
void HandleEnvironmentChange ()
void UpdateClients ()
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,
TInt aPriority
)

Parameters

const TDesC & aFilename
TInt aPriority

AddScheduleL(CSchedule &)

void AddScheduleL ( CSchedule & aSchedule )

Parameters

CSchedule & aSchedule

AddSchedulesToTimerL()

void AddSchedulesToTimerL ( ) [private]

BURBeginningL(TBUROperation)

void BURBeginningL ( TBUROperation aOperationType ) [private]

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

Parameters

TBUROperation aOperationType

BURCompleteL(TBUROperation, TBUROperationResult)

void BURCompleteL ( TBUROperation aOperationType,
TBUROperationResult aBURResult
) [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()

void CleanupScheduledTasksL ( ) [private]

ConstructL()

void ConstructL ( ) [private]

DeleteTaskL(TInt, TInt)

void DeleteTaskL ( TInt aScheduleHandle,
TInt aTaskHandle
)

Parameters

TInt aScheduleHandle
TInt aTaskHandle

DisableScheduleL(TInt)

void DisableScheduleL ( TInt aHandle )

Parameters

TInt aHandle

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

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

Parameters

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

DoRemoveL(CSchedule *)

void DoRemoveL ( CSchedule * aSchedule ) [private]

Parameters

CSchedule * aSchedule

DueTaskNotifyL(TInt)

void DueTaskNotifyL ( TInt aScheduleHandle )

Parameters

TInt aScheduleHandle

EditScheduleL(TInt, CArrayFixFlat< TScheduleEntryInfo2 > &)

void EditScheduleL ( TInt aScheduleHandle,
CArrayFixFlat < TScheduleEntryInfo2 > & aEntryList
)

Parameters

TInt aScheduleHandle
CArrayFixFlat < TScheduleEntryInfo2 > & aEntryList

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

void EditScheduleL ( TInt aScheduleHandle,
CArrayFixFlat < TTaskSchedulerCondition > & aEntryList,
const TTsTime & aDefaultTime
)

Parameters

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

EnableScheduleL(TInt)

void EnableScheduleL ( TInt aHandle )

Parameters

TInt aHandle

EnvironmentChanged(TAny *)

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

Parameters

TAny * aScheduler

ExecuteClients(TBool)

void ExecuteClients ( TBool aUpdateClient = ETrue ) [private]

Parameters

TBool aUpdateClient = ETrue

Find(TInt)

CSchedule * Find ( TInt aHandle ) [private]

Parameters

TInt aHandle

FindL(TInt)

CSchedule * FindL ( TInt aHandle )

Parameters

TInt aHandle

GenerateId()

TInt GenerateId ( )

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

TInt GetScheduleRefsL ( CArrayFixFlat < TSchedulerItemRef > * aRefArray,
TScheduleFilter aFilter,
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,
TScheduleFilter aScheduleFilter,
TTaskFilter aTaskFilter,
CClientProxy * aClient,
const RMessagePtr2 & aMessage
)

Parameters

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

HandleBackupOperationEventL(const TBackupOperationAttributes &)

void HandleBackupOperationEventL ( 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()

void HandleEnvironmentChange ( ) [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)

void ProcessSSAEventL ( TStartupStateIdentifier aKnownState )

CSchStartupStateMgr calls this to notify startup state changes of interest.

Parameters

TStartupStateIdentifier aKnownState

RemoveScheduleL(TInt)

void RemoveScheduleL ( TInt aHandle )

Parameters

TInt aHandle

ScheduleTaskL(CSchedule &, CClientProxy &)

void ScheduleTaskL ( CSchedule & aSchedule,
CClientProxy & aClient
)

Parameters

CSchedule & aSchedule
CClientProxy & aClient

UpdateClients()

void UpdateClients ( ) [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]