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
qwaylandclipboard_p.h
Go to the documentation of this file.
1
// Copyright (C) 2018 The Qt Company 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
#
ifndef
QWAYLANDCLIPBOARD_H
6
#
define
QWAYLANDCLIPBOARD_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
qpa
/
qplatformclipboard
.
h
>
20
#
include
<
QtCore
/
QVariant
>
21
#
include
<
QtCore
/
QMimeData
>
22
23
#
include
<
QtWaylandClient
/
qtwaylandclientglobal
.
h
>
24
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
25
26
QT_REQUIRE_CONFIG
(
clipboard
);
27
28
QT_BEGIN_NAMESPACE
29
30
namespace
QtWaylandClient
{
31
32
class
QWaylandDisplay;
33
34
class
Q_WAYLANDCLIENT_EXPORT
QWaylandClipboard
:
public
QPlatformClipboard
35
{
36
public
:
37
QWaylandClipboard
(
QWaylandDisplay
*
display
);
38
39
~
QWaylandClipboard
()
override
;
40
41
QMimeData
*
mimeData
(
QClipboard
::
Mode
mode
=
QClipboard
::
Clipboard
)
override
;
42
void
setMimeData
(
QMimeData
*
data
,
QClipboard
::
Mode
mode
=
QClipboard
::
Clipboard
)
override
;
43
bool
supportsMode
(
QClipboard
::
Mode
mode
)
const
override
;
44
bool
ownsMode
(
QClipboard
::
Mode
mode
)
const
override
;
45
46
private
:
47
QWaylandDisplay
*
mDisplay
=
nullptr
;
48
QMimeData
m_emptyData
;
49
QMimeData
*
m_clientClipboard
[2];
50
};
51
52
}
53
54
QT_END_NAMESPACE
55
56
#
endif
// QWAYLANDCLIPBOARD_H
QtWaylandClient::QWaylandClipboard
Definition
qwaylandclipboard_p.h:35
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
QtWaylandClient
Definition
qwaylandclientextension.h:16
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(clipboard)
qtbase
src
plugins
platforms
wayland
qwaylandclipboard_p.h
Generated on
for Qt by
1.16.1