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
4
#include "
qwaylandshellintegrationfactory_p.h
"
5
#include "
qwaylandshellintegrationplugin_p.h
"
6
#include "
qwaylandshellintegration_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
, qwsifLoader,
16
(
QWaylandShellIntegrationFactoryInterface_iid
,
QLatin1String
(
"/wayland-shell-integration"
),
Qt::CaseInsensitive
))
17
18
QStringList
QWaylandShellIntegrationFactory::keys
()
19
{
20
return
qwsifLoader->keyMap().values();
21
}
22
23
QWaylandShellIntegration
*
QWaylandShellIntegrationFactory::create
(
const
QString
&
name
,
QWaylandDisplay
*
display
,
const
QStringList
&
args
)
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
36
QT_END_NAMESPACE
QFactoryLoader
Definition
qfactoryloader_p.h:62
QStringList
\inmodule QtCore
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QtWaylandClient::QWaylandDisplay
Definition
qwaylanddisplay_p.h:97
QtWaylandClient::QWaylandShellIntegrationFactory::keys
static QStringList keys()
QtWaylandClient::QWaylandShellIntegrationFactory::create
static QWaylandShellIntegration * create(const QString &name, QWaylandDisplay *display, const QStringList &args=QStringList())
Definition
qwaylandshellintegrationfactory.cpp:23
QtWaylandClient::QWaylandShellIntegration
Definition
qwaylandshellintegration_p.h:40
display
struct wl_display * display
Definition
linuxdmabuf.h:41
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
QtWaylandClient
Definition
qwaylandclientextension.h:15
Qt::CaseInsensitive
@ CaseInsensitive
Definition
qnamespace.h:1262
Q_GLOBAL_STATIC_WITH_ARGS
#define Q_GLOBAL_STATIC_WITH_ARGS(TYPE, NAME, ARGS)
Definition
qglobalstatic.h:109
name
GLuint name
Definition
qopengles2ext.h:156
QLatin1String
QLatin1StringView QLatin1String
Definition
qstringfwd.h:31
qwaylandshellintegration_p.h
qwaylandshellintegrationfactory_p.h
qwaylandshellintegrationplugin_p.h
QWaylandShellIntegrationFactoryInterface_iid
#define QWaylandShellIntegrationFactoryInterface_iid
Definition
qwaylandshellintegrationplugin_p.h:31
args
QJSValueList args
Definition
src_script_qjsengine.cpp:12
qtwayland
src
client
shellintegration
qwaylandshellintegrationfactory.cpp
Generated by
1.10.0