KWin
Loading...
Searching...
No Matches
datacontroloffer_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 <QObject>
11
13
14struct wl_resource;
15
16namespace KWin
17{
18class AbstractDataSource;
19class DataControlDeviceV1Interface;
20class DataControlSourceV1Interface;
21class DataControlOfferV1InterfacePrivate;
22
28class KWIN_EXPORT DataControlOfferV1Interface : public QObject
29{
30 Q_OBJECT
31
32public:
34
35 void sendAllOffers();
36 wl_resource *resource() const;
37
38private:
40 explicit DataControlOfferV1Interface(AbstractDataSource *source, wl_resource *resource);
41
42 std::unique_ptr<DataControlOfferV1InterfacePrivate> d;
43};
44
45}
46
The AbstractDataSource class abstracts the data that can be transferred to another client.
Q_DECLARE_METATYPE(KWin::SwitchEvent::State)