TApaTaskList Class Reference

class TApaTaskList

Accesses tasks running on a device.

Tasks can be identified by document, application specific UID or by caption name.

Users of this class can also cycle through a set of tasks running a specific application, bringing each one, in turn, into the foreground.

TApaTask

Public Member Functions
TApaTaskList(RWsSession &)
IMPORT_C TIntCycleTasks(TUid, TCycleDirection)
IMPORT_C TApaTaskFindApp(const TDesC &)
IMPORT_C TApaTaskFindApp(TUid)
IMPORT_C TApaTaskFindByPos(TInt)
IMPORT_C TApaTaskFindDoc(const TDesC &)
Private Member Functions
voidFindByPosL(TApaTask &, TInt)
Public Member Enumerations
enumTCycleDirection { EForwards, EBackwards }
Private Attributes
TInt iTApaTaskList_Reserved1
RWsSession &iWsSession

Constructor & Destructor Documentation

TApaTaskList(RWsSession &)

IMPORT_CTApaTaskList(RWsSession &aWsSession)

Parameters

RWsSession & aWsSession

Member Functions Documentation

CycleTasks(TUid, TCycleDirection)

IMPORT_C TIntCycleTasks(TUidaAppUid,
TCycleDirectionaDirection = EForwards
)

Parameters

TUid aAppUid
TCycleDirection aDirection = EForwards

FindApp(const TDesC &)

IMPORT_C TApaTaskFindApp(const TDesC &aAppName)

Parameters

const TDesC & aAppName

FindApp(TUid)

IMPORT_C TApaTaskFindApp(TUidaAppUid)

Parameters

TUid aAppUid

FindByPos(TInt)

IMPORT_C TApaTaskFindByPos(TIntaPos)

Parameters

TInt aPos

FindByPosL(TApaTask &, TInt)

voidFindByPosL(TApaTask &aTask,
TIntaPos
)[private]

Parameters

TApaTask & aTask
TInt aPos

FindDoc(const TDesC &)

IMPORT_C TApaTaskFindDoc(const TDesC &aDocName)

Parameters

const TDesC & aDocName

Member Enumerations Documentation

Enum TCycleDirection

Defines the direction in which tasks are cycled to the foreground. This is used by the CycleTasks() function.

TApaTaskList::CycleTasks()

Enumerators

EForwards

Cycles the task list forwards, i.e. the foreground task is moved to background, bringing the next foremost task to the foreground.

EBackwards

Cycles the list backwards, i.e. the task furthest from the foreground is brought to the foreground, pushing what was the foremost task to the next ordinal position.

Member Data Documentation

TInt iTApaTaskList_Reserved1

TInt iTApaTaskList_Reserved1[private]

RWsSession & iWsSession

RWsSession &iWsSession[private]