KWayland

dataoffer_interface.h
1 /*
2  SPDX-FileCopyrightText: 2014 Martin Gräßlin <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 #ifndef WAYLAND_SERVER_DATA_OFFER_INTERFACE_H
7 #define WAYLAND_SERVER_DATA_OFFER_INTERFACE_H
8 
9 #include <QObject>
10 
11 #include <KWayland/Server/kwaylandserver_export.h>
12 
13 #include "resource.h"
14 #include "datadevicemanager_interface.h"
15 
16 namespace KWayland
17 {
18 namespace Server
19 {
20 
21 class DataDeviceInterface;
22 class DataSourceInterface;
23 
28 class KWAYLANDSERVER_EXPORT DataOfferInterface : public Resource
29 {
30  Q_OBJECT
31 public:
32  virtual ~DataOfferInterface();
33 
34  void sendAllOffers();
35 
40  DataDeviceManagerInterface::DnDActions supportedDragAndDropActions() const;
41 
46  DataDeviceManagerInterface::DnDAction preferredDragAndDropAction() const;
47 
53  void dndAction(DataDeviceManagerInterface::DnDAction action);
54 
55 Q_SIGNALS:
60  void dragAndDropActionsChanged();
61 
62 private:
63  friend class DataDeviceInterface;
64  explicit DataOfferInterface(DataSourceInterface *source, DataDeviceInterface *parentInterface, wl_resource *parentResource);
65 
66  class Private;
67  Private *d_func() const;
68 };
69 
70 }
71 }
72 
73 Q_DECLARE_METATYPE(KWayland::Server::DataOfferInterface*)
74 
75 #endif
Represents the Resource for the wl_data_offer interface.
DataDeviceInterface allows clients to share data by copy-and-paste and drag-and-drop.
DnDAction
Drag and Drop actions supported by the DataSourceInterface.
Represents a bound Resource.
Definition: resource.h:32
Represents the Resource for the wl_data_source interface.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 22:48:17 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.