Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
// Qt-Security score:significant reason:default
4
5
#
include
"qwaylandshellintegrationfactory_p.h"
6
#
include
"qwaylandshellintegrationplugin_p.h"
7
#
include
"qwaylandshellintegration_p.h"
8
#
include
<
QtCore
/
private
/
qfactoryloader_p
.
h
>
9
#
include
<
QtCore
/
QCoreApplication
>
10
#
include
<
QtCore
/
QDir
>
11
12
QT_BEGIN_NAMESPACE
13
14
namespace
QtWaylandClient
{
15
16
Q_GLOBAL_STATIC_WITH_ARGS
(
QFactoryLoader
,
qwsifLoader
,
17
(
QWaylandShellIntegrationFactoryInterface_iid
,
QLatin1String
(
"/wayland-shell-integration"
),
Qt
::
CaseInsensitive
))
18
19
QStringList
QWaylandShellIntegrationFactory
::
keys
()
20
{
21
return
qwsifLoader
->
keyMap
().
values
();
22
}
23
24
QWaylandShellIntegration
*
QWaylandShellIntegrationFactory
::
create
(
const
QString
&
name
,
QWaylandDisplay
*
display
,
const
QStringList
&
args
)
25
{
26
std
::
unique_ptr
<
QWaylandShellIntegration
>
integration
;
27
integration
.
reset
(
qLoadPlugin
<
QWaylandShellIntegration
,
QWaylandShellIntegrationPlugin
>(
qwsifLoader
(),
name
,
args
));
28
29
if
(
integration
&& !
integration
->
initialize
(
display
))
30
return
nullptr
;
31
32
return
integration
.
release
();
33
}
34
35
}
36
37
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
QtWaylandClient
Definition
qwaylandclientextension.h:16
QtWaylandClient::Q_GLOBAL_STATIC_WITH_ARGS
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, qwcbifLoader,(QWaylandClientBufferIntegrationFactoryInterface_iid, QLatin1String("/wayland-graphics-integration-client"), Qt::CaseInsensitive)) QStringList QWaylandClientBufferIntegrationFactory
Definition
qwaylandclientbufferintegrationfactory.cpp:16
QWaylandShellIntegrationFactoryInterface_iid
#define QWaylandShellIntegrationFactoryInterface_iid
Definition
qwaylandshellintegrationplugin_p.h:32
qtbase
src
plugins
platforms
wayland
shellintegration
qwaylandshellintegrationfactory.cpp
Generated on
for Qt by
1.16.1