RPeninputServer Class Reference

class RPeninputServer
Public Member Functions
RPeninputServer()
IMPORT_C voidActivateLayout(TBool)
IMPORT_C voidActivatePeninputInNotesL()
IMPORT_C TIntAddPenUiActivationHandler(MPenUiActivationHandler *, TInt)
IMPORT_C voidAddPeninputServerObserverL(MPeninputServerEventHandler *)
IMPORT_C TBoolAutoOpen()
IMPORT_C voidBackgroudDefaultOri(TInt)
IMPORT_C voidClearServerEvent()
IMPORT_C voidClearTouchUI()
IMPORT_C voidClose()
IMPORT_C TIntConnect()
IMPORT_C TIntConnectAsyc(TRequestStatus &)
IMPORT_C voidDimUiLayout(TBool)
IMPORT_C TIntDisabledLayout()
IMPORT_C voidEnablePriorityChangeOnOriChange(TBool)
IMPORT_C voidGetImePluginIdListL(TInt, TInt, RArray< TInt > &)
IMPORT_C TIntGetServerEventData(TDes &)
IMPORT_C TIntHandleCommand(TInt, const TDesC8 &)
IMPORT_C TIntHandleCommand(TInt)
IMPORT_C TIntHandleCommand(TInt, const TDesC8 &, TInt &)
IMPORT_C TBoolIsDimmed()
IMPORT_C TBoolIsForeground()
IMPORT_C TBoolIsVisible()
IMPORT_C voidLoseForeground()
IMPORT_C voidPenSupportLanguagesL(RArray< TInt > &)
IMPORT_C TPluginInputModePreferredUiMode()
IMPORT_C voidRemovePenUiActivationHandler()
IMPORT_C voidRemovePenUiActivationHandler(MPenUiActivationHandler *)
IMPORT_C voidRemovePeninputServerObserver()
IMPORT_C voidRemovePeninputServerObserver(MPeninputServerEventHandler *)
IMPORT_C voidResourceChanged(TInt)
IMPORT_C TIntServerEventDataNum()
IMPORT_C voidSetAutoOpen(TBool)
IMPORT_C voidSetDataQueryPopped(TBool)
IMPORT_C voidSetDisabledLayout(TInt)
IMPORT_C voidSetDisplayMode(TDisplayMode, TDisplayMode)
IMPORT_C voidSetEditorPriority(TInt)
IMPORT_C TBoolSetForeground(TBool)
IMPORT_C voidSetGlobalNotes(TBool)
IMPORT_C TIntSetInputLanguage(TInt)
IMPORT_C voidSetInternalPopUp(TBool)
IMPORT_C voidSetPreferredUiMode(TPluginInputMode)
IMPORT_C voidSetResourceChange(TBool)
IMPORT_C TIntSetUiLayoutId(TUid)
IMPORT_C TIntSetUiLayoutId(TUid, const TDesC8 &)
IMPORT_C TIntSetUiLayoutPos(const TPoint &)
IMPORT_C TIntSupportInputMode(TInt)
IMPORT_C TPointUiLayoutPos()
IMPORT_C TSizeUiLayoutSize()
IMPORT_C voidUpdateAppInfo(const TDesC &, TPeninputAppInfo)
IMPORT_C TVersionVersion()
Private Attributes
RPeninputServerImpl *iSingletonServer

Constructor & Destructor Documentation

RPeninputServer()

IMPORT_CRPeninputServer()

Constructor

Since
S60 v4.0

Member Functions Documentation

ActivateLayout(TBool)

IMPORT_C voidActivateLayout(TBoolaFlag)

Activate/Deactivate the layout

Since
S60 V4.0

Parameters

TBool aFlagThe activation flag. ETrue if activated

ActivatePeninputInNotesL()

IMPORT_C voidActivatePeninputInNotesL()

AddPenUiActivationHandler(MPenUiActivationHandler *, TInt)

IMPORT_C TIntAddPenUiActivationHandler(MPenUiActivationHandler *aHandler,
TIntaType
)

Add pen input UI activation observer. Only one handler can be added. If need to change the handler, the old handler must be first removed.

Since
S60 V4.0

Parameters

MPenUiActivationHandler * aHandlerThe callback handler when pen input UI activated/deactivated
TInt aTypeThe pen ui type to be handled. The available type is defined in TPenInputUiType

AddPeninputServerObserverL(MPeninputServerEventHandler *)

IMPORT_C voidAddPeninputServerObserverL(MPeninputServerEventHandler *aObserver)

