KWin
Loading...
Searching...
No Matches
primaryselectiondevice_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
13struct wl_resource;
14struct wl_client;
15
16namespace KWin
17{
18class AbstractDataSource;
19class PrimarySelectionDeviceManagerV1Interface;
20class PrimarySelectionOfferV1Interface;
21class PrimarySelectionSourceV1Interface;
22class SeatInterface;
23class SurfaceInterface;
24class PrimarySelectionDeviceV1InterfacePrivate;
25
33class KWIN_EXPORT PrimarySelectionDeviceV1Interface : public QObject
34{
35 Q_OBJECT
36public:
38
39 SeatInterface *seat() const;
40
41 PrimarySelectionSourceV1Interface *selection() const;
42
43 void sendSelection(AbstractDataSource *other);
44
45 wl_client *client() const;
46
47Q_SIGNALS:
49
50private:
52 explicit PrimarySelectionDeviceV1Interface(SeatInterface *seat, wl_resource *resource);
53
54 std::unique_ptr<PrimarySelectionDeviceV1InterfacePrivate> d;
55};
56
57}
58
The AbstractDataSource class abstracts the data that can be transferred to another client.
Represents the Resource for the wl_data_device interface.
void selectionChanged(KWin::PrimarySelectionSourceV1Interface *)
Represents the Resource for the zwp_primary_selection_source_v1 interface. Lifespan is mapped to the ...
Represents a Seat on the Wayland Display.
Definition seat.h:134
Q_DECLARE_METATYPE(KWin::SwitchEvent::State)