1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QPLATFORMINPUTCONTEXTPLUGIN_H |
5 | #define QPLATFORMINPUTCONTEXTPLUGIN_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <QtGui/private/qtguiglobal_p.h> |
19 | #include <QtCore/qplugin.h> |
20 | #include <QtCore/qfactoryinterface.h> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | |
25 | class QPlatformInputContext; |
26 | |
27 | #define QPlatformInputContextFactoryInterface_iid "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1" |
28 | |
29 | class Q_GUI_EXPORT QPlatformInputContextPlugin : public QObject |
30 | { |
31 | Q_OBJECT |
32 | public: |
33 | explicit QPlatformInputContextPlugin(QObject *parent = nullptr); |
34 | ~QPlatformInputContextPlugin(); |
35 | |
36 | virtual QPlatformInputContext *create(const QString &key, const QStringList ¶mList) = 0; |
37 | }; |
38 | |
39 | QT_END_NAMESPACE |
40 | |
41 | #endif // QPLATFORMINPUTCONTEXTPLUGIN_H |
42 | |