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
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
QPlatformGraphicsBufferHelper
\inmodule QtGui
QtWaylandClient
Definition
qwaylandclientextension.h:15
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:15
QWaylandShellIntegrationFactoryInterface_iid
#define QWaylandShellIntegrationFactoryInterface_iid
Definition
qwaylandshellintegrationplugin_p.h:31
qtbase
src
plugins
platforms
wayland
shellintegration
qwaylandshellintegrationfactory.cpp
Generated on
for Qt by
1.14.0