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
22QT_BEGIN_NAMESPACE
23
24
25class QPlatformInputContext;
26
27#define QPlatformInputContextFactoryInterface_iid "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1"
28
29class Q_GUI_EXPORT QPlatformInputContextPlugin : public QObject
30{
31 Q_OBJECT
32public:
33 explicit QPlatformInputContextPlugin(QObject *parent = nullptr);
34 ~QPlatformInputContextPlugin();
35
36 virtual QPlatformInputContext *create(const QString &key, const QStringList &paramList) = 0;
37};
38
39QT_END_NAMESPACE
40
41#endif // QPLATFORMINPUTCONTEXTPLUGIN_H
42

source code of qtbase/src/gui/kernel/qplatforminputcontextplugin_p.h