KWaylandServer

primaryselectiondevice_v1_interface.h
1 /*
2  SPDX-FileCopyrightText: 2020 David Edmundson <[email protected]>
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 <QObject>
9 
10 #include <KWaylandServer/kwaylandserver_export.h>
11 
12 struct wl_resource;
13 struct wl_client;
14 
15 namespace KWaylandServer
16 {
17 class AbstractDataSource;
18 class PrimarySelectionDeviceManagerV1Interface;
19 class PrimarySelectionOfferV1Interface;
20 class PrimarySelectionSourceV1Interface;
21 class SeatInterface;
22 class SurfaceInterface;
23 class PrimarySelectionDeviceV1InterfacePrivate;
24 
25 /**
26  * @brief Represents the Resource for the wl_data_device interface.
27  *
28  * @see SeatInterface
29  * @see PrimarySelectionSourceInterface
30  * Lifespan is mapped to the underlying object
31  */
32 class KWAYLANDSERVER_EXPORT PrimarySelectionDeviceV1Interface : public QObject
33 {
34  Q_OBJECT
35 public:
37 
38  SeatInterface *seat() const;
39 
40  PrimarySelectionSourceV1Interface *selection() const;
41 
42  void sendSelection(AbstractDataSource *other);
43  void sendClearSelection();
44 
45  wl_client *client() const;
46 
47 Q_SIGNALS:
49  void selectionCleared();
50 
51 private:
52  friend class PrimarySelectionDeviceManagerV1InterfacePrivate;
53  explicit PrimarySelectionDeviceV1Interface(SeatInterface *seat, wl_resource *resource);
54 
56 };
57 
58 }
59 
The AbstractDataSource class abstracts the data that can be transferred to another client...
Represents a Seat on the Wayland Display.
Represents the Resource for the wl_data_device interface.
Represents the Resource for the zwp_primary_selection_source_v1 interface.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 23:08:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.