KWaylandServer

datacontrolsource_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 "abstract_data_source.h"
9 
10 #include <KWaylandServer/kwaylandserver_export.h>
11 
12 #include "datacontroldevicemanager_v1_interface.h"
13 
14 namespace KWaylandServer
15 {
16 class DataControlSourceV1InterfacePrivate;
17 
18 /**
19  * The DataControlSourceV1Interface class represents the source side in a data transfer.
20  *
21  * DataControlSourceV1Interface corresponds to the wayland interface zwlr_data_control_source_v1.
22  */
23 class KWAYLANDSERVER_EXPORT DataControlSourceV1Interface : public AbstractDataSource
24 {
25  Q_OBJECT
26 
27 public:
28  ~DataControlSourceV1Interface() override;
29 
30  void requestData(const QString &mimeType, qint32 fd) override;
31  void cancel() override;
32 
33  QStringList mimeTypes() const override;
34  wl_client *client() const override;
35 
36  static DataControlSourceV1Interface *get(wl_resource *native);
37 
38 private:
39  friend class DataControlDeviceManagerV1InterfacePrivate;
40  explicit DataControlSourceV1Interface(DataControlDeviceManagerV1Interface *parent, ::wl_resource *resource);
41 
43 };
44 
45 }
46 
The AbstractDataSource class abstracts the data that can be transferred to another client...
The DataControlSourceV1Interface class represents the source side in a data transfer.
The DataControlDeviceManagerV1Interface provides a way for privileged clients such as clipboard manag...
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 23 2021 23:08:27 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.