1 | // Copyright (C) 2018 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> |
---|---|
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 <QtWaylandClient/private/qwaylandshellintegrationplugin_p.h> |
5 | |
6 | #include "qwaylandfullscreenshellv1integration.h" |
7 | |
8 | QT_BEGIN_NAMESPACE |
9 | |
10 | namespace QtWaylandClient { |
11 | |
12 | class QWaylandFullScreenShellV1IntegrationPlugin : public QWaylandShellIntegrationPlugin |
13 | { |
14 | Q_OBJECT |
15 | Q_PLUGIN_METADATA(IID QWaylandShellIntegrationFactoryInterface_iid FILE "fullscreen-shell-v1.json") |
16 | public: |
17 | QWaylandShellIntegration *create(const QString &key, const QStringList ¶mList) override; |
18 | }; |
19 | |
20 | QWaylandShellIntegration *QWaylandFullScreenShellV1IntegrationPlugin::create(const QString &key, const QStringList ¶mList) |
21 | { |
22 | Q_UNUSED(paramList); |
23 | |
24 | if (key == QLatin1String("fullscreen-shell-v1")) |
25 | return new QWaylandFullScreenShellV1Integration(); |
26 | return nullptr; |
27 | } |
28 | |
29 | } // namespace QtWaylandClient |
30 | |
31 | QT_END_NAMESPACE |
32 | |
33 | #include "main.moc" |
34 |