KWaylandServer

primaryselectionoffer_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 #include "primaryselectiondevicemanager_v1_interface.h"
13 
14 struct wl_resource;
15 namespace KWaylandServer
16 {
17 class AbstractDataSource;
18 class PrimarySelectionDeviceV1Interface;
19 class PrimarySelectionSourceV1Interface;
20 class PrimarySelectionOfferV1InterfacePrivate;
21 
22 /**
23  * @brief Represents the Resource for the wl_data_offer interface.
24  * Lifespan is mapped to the underlying object
25  */
26 class KWAYLANDSERVER_EXPORT PrimarySelectionOfferV1Interface : public QObject
27 {
28  Q_OBJECT
29 public:
31 
32  void sendAllOffers();
33  wl_resource *resource() const;
34 
35 private:
36  friend class PrimarySelectionDeviceV1InterfacePrivate;
37  explicit PrimarySelectionOfferV1Interface(AbstractDataSource *source, wl_resource *resource);
38 
40 };
41 
42 }
43 
The AbstractDataSource class abstracts the data that can be transferred to another client...
Represents the Resource for the wl_data_offer interface.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 23 2021 23:08:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.