CSysapKeyHandlerPlugin Class Reference

class CSysapKeyHandlerPlugin : public CBase

CSysapKeyHandlerPlugin class. This class serves as an interface between SysAp and the plugins.

Since
S60 3.1

Inherits from

  • CSysapKeyHandlerPlugin

Constructor & Destructor Documentation

~CSysapKeyHandlerPlugin()

~CSysapKeyHandlerPlugin()[inline, virtual]

Destructor

Member Functions Documentation

HandleKeyEventL(const TKeyEvent &, TEventCode)

TKeyResponse HandleKeyEventL(const TKeyEvent &aKeyEvent,
TEventCodeaType
)[pure virtual]

Handles key events

Since
S60 3.1

Parameters

const TKeyEvent & aKeyEventcontains information about the key event
TEventCode aTypecontains information about the type of the key event

NewL(TUid, MSysapCallback *)

CSysapKeyHandlerPlugin *NewL(TUidaUid,
MSysapCallback *aCallback
)[static, inline]

Description: Wraps ECom object instantitation. Will return the default interface implementation, which matches to given aUid.

Note: This is not a "normal" NewL method, since normally NewL methods are only defined for concrete classes. Note that also implementations of this interface provide NewL methods. They are the familiar NewL's, which create instance of classes.

Since
S60 3.1

Parameters

TUid aUidUid of the plugin to be instantiated
MSysapCallback * aCallbackpointer to object that will implement a callback interface. Cannot be NULL.

PostConstructL()

voidPostConstructL()[protected, inline, virtual]

An additional phase for derived class construction.

This method is called immediately after the plug-in has been loaded. Derived classes may overload this method, if they need to perform initializations that require usage of the callback pointer (obtained via SysapCallback()-function).

Since
S60 3.1
leave
system wide error code
CSysapKeyHandlerPlugin::SysapCallback

ProvideKeyEventsL(RArray< TKeyEvent > &)

voidProvideKeyEventsL(RArray< TKeyEvent > &aKeyEventArray)[inline, virtual]

Provides the key events that the plugin wants to listen to. Plugins should overload this method if they are of version 2 or higher. iCode, iScanCode and iModifiers MUST be defined in each TKeyEvent.

Since
S60 5.1

Parameters

RArray< TKeyEvent > & aKeyEventArray

SysapCallback()

MSysapCallback *SysapCallback()[protected, inline]

Returns pointer to callback object.

Since
S60 3.1
Pre-condition
plug-in hase been loaded successfully
panic
KErrGeneral raised if method is called during construction. Place the initialization code that needs this function into PostConstructL().
CSysapKeyHandlerPlugin::PostConstructL

Member Data Documentation

MSysapCallback * iCallback

MSysapCallback *iCallback[private]

Pointer to callback object. Not own.

TUid iDtor_ID_Key

TUid iDtor_ID_Key[private]

Instance identifier key. When instance of an implementation is created by ECOM framework, the framework will assign UID for it. The UID is used in destructor to notify framework that this instance is being destroyed and resources can be released.