/* SPDX-FileCopyrightText: 2014 Martin Gräßlin SPDX-FileCopyrightText: 2020 David Edmundson SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef WAYLAND_SERVER_DATA_DEVICE_MANAGER_INTERFACE_H #define WAYLAND_SERVER_DATA_DEVICE_MANAGER_INTERFACE_H #include #include #include "datadevice_interface.h" namespace KWaylandServer { class Display; class DataSourceInterface; class DataDeviceManagerInterfacePrivate; /** * @brief Represents the Global for wl_data_device_manager interface. * **/ class KWAYLANDSERVER_EXPORT DataDeviceManagerInterface : public QObject { Q_OBJECT public: explicit DataDeviceManagerInterface(Display *display, QObject *parent = nullptr); ~DataDeviceManagerInterface() override; /** * Drag and Drop actions supported by the DataSourceInterface. **/ enum class DnDAction { None = 0, Copy = 1 << 0, Move = 1 << 1, Ask = 1 << 2 }; Q_DECLARE_FLAGS(DnDActions, DnDAction) Q_SIGNALS: void dataSourceCreated(KWaylandServer::DataSourceInterface*); void dataDeviceCreated(KWaylandServer::DataDeviceInterface*); private: QScopedPointer d; }; } Q_DECLARE_OPERATORS_FOR_FLAGS(KWaylandServer::DataDeviceManagerInterface::DnDActions) #endif