Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwaylandshellintegrationfactory.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 Jolla Ltd
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
7#include <QtCore/private/qfactoryloader_p.h>
8#include <QtCore/QCoreApplication>
9#include <QtCore/QDir>
10
12
13namespace QtWaylandClient {
14
17
19{
20 return qwsifLoader->keyMap().values();
21}
22
24{
25 std::unique_ptr<QWaylandShellIntegration> integration;
26 integration.reset(qLoadPlugin<QWaylandShellIntegration, QWaylandShellIntegrationPlugin>(qwsifLoader(), name, args));
27
28 if (integration && !integration->initialize(display))
29 return nullptr;
30
31 return integration.release();
32}
33
34}
35
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
static QWaylandShellIntegration * create(const QString &name, QWaylandDisplay *display, const QStringList &args=QStringList())
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.
@ CaseInsensitive
#define Q_GLOBAL_STATIC_WITH_ARGS(TYPE, NAME, ARGS)
GLuint name
QLatin1StringView QLatin1String
Definition qstringfwd.h:31
#define QWaylandShellIntegrationFactoryInterface_iid
QJSValueList args