Debian Codegraph @

src/qt5-im/hime-qt.h

raw
1 /*
2 * Copyright (C) 2020 The HIME team, Taiwan
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16 */
17
18 #ifndef HIME_QT5_PLUGIN_H
19 #define HIME_QT5_PLUGIN_H
20
21 #include <QtGui/qpa/qplatforminputcontextplugin_p.h>
22
23 #include "hime-imcontext-qt.h"
24 #include <QtCore/QStringList>
25
26 class QHimePlatformInputContextPlugin : public QPlatformInputContextPlugin {
27 Q_OBJECT
28 public:
29 Q_PLUGIN_METADATA (IID QPlatformInputContextFactoryInterface_iid FILE "hime.json")
30 QStringList keys () const;
31 QHimePlatformInputContext *create (const QString &system, const QStringList &paramList);
32 };
33
34 #endif /* HIME_QT5_PLUGIN_H */