KWin
Loading...
Searching...
No Matches
src
wayland
datacontrolsource_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 "
datacontroldevicemanager_v1.h
"
12
13
namespace
KWin
14
{
15
class
DataControlSourceV1InterfacePrivate;
16
22
class
KWIN_EXPORT
DataControlSourceV1Interface
:
public
AbstractDataSource
23
{
24
Q_OBJECT
25
26
public
:
27
~DataControlSourceV1Interface
()
override
;
28
29
void
requestData(
const
QString &mimeType, qint32 fd)
override
;
30
void
cancel()
override
;
31
32
QStringList mimeTypes()
const override
;
33
wl_client *client()
const override
;
34
35
static
DataControlSourceV1Interface
*get(wl_resource *native);
36
37
private
:
38
friend
class
DataControlDeviceManagerV1InterfacePrivate
;
39
explicit
DataControlSourceV1Interface
(
DataControlDeviceManagerV1Interface
*parent, ::wl_resource *resource);
40
41
std::unique_ptr<DataControlSourceV1InterfacePrivate> d;
42
};
43
44
}
45
46
Q_DECLARE_METATYPE
(
KWin::DataControlSourceV1Interface
*)
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::DataControlDeviceManagerV1Interface
Definition
datacontroldevicemanager_v1.h:27
KWin::DataControlDeviceManagerV1InterfacePrivate
Definition
datacontroldevicemanager_v1.cpp:19
KWin::DataControlSourceV1Interface
Definition
datacontrolsource_v1.h:23
KWin::DataControlSourceV1Interface::~DataControlSourceV1Interface
~DataControlSourceV1Interface() override
datacontroldevicemanager_v1.h
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(KWin::SwitchEvent::State)
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0