Add server observer. An observer will be notified when server has event

Since
S60 V4.0

Parameters

MPeninputServerEventHandler * aObserverThe server observer

AutoOpen()

IMPORT_C TBoolAutoOpen()

BackgroudDefaultOri(TInt)

IMPORT_C voidBackgroudDefaultOri(TIntaOri)

Parameters

TInt aOri

ClearServerEvent()

IMPORT_C voidClearServerEvent()

ClearTouchUI()

IMPORT_C voidClearTouchUI()

Close()

IMPORT_C voidClose()

Closes the connection to the server.

Since
S60 v4.0

Connect()

IMPORT_C TIntConnect()

Makes a connection to the server.

Since
S60 v4.0

ConnectAsyc(TRequestStatus &)

IMPORT_C TIntConnectAsyc(TRequestStatus &aStatus)

Parameters

TRequestStatus & aStatus

DimUiLayout(TBool)

IMPORT_C voidDimUiLayout(TBoolaFlag)

Dim the UI layout

Since
S60 V5.0

Parameters

TBool aFlagThe dim flag. ETrue if going to dim the ui layout

DisabledLayout()

IMPORT_C TIntDisabledLayout()

EnablePriorityChangeOnOriChange(TBool)

IMPORT_C voidEnablePriorityChangeOnOriChange(TBoolaEnabled)

Parameters

TBool aEnabled

GetImePluginIdListL(TInt, TInt, RArray< TInt > &)

IMPORT_C voidGetImePluginIdListL(TIntaLanguage,
TIntaPluginMode,
RArray< TInt > &aImplmentationIds
)

Return requried Ime plugin list

Since
S60 V4.0

Parameters

TInt aLanguageThe required supporting language
TInt aPluginModeThe required supporting mode
RArray< TInt > & aImplmentationIdsA reference to a client owned array which will be filled with IME plugin implementation.

GetServerEventData(TDes &)

IMPORT_C TIntGetServerEventData(TDes &aBuf)

Get server event data. When server oberver got a event notification, it calls this to get data

Since
S60 V4.0

Parameters

TDes & aBufbuf to save the event data on return

HandleCommand(TInt, const TDesC8 &)

IMPORT_C TIntHandleCommand(TIntaCmd,
const TDesC8 &aBuf
)

HandleCommandL, handle command from client

Since
S60 v4.0

Parameters

TInt aCmdThe commandid
const TDesC8 & aBufCommand data

HandleCommand(TInt)

IMPORT_C TIntHandleCommand(TIntaCmd)

HandleCommandL, handle command from client

Since
S60 v4.0

Parameters

TInt aCmdThe commandid

HandleCommand(TInt, const TDesC8 &, TInt &)

IMPORT_C TIntHandleCommand(TIntaCmd,
const TDesC8 &aBuf,
TInt &aResult
)

HandleCommandL, handle command from client

Since
S60 v4.0

Parameters

TInt aCmdThe commandid
const TDesC8 & aBufCommand data
TInt & aResultThe result of layout handle

IsDimmed()

IMPORT_C TBoolIsDimmed()

Get PENINPUT UI dim status

Since
S60 v4.0

IsForeground()

IMPORT_C TBoolIsForeground()

Test whether this session is the forground application session

Since
S60 V4.0

IsVisible()

IMPORT_C TBoolIsVisible()

Get PENINPUT UI visibility

Since
S60 v4.0

LoseForeground()

IMPORT_C voidLoseForeground()

Indicates current client lost foregound.

Since
S60 V5.0

PenSupportLanguagesL(RArray< TInt > &)

IMPORT_C voidPenSupportLanguagesL(RArray< TInt > &aLanguageLists)

Return all supporing touch input languages

Since
S60 V4.0

Parameters

RArray< TInt > & aLanguageListsA reference to a client owned array which will be filled with supporting languages.

PreferredUiMode()

IMPORT_C TPluginInputModePreferredUiMode()

RemovePenUiActivationHandler()

IMPORT_C voidRemovePenUiActivationHandler()

Remove all pen input UI activation observer

Since
S60 V4.0

RemovePenUiActivationHandler(MPenUiActivationHandler *)

IMPORT_C voidRemovePenUiActivationHandler(MPenUiActivationHandler *aHandler)

Remove a pen input UI activation observer

Since
S60 V5.0

Parameters

MPenUiActivationHandler * aHandler

RemovePeninputServerObserver()

IMPORT_C voidRemovePeninputServerObserver()

