KWaylandServer

datadevicemanager_interface.h
1 /*
2  SPDX-FileCopyrightText: 2014 Martin Gräßlin <[email protected]>
3  SPDX-FileCopyrightText: 2020 David Edmundson <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 */
7 #pragma once
8 
9 #include <QObject>
10 
11 #include "datadevice_interface.h"
12 #include <KWaylandServer/kwaylandserver_export.h>
13 
14 namespace KWaylandServer
15 {
16 class Display;
17 class DataSourceInterface;
18 class DataDeviceManagerInterfacePrivate;
19 
20 /**
21  * @brief Represents the Global for wl_data_device_manager interface.
22  *
23  */
24 class KWAYLANDSERVER_EXPORT DataDeviceManagerInterface : public QObject
25 {
26  Q_OBJECT
27 
28 public:
29  explicit DataDeviceManagerInterface(Display *display, QObject *parent = nullptr);
30  ~DataDeviceManagerInterface() override;
31 
32  /**
33  * Drag and Drop actions supported by the DataSourceInterface.
34  */
35  enum class DnDAction {
36  None = 0,
37  Copy = 1 << 0,
38  Move = 1 << 1,
39  Ask = 1 << 2,
40  };
41  Q_DECLARE_FLAGS(DnDActions, DnDAction)
42 
43 Q_SIGNALS:
44  void dataSourceCreated(KWaylandServer::DataSourceInterface *);
45  void dataDeviceCreated(KWaylandServer::DataDeviceInterface *);
46 
47 private:
49 };
50 
51 }
52 
53 Q_DECLARE_OPERATORS_FOR_FLAGS(KWaylandServer::DataDeviceManagerInterface::DnDActions)
Class holding the Wayland server display loop.
Definition: display.h:47
Represents the Global for wl_data_device_manager 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 the Resource for the wl_data_source interface.
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.