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 | #include "qwaylandclientbufferintegrationfactory_p.h" |
5 | #include "qwaylandclientbufferintegrationplugin_p.h" |
6 | #include "qwaylandclientbufferintegration_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, qwcbifLoader, |
16 | (QWaylandClientBufferIntegrationFactoryInterface_iid, QLatin1String("/wayland-graphics-integration-client"), Qt::CaseInsensitive)) |
17 | |
18 | QStringList QWaylandClientBufferIntegrationFactory::keys() |
19 | { |
20 | return qwcbifLoader->keyMap().values(); |
21 | } |
22 | |
23 | QWaylandClientBufferIntegration *QWaylandClientBufferIntegrationFactory::create(const QString &name, const QStringList &args) |
24 | { |
25 | return qLoadPlugin<QWaylandClientBufferIntegration, QWaylandClientBufferIntegrationPlugin>(loader: qwcbifLoader(), key: name, args); |
26 | } |
27 | |
28 | } |
29 | |
30 | QT_END_NAMESPACE |
31 |