CAknTaskList Class Reference

class CAknTaskList : public CBase

Class for finding out about running applications. This class specialises in locating and identifying root applications, those applications who do not have any parent window group. It can be used along-side TApaTaskList.

Since
Series 60 3.0

Inherits from

Constructor & Destructor Documentation

CAknTaskList(RWsSession &)

CAknTaskList(RWsSession &aWsSession)[private]

Parameters

RWsSession & aWsSession

~CAknTaskList()

IMPORT_C~CAknTaskList()

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

FindChildWgId(TInt)

IMPORT_C TIntFindChildWgId(TIntaWgId)const

Find the child window group. If there is no child, 0 is returned.

Parameters

TInt aWgIdthe window group id that you want to find the child of.

FindParentWgId(TInt)

IMPORT_C TIntFindParentWgId(TIntaWgId)const

Find the parent window group. If there is no parent, 0 is returned.

Parameters

TInt aWgIdthe window group id that you want to find the parent of.

FindRootApp(TUid)

IMPORT_C TApaTaskFindRootApp(TUidaAppUid)const

Find an application with the requested UID 3, which is running as a root application

Parameters

TUid aAppUidthe UID 3 of the target application.

IsRootWindowGroup(TInt)

IMPORT_C TBoolIsRootWindowGroup(TIntaWgId)const

Query whether an application's window group is running as a root application.

Parameters

TInt aWgIdthe window group identifier of the target application.

NewL(RWsSession &)

IMPORT_C CAknTaskList *NewL(RWsSession &aWsSession)[static]

Factory function

Parameters

RWsSession & aWsSessionan open session to the window server, often from CEikonEnv::WsSession()

NewLC(RWsSession &)

IMPORT_C CAknTaskList *NewLC(RWsSession &aWsSession)[static]

Factory function

Parameters

RWsSession & aWsSessionan open session to the window server, often from CEikonEnv::WsSession()

UpdateListL()

IMPORT_C voidUpdateListL()

Refresh the window group array

WgArray()

IMPORT_C const RArray< RWsSession::TWindowGroupChainInfo > &WgArray()const

Accessor for the window group array

Member Data Documentation

RArray< RWsSession::TWindowGroupChainInfo > iWgs

RArray< RWsSession::TWindowGroupChainInfo >iWgs[private]

RWsSession & iWs

RWsSession &iWs[private]