Home · API Reference · Modules

MInputMethodPlugin Class Reference
[Plugin API]

An interface class for all input method plugins. More...

List of all members.

Public Member Functions

virtual QString name () const =0
virtual QStringList languages () const =0
virtual MAbstractInputMethodcreateInputMethod (MAbstractInputMethodHost *host, QWidget *mainWindow)=0
virtual
MAbstractInputMethodSettings
createInputMethodSettings ()=0
virtual QSet
< MInputMethod::HandlerState > 
supportedStates () const =0


Detailed Description

An interface class for all input method plugins.

To create a virtual keyboard / input method plugin, re-implement the virtual functions and instantiate the input method implementation in the createInputMethod() method. Make sure your plugin links against the m im framework library as well.


Member Function Documentation

virtual QString MInputMethodPlugin::name (  )  const [pure virtual]

Implement this function to return the identifier for this input method.

virtual QStringList MInputMethodPlugin::languages (  )  const [pure virtual]

Implement this function to return the languages supported for this virtual keyboard.

virtual MAbstractInputMethod* MInputMethodPlugin::createInputMethod ( MAbstractInputMethodHost host,
QWidget *  mainWindow 
) [pure virtual]

Creates and returns the MAbstractInputMethod object for this plugin. This function will be only called once and the allocated resources will be owned by the input method server.

virtual MAbstractInputMethodSettings* MInputMethodPlugin::createInputMethodSettings (  )  [pure virtual]

Creates and returns the MAbstractInputMethodSettings object for this plugin. This function will be only called once and the allocated resources will be owned by the input method server.

virtual QSet<MInputMethod::HandlerState> MInputMethodPlugin::supportedStates (  )  const [pure virtual]

Returns set of states which could be handled by this plugin.

WARNING: If result is empty then this plugin will not be loaded during startup.


Copyright © 2011 Nokia Corporation
Maliit