aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/t9writeinputmethod.h
diff options
context:
space:
mode:
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>2015-09-08 10:31:55 +0300
committerJarkko Koivikko <jarkko.koivikko@code-q.fi>2015-10-07 12:53:39 +0000
commit14be4edfcdc2fcaf23c70fbd6de8952c53702aba (patch)
tree3371cbef2dbfc20ca35839beb45d07debab95348 /src/virtualkeyboard/t9writeinputmethod.h
parent3c30498468b31cfc9e129e306643000e3257c4a4 (diff)
Add T9Write implementation of HandwritingInputMethod
This change adds T9Write implementation of HandwritingInputMethod. To use the T9Write, the contents of T9Write sdk must be extracted to srv/virtualkeyboard/3rdparty/t9write directory and the qmake command line must contain CONFIG+=t9write. Change-Id: Ib56d1d3dc553bb5d5677ab03e213dc8fed43ac68 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/virtualkeyboard/t9writeinputmethod.h')
-rw-r--r--src/virtualkeyboard/t9writeinputmethod.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/virtualkeyboard/t9writeinputmethod.h b/src/virtualkeyboard/t9writeinputmethod.h
new file mode 100644
index 00000000..2b3b3e21
--- /dev/null
+++ b/src/virtualkeyboard/t9writeinputmethod.h
@@ -0,0 +1,62 @@
+/******************************************************************************
+**
+** Copyright (C) 2015 The Qt Company Ltd
+** All rights reserved.
+** For any questions to The Qt Company, please use contact form at http://qt.io
+**
+** This file is part of the Qt Virtual Keyboard module.
+**
+** Licensees holding valid commercial license for Qt may use this file in
+** accordance with the Qt License Agreement provided with the Software
+** or, alternatively, in accordance with the terms contained in a written
+** agreement between you and The Qt Company.
+**
+** If you have questions regarding the use of this file, please use
+** contact form at http://qt.io
+**
+******************************************************************************/
+
+#ifndef T9WRITEINPUTMETHOD_H
+#define T9WRITEINPUTMETHOD_H
+
+#include "abstractinputmethod.h"
+
+class T9WriteInputMethodPrivate;
+
+class T9WriteInputMethod : public AbstractInputMethod
+{
+ Q_OBJECT
+ Q_DECLARE_PRIVATE(T9WriteInputMethod)
+
+public:
+ explicit T9WriteInputMethod(QObject *parent = 0);
+ ~T9WriteInputMethod();
+
+ QList<DeclarativeInputEngine::InputMode> inputModes(const QString &locale);
+ bool setInputMode(const QString &locale, DeclarativeInputEngine::InputMode inputMode);
+ bool setTextCase(DeclarativeInputEngine::TextCase textCase);
+
+ bool keyEvent(Qt::Key key, const QString &text, Qt::KeyboardModifiers modifiers);
+
+ void reset();
+ void update();
+
+ QList<DeclarativeSelectionListModel::Type> selectionLists();
+ int selectionListItemCount(DeclarativeSelectionListModel::Type type);
+ QVariant selectionListData(DeclarativeSelectionListModel::Type type, int index, int role);
+ void selectionListItemSelected(DeclarativeSelectionListModel::Type type, int index);
+
+ QList<DeclarativeInputEngine::PatternRecognitionMode> patternRecognitionModes() const;
+ DeclarativeTrace *traceBegin(int traceId, DeclarativeInputEngine::PatternRecognitionMode patternRecognitionMode,
+ const QVariantMap &traceCaptureDeviceInfo, const QVariantMap &traceScreenInfo);
+ bool traceEnd(DeclarativeTrace *trace);
+
+protected:
+ void timerEvent(QTimerEvent *timerEvent);
+
+protected slots:
+ void dictionaryLoadCompleted(const QString &fileUri, void *dictionary);
+ void resultsAvailable(const QVariantList &resultList);
+};
+
+#endif