kwin/src/wayland/datadevicemanager_interface.h
Vlad Zahorodnii 2af2ba6d4c Use common doxygen comment terminator style
In plasma code, it's more common to see `/** ... */` doxygen comments
rather than `/** ... **/`.

This change fixes up doxygen comment terminators to prevent inconsistency
issues.
2021-03-23 08:14:02 +00:00

54 lines
1.3 KiB
C++

/*
SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
SPDX-FileCopyrightText: 2020 David Edmundson <davidedmundson@kde.org>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#pragma once
#include <QObject>
#include <KWaylandServer/kwaylandserver_export.h>
#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<DataDeviceManagerInterfacePrivate> d;
};
}
Q_DECLARE_OPERATORS_FOR_FLAGS(KWaylandServer::DataDeviceManagerInterface::DnDActions)