SwiUI::CTaskManager Class Reference

class SwiUI::CTaskManager : public CBase

TaskManager 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 SWInstTaskManager.lib

Inherits from

Constructor & Destructor Documentation

CTaskManager()

CTaskManager()[private]

Constructor.

~CTaskManager()

IMPORT_C~CTaskManager()[virtual]

Destructor.

Member Functions Documentation

AddTaskL(CTask *)

IMPORT_C voidAddTaskL(CTask *aTask)
Adds a task to the task list.
Since
3.0

Parameters

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

CommitL()

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

ConstructL()

voidConstructL()[private]

2nd phase constructor.

ExecutePendingTasksL()

IMPORT_C voidExecutePendingTasksL()
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()

IMPORT_C voidExecuteRecoveryTasksL()
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()

IMPORT_C voidFlushTasks()
Removes tasks from task list without executing them.
Since
3.0

Impl()

CTaskManagerImpl *Impl()[private, static]
Return pointer to TaskManager implementation.
Since
3.0

NewL()

IMPORT_C CTaskManager *NewL()[static]

Two-phased constructor.

RemoveTaskL(CTask *)

IMPORT_C voidRemoveTaskL(CTask *aTask)
Removes a task from the task list.
Since
3.0

Parameters

CTask * aTask- Pointer to the CTask object.

Member Data Documentation

CTaskManagerImpl * iImpl

CTaskManagerImpl *iImpl[private]