Remove all pen input observer

Since
S60 V4.0

RemovePeninputServerObserver(MPeninputServerEventHandler *)

IMPORT_C voidRemovePeninputServerObserver(MPeninputServerEventHandler *aObserver)

Remove pen input observer

Since
S60 V4.0

Parameters

MPeninputServerEventHandler * aObserverThe server observer to be remvoed

ResourceChanged(TInt)

IMPORT_C voidResourceChanged(TIntaType)

Called when resource changed, e.g, screen size changed. To inform layout that resource change event.

Since
S60 v4.0

Parameters

TInt aType

ServerEventDataNum()

IMPORT_C TIntServerEventDataNum()

Get current pended server event number

Since
S60 V4.0

SetAutoOpen(TBool)

IMPORT_C voidSetAutoOpen(TBoolaFlag)

Parameters

TBool aFlag

SetDataQueryPopped(TBool)

IMPORT_C voidSetDataQueryPopped(TBoolaFlag)

Parameters

TBool aFlag

SetDisabledLayout(TInt)

IMPORT_C voidSetDisabledLayout(TIntaLayouts)

Parameters

TInt aLayouts

SetDisplayMode(TDisplayMode, TDisplayMode)

IMPORT_C voidSetDisplayMode(TDisplayModeaDisplayMode,
TDisplayModeaMaskDisplayMode
)

Parameters

TDisplayMode aDisplayMode
TDisplayMode aMaskDisplayMode

SetEditorPriority(TInt)

IMPORT_C voidSetEditorPriority(TIntaFlag)

Parameters

TInt aFlag

SetForeground(TBool)

IMPORT_C TBoolSetForeground(TBoolaMustConnectFlag)

Set foreground application session. Only foreground app session can change the pen input UI attribute. Such command from other session will be discarded by server.

Since
S60 V4.0

Parameters

TBool aMustConnectFlagIf ETrue, the set will always success. If EFalse, operation depends on whether current app is the foreground application.

SetGlobalNotes(TBool)

IMPORT_C voidSetGlobalNotes(TBoolaFlag)

Parameters

TBool aFlag

SetInputLanguage(TInt)

IMPORT_C TIntSetInputLanguage(TIntaLanguage)

Set Input Language Id

Since
S60 v4.0

Parameters

TInt aLanguageThe input lanuage Id

SetInternalPopUp(TBool)

IMPORT_C voidSetInternalPopUp(TBoolaFlag)

Parameters

TBool aFlag

SetPreferredUiMode(TPluginInputMode)

IMPORT_C voidSetPreferredUiMode(TPluginInputModeaMode)

Parameters

TPluginInputMode aMode

SetResourceChange(TBool)

IMPORT_C voidSetResourceChange(TBoolaFlag)

Parameters

TBool aFlag

SetUiLayoutId(TUid)

IMPORT_C TIntSetUiLayoutId(TUidaId)

Set UI layout id. It will create the UI by the Id

Since
S60 v4.0

Parameters

TUid aIdThe layout Id

SetUiLayoutId(TUid, const TDesC8 &)

IMPORT_C TIntSetUiLayoutId(TUidaId,
const TDesC8 &aData
)

Set UI layout id

Since
S60 v4.0

Parameters

TUid aIdThe layout Id
const TDesC8 & aDataThe data associated with the layout creation

SetUiLayoutPos(const TPoint &)

IMPORT_C TIntSetUiLayoutPos(const TPoint &aPos)

Set UI layout position

Since
S60 v4.0

Parameters

const TPoint & aPosThe layout position

SupportInputMode(TInt)

IMPORT_C TIntSupportInputMode(TIntaLanguage)

Get supported input mode

Parameters

TInt aLanguage

UiLayoutPos()

IMPORT_C TPointUiLayoutPos()

get UI layout position

Since
S60 v4.0

UiLayoutSize()

IMPORT_C TSizeUiLayoutSize()

get UI layout size

Since
S60 v4.0

UpdateAppInfo(const TDesC &, TPeninputAppInfo)

IMPORT_C voidUpdateAppInfo(const TDesC &aInfo,
TPeninputAppInfoaType
)

Parameters

const TDesC & aInfo
TPeninputAppInfo aType

Version()

IMPORT_C TVersionVersion()const

Returns the version information of the server.

Since
S60 v4.0

Member Data Documentation

RPeninputServerImpl * iSingletonServer

RPeninputServerImpl *iSingletonServer[private]

The singleton client to the input server