TApaTask Class Reference

class TApaTask

Application task.

A task is a running application. At any one time, for any given application, there may be zero, one, or more tasks running on a device.

A task is identified by its association with the running application's window group.

An instance of the TApaTaskList class is used to find and access specific tasks.

TApaTaskList

RWindowGroup

RWsSession

Public Member Functions
TApaTask(RWsSession &)
IMPORT_C voidBringToForeground()
IMPORT_C voidEndTask()
IMPORT_C TBoolExists()
IMPORT_C voidKillTask()
IMPORT_C voidSendKey(TInt, TInt)
IMPORT_C voidSendKey(const TKeyEvent &)
IMPORT_C TIntSendMessage(TUid, const TDesC8 &)
IMPORT_C voidSendSystemEvent(TApaSystemEvent)
IMPORT_C voidSendToBackground()
IMPORT_C voidSetWgId(TInt)
IMPORT_C TIntSwitchCreateFile(const TDesC &)
IMPORT_C TIntSwitchOpenFile(const TDesC &)
IMPORT_C TThreadIdThreadId()
IMPORT_C TIntWgId()
Private Member Functions
TInt CheckSwitchFile()
voidSendSystemEvent(TApaSystemEvent, TEventCode)
Private Attributes
TInt iTApaTask_Reserved1
TInt iWgId
RWsSession &iWsSession

Constructor & Destructor Documentation

TApaTask(RWsSession &)

IMPORT_CTApaTask(RWsSession &aWsSession)

Parameters

RWsSession & aWsSession

Member Functions Documentation

BringToForeground()

IMPORT_C voidBringToForeground()

CheckSwitchFile()

TInt CheckSwitchFile()const [private]

EndTask()

IMPORT_C voidEndTask()

Exists()

IMPORT_C TBoolExists()const

KillTask()

IMPORT_C voidKillTask()

SendKey(TInt, TInt)

IMPORT_C voidSendKey(TIntaKeyCode,
TIntaModifiers
)

Parameters

TInt aKeyCode
TInt aModifiers

SendKey(const TKeyEvent &)

IMPORT_C voidSendKey(const TKeyEvent &aKey)

Parameters

const TKeyEvent & aKey

SendMessage(TUid, const TDesC8 &)

IMPORT_C TIntSendMessage(TUidaUid,
const TDesC8 &aParams
)

Parameters

TUid aUid
const TDesC8 & aParams

SendSystemEvent(TApaSystemEvent)

IMPORT_C voidSendSystemEvent(TApaSystemEventaEvent)

Parameters

TApaSystemEvent aEvent

SendSystemEvent(TApaSystemEvent, TEventCode)

voidSendSystemEvent(TApaSystemEventaEvent,
TEventCodeaType
)[private]

Parameters

TApaSystemEvent aEvent
TEventCode aType

SendToBackground()

IMPORT_C voidSendToBackground()

SetWgId(TInt)

IMPORT_C voidSetWgId(TIntaWgId)

Parameters

TInt aWgId

SwitchCreateFile(const TDesC &)

IMPORT_C TIntSwitchCreateFile(const TDesC &aFilename)

Parameters

const TDesC & aFilename

SwitchOpenFile(const TDesC &)

IMPORT_C TIntSwitchOpenFile(const TDesC &aFilename)

Parameters

const TDesC & aFilename

ThreadId()

IMPORT_C TThreadIdThreadId()const

WgId()

IMPORT_C TIntWgId()const

Member Data Documentation

TInt iTApaTask_Reserved1

TInt iTApaTask_Reserved1[private]

TInt iWgId

TInt iWgId[private]

RWsSession & iWsSession

RWsSession &iWsSession[private]