KWin
Loading...
Searching...
No Matches
primaryselectionoffer_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#include <memory>
12
14
15struct wl_resource;
16namespace KWin
17{
18class AbstractDataSource;
19class PrimarySelectionDeviceV1Interface;
20class PrimarySelectionSourceV1Interface;
21class PrimarySelectionOfferV1InterfacePrivate;
22
27class KWIN_EXPORT PrimarySelectionOfferV1Interface : public QObject
28{
29 Q_OBJECT
30public:
32
33 void sendAllOffers();
34 wl_resource *resource() const;
35
36private:
38 explicit PrimarySelectionOfferV1Interface(AbstractDataSource *source, wl_resource *resource);
39
40 std::unique_ptr<PrimarySelectionOfferV1InterfacePrivate> d;
41};
42
43}
44
The AbstractDataSource class abstracts the data that can be transferred to another client.
Represents the Resource for the wl_data_offer interface. Lifespan is mapped to the underlying object.
Q_DECLARE_METATYPE(KWin::SwitchEvent::State)