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

void ConstructL ( ) [private]

FindChildWgId(TInt)

IMPORT_C TInt FindChildWgId ( TInt aWgId ) const

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

Parameters

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

FindParentWgId(TInt)

IMPORT_C TInt FindParentWgId ( TInt aWgId ) const

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

Parameters

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

FindRootApp(TUid)

IMPORT_C TApaTask FindRootApp ( TUid aAppUid ) const

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

Parameters

TUid aAppUid the UID 3 of the target application.

IsRootWindowGroup(TInt)

IMPORT_C TBool IsRootWindowGroup ( TInt aWgId ) const

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

Parameters

TInt aWgId the window group identifier of the target application.

NewL(RWsSession &)

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

Factory function

Parameters

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

NewLC(RWsSession &)

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

Factory function

Parameters

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

UpdateListL()

IMPORT_C void UpdateListL ( )

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]