KWaylandServer

datacontroloffer_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 "datacontroldevicemanager_v1_interface.h"
13 
14 struct wl_resource;
15 
16 namespace KWaylandServer
17 {
18 class AbstractDataSource;
19 class DataControlDeviceV1Interface;
20 class DataControlSourceV1Interface;
21 class DataControlOfferV1InterfacePrivate;
22 
23 /**
24  * The DataControlOfferV1Interface extension represents a piece of data offered for transfer.
25  *
26  * DataControlOfferV1Interface corresponds to the Wayland interface @c zwlr_data_control_offer_v1.
27  */
28 class KWAYLANDSERVER_EXPORT DataControlOfferV1Interface : public QObject
29 {
30  Q_OBJECT
31 
32 public:
33  ~DataControlOfferV1Interface() override;
34 
35  void sendAllOffers();
36  wl_resource *resource() const;
37 
38 private:
39  friend class DataControlDeviceV1InterfacePrivate;
40  explicit DataControlOfferV1Interface(AbstractDataSource *source, wl_resource *resource);
41 
43 };
44 
45 }
46 
The AbstractDataSource class abstracts the data that can be transferred to another client...
The DataControlOfferV1Interface extension represents a piece of data offered for transfer.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 23:08:43 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.