2
#include "inputmethod.h"
9
QStringList languages ;
10
QSet<MInputMethod::HandlerState> supportedStates ;
12
this->name = "cuteinputmethod" ;
13
this->languages << "en" << "zh" << "en_GB" << "en_US" << "zh_CN" ;
14
this->supportedStates << MInputMethod::Hardware ;
15
this->supportedStates << MInputMethod::OnScreen ;
19
Plugin::Plugin() : d_ptr( new PluginPrivate ) {
20
//qmlRegisterUncreatableType<inputmethod::InputMethod> ( "me.meego.inputmethod", 1, 0, "InputMethod", "There's only one controller and it is in the C++ side" ) ;
23
Plugin::~Plugin() { delete this->d_ptr ; }
25
QString Plugin::name() const {
30
QStringList Plugin::languages() const {
35
MAbstractInputMethod* Plugin::createInputMethod( MAbstractInputMethodHost *host, QWidget *mainWindow ) {
36
return new inputmethod::InputMethod( host, mainWindow ) ;
39
MAbstractInputMethodSettings* Plugin::createInputMethodSettings() {
43
QSet<MInputMethod::HandlerState> Plugin::supportedStates() const {
45
return d->supportedStates ;
50
Q_EXPORT_PLUGIN2( inputmethod, plugin::Plugin )