1 | // Copyright (C) 2016 LG Electronics 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 | #include "qwaylandinputdeviceintegrationfactory_p.h" |
5 | #include "qwaylandinputdeviceintegrationplugin_p.h" |
6 | #include "qwaylandinputdeviceintegration_p.h" |
7 | #include <QtCore/private/qfactoryloader_p.h> |
8 | #include <QtCore/QCoreApplication> |
9 | #include <QtCore/QDir> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | namespace QtWaylandClient { |
14 | |
15 | Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, qwidfiLoader, |
16 | (QWaylandInputDeviceIntegrationFactoryInterface_iid, QLatin1String("/wayland-inputdevice-integration"), Qt::CaseInsensitive)) |
17 | |
18 | QStringList QWaylandInputDeviceIntegrationFactory::keys() |
19 | { |
20 | return qwidfiLoader->keyMap().values(); |
21 | } |
22 | |
23 | QWaylandInputDeviceIntegration *QWaylandInputDeviceIntegrationFactory::create(const QString &name, const QStringList &args) |
24 | { |
25 | return qLoadPlugin<QWaylandInputDeviceIntegration, QWaylandInputDeviceIntegrationPlugin>(loader: qwidfiLoader(), key: name, args); |
26 | } |
27 | |
28 | } |
29 | |
30 | QT_END_NAMESPACE |
31 |