KWin
Loading...
Searching...
No Matches
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
12
13namespace KWin
14{
15class DataControlSourceV1InterfacePrivate;
16
23{
24 Q_OBJECT
25
26public:
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
37private:
39 explicit DataControlSourceV1Interface(DataControlDeviceManagerV1Interface *parent, ::wl_resource *resource);
40
41 std::unique_ptr<DataControlSourceV1InterfacePrivate> d;
42};
43
44}
45
The AbstractDataSource class abstracts the data that can be transferred to another client.
Q_DECLARE_METATYPE(KWin::SwitchEvent::State)