SwiUI::CTaskManagerImpl Class Reference

class SwiUI::CTaskManagerImpl : public CBase

TaskManagerImpl handles persistent and nonpersistent tasks in the subsystem. It can be used to make sure that critical tasks are executed even in case of fatal error such as power failure.

Since
3.0 SWInstTaskManagerImpl.lib

Inherits from

Constructor & Destructor Documentation

CTaskManagerImpl()

CTaskManagerImpl ( ) [private]

Constructor.

~CTaskManagerImpl()

~CTaskManagerImpl ( ) [virtual]

Destructor.

Member Functions Documentation

AddTaskL(CTask *)

void AddTaskL ( CTask * aTask )
Adds a task to the task list.
Since
3.0

Parameters

CTask * aTask - Pointer to the CTask object. Transfers ownership to TaskManagerImpl.

CanBeFreed()

TBool CanBeFreed ( )
Indicates if no more clients have open instances and memory can be freed.
Since
3.0

CommitL()

void CommitL ( )
Writes all persistent tasks from the task list to a persistent storage.
Since
3.0

ConstructL()

void ConstructL ( ) [private]

2nd phase constructor.

CreateTaskDirL()

void CreateTaskDirL ( ) [private]
Creates the directory where persistent tasks are stored.
Since
3.0

DecreaseClientCount()

void DecreaseClientCount ( )
Decrease the count of clients.
Since
3.0

DeleteTaskFilesL()

void DeleteTaskFilesL ( ) [private]
Deletes all tasks from persistent storage.
Since
3.0

ExecutePendingTasksL()

void ExecutePendingTasksL ( )
Executes all pending tasks that are added to the task list within the lifetime of this thread. In order to recover from fatal error, please use ExecutelRecoveryTasksL.
Since
3.0

ExecuteRecoveryTasksL()

void ExecuteRecoveryTasksL ( )
Executes all tasks from non persistent and persistent memory. This should be used to recover from fatal error e.g. power loss.
Since
3.0

FlushTasks()

void FlushTasks ( )
Removes tasks from task list without executing them.
Since
3.0

GetFreeTaskIdL()

TInt GetFreeTaskIdL ( ) [private]
Gets the next free id that can be assigned to a task.
Since
3.0 return Task id.

GetTaskDir(TDes &)

void GetTaskDir ( TDes & aFilePath ) [private]
Gets the directory where persistent tasks are stored.
Since
3.0

Parameters

TDes & aFilePath - On return will contain the path.

GetTaskFilePath(TDes &, TInt)

void GetTaskFilePath ( TDes & aFilePath,
TInt aTaskId
) [private]
Gets the full path to the persistent task file.
Since
3.0

Parameters

TDes & aFilePath - On return will contain the path.
TInt aTaskId - Id of the task.

IncreaseClientCount()

void IncreaseClientCount ( )
Increase the count of clients.
Since
3.0

NewL()

CTaskManagerImpl * NewL ( ) [static]

Two-phased constructor.

PopulatePersistentTasksL()

void PopulatePersistentTasksL ( ) [private]
Reads all persistent task from storage and populates the task list.
Since
3.0

RemovePersistentTask(const CTask &)

void RemovePersistentTask ( const CTask & aTask ) [private]
Removes task from persistent storage.
Since
3.0

Parameters

const CTask & aTask - Task to be removed.

RemoveTaskL(CTask *)

void RemoveTaskL ( CTask * aTask )
Removes a task from the task list.
Since
3.0

Parameters

CTask * aTask - Pointer to the CTask object.

Member Data Documentation

TUint iClientCount

TUint iClientCount [private]

RFs iRFs

RFs iRFs [private]

RPointerArray< CTask > iTaskList

RPointerArray < CTask > iTaskList [private]