KWin
Loading...
Searching...
No Matches
src
wayland
primaryselectionsource_v1.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2020 David Edmundson <davidedmundson@kde.org>
3
4
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5
*/
6
#pragma once
7
8
#include "kwin_export.h"
9
10
#include "
abstract_data_source.h
"
11
#include "
primaryselectiondevicemanager_v1.h
"
12
13
namespace
KWin
14
{
15
class
PrimarySelectionSourceV1InterfacePrivate;
16
21
class
KWIN_EXPORT
PrimarySelectionSourceV1Interface
:
public
AbstractDataSource
22
{
23
Q_OBJECT
24
public
:
25
~PrimarySelectionSourceV1Interface
()
override
;
26
27
void
requestData(
const
QString &mimeType, qint32 fd)
override
;
28
void
cancel()
override
;
29
30
QStringList mimeTypes()
const override
;
31
32
static
PrimarySelectionSourceV1Interface
*get(wl_resource *native);
33
wl_client *client()
const override
;
34
35
private
:
36
friend
class
PrimarySelectionDeviceManagerV1InterfacePrivate
;
37
explicit
PrimarySelectionSourceV1Interface
(::wl_resource *resource);
38
39
std::unique_ptr<PrimarySelectionSourceV1InterfacePrivate> d;
40
};
41
42
}
43
44
Q_DECLARE_METATYPE
(
KWin::PrimarySelectionSourceV1Interface
*)
abstract_data_source.h
KWin::AbstractDataSource
The AbstractDataSource class abstracts the data that can be transferred to another client.
Definition
abstract_data_source.h:29
KWin::PrimarySelectionDeviceManagerV1InterfacePrivate
Definition
primaryselectiondevicemanager_v1.cpp:19
KWin::PrimarySelectionSourceV1Interface
Represents the Resource for the zwp_primary_selection_source_v1 interface. Lifespan is mapped to the ...
Definition
primaryselectionsource_v1.h:22
KWin::PrimarySelectionSourceV1Interface::~PrimarySelectionSourceV1Interface
~PrimarySelectionSourceV1Interface() override
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(KWin::SwitchEvent::State)
KWin
Definition
activation_test.cpp:20
primaryselectiondevicemanager_v1.h
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0