KWayland

datadevicemanager_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_DEVICE_MANAGER_INTERFACE_H
7 #define WAYLAND_SERVER_DATA_DEVICE_MANAGER_INTERFACE_H
8 
9 #include <QObject>
10 
11 #include <KWayland/Server/kwaylandserver_export.h>
12 #include "global.h"
13 #include "datadevice_interface.h"
14 
15 namespace KWayland
16 {
17 namespace Server
18 {
19 
20 class Display;
21 class DataSourceInterface;
22 
27 class KWAYLANDSERVER_EXPORT DataDeviceManagerInterface : public Global
28 {
29  Q_OBJECT
30 public:
31  virtual ~DataDeviceManagerInterface();
32 
37  enum class DnDAction {
38  None = 0,
39  Copy = 1 << 0,
40  Move = 1 << 1,
41  Ask = 1 << 2
42  };
43  Q_DECLARE_FLAGS(DnDActions, DnDAction)
44 
45 Q_SIGNALS:
46  void dataSourceCreated(KWayland::Server::DataSourceInterface*);
47  void dataDeviceCreated(KWayland::Server::DataDeviceInterface*);
48 
49 private:
50  explicit DataDeviceManagerInterface(Display *display, QObject *parent = nullptr);
51  friend class Display;
52  class Private;
53 };
54 
55 }
56 }
57 
59 
60 #endif
DataDeviceInterface allows clients to share data by copy-and-paste and drag-and-drop.
Represents the Global for wl_data_device_manager interface.
Class holding the Wayland server display loop.
Definition: display.h:89
Base class for all Globals.
Definition: global.h:46
DnDAction
Drag and Drop actions supported by the DataSourceInterface.
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.