Debian Codegraph @

src/plugins/platforms/wayland/hardwareintegration/qwaylandserverbufferintegrationfactory.cpp

raw
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 "qwaylandserverbufferintegrationfactory_p.h"
5 #include "qwaylandserverbufferintegrationplugin_p.h"
6
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, qwsbifLoader,
16 (QWaylandServerBufferIntegrationFactoryInterface_iid, QLatin1String("/wayland-graphics-integration-client"), Qt::CaseInsensitive))
17
18 QStringList QWaylandServerBufferIntegrationFactory::keys()
19 {
20 return qwsbifLoader->keyMap().values();
21 }
22
23 QWaylandServerBufferIntegration *QWaylandServerBufferIntegrationFactory::create(const QString &name, const QStringList &args)
24 {
25 return qLoadPlugin<QWaylandServerBufferIntegration, QWaylandServerBufferIntegrationPlugin>(qwsbifLoader(), name, args);
26 }
27
28 }
29
30 QT_END_NAMESPACE