2020-05-12 11:26:57 +00:00
|
|
|
/*
|
|
|
|
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
|
|
|
|
*/
|
|
|
|
#ifndef WAYLAND_SERVER_DATA_CONTROL_DEVICE_MANAGER_INTERFACE_H
|
|
|
|
#define WAYLAND_SERVER_DATA_CONTROL_DEVICE_MANAGER_INTERFACE_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include <KWaylandServer/kwaylandserver_export.h>
|
|
|
|
|
|
|
|
namespace KWaylandServer
|
|
|
|
{
|
|
|
|
|
|
|
|
class Display;
|
2020-05-28 07:25:56 +00:00
|
|
|
class DataControlSourceV1Interface;
|
|
|
|
class DataControlDeviceManagerV1InterfacePrivate;
|
|
|
|
class DataControlDeviceV1Interface;
|
2020-05-12 11:26:57 +00:00
|
|
|
|
|
|
|
/**
|
2020-05-28 07:44:46 +00:00
|
|
|
* The DataControlDeviceManagerV1Interface provides a way for privileged clients such as clipboard
|
|
|
|
* managers to manage the current selection.
|
2020-05-12 11:26:57 +00:00
|
|
|
*
|
2020-05-28 07:44:46 +00:00
|
|
|
* DataControlDeviceManagerV1Interface corresponds to the Wayland interface @c zwlr_data_control_manager_v1.
|
|
|
|
*/
|
2020-05-28 07:25:56 +00:00
|
|
|
class KWAYLANDSERVER_EXPORT DataControlDeviceManagerV1Interface : public QObject
|
2020-05-12 11:26:57 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2020-05-28 07:21:32 +00:00
|
|
|
|
2020-05-12 11:26:57 +00:00
|
|
|
public:
|
2020-12-09 20:13:19 +00:00
|
|
|
explicit DataControlDeviceManagerV1Interface(Display *display, QObject *parent = nullptr);
|
2020-05-28 07:25:56 +00:00
|
|
|
~DataControlDeviceManagerV1Interface() override;
|
2020-05-12 11:26:57 +00:00
|
|
|
|
|
|
|
Q_SIGNALS:
|
2020-05-28 07:25:56 +00:00
|
|
|
void dataSourceCreated(KWaylandServer::DataControlSourceV1Interface *dataSource);
|
|
|
|
void dataDeviceCreated(KWaylandServer::DataControlDeviceV1Interface *dataDevice);
|
2020-05-12 11:26:57 +00:00
|
|
|
|
|
|
|
private:
|
2020-05-28 07:25:56 +00:00
|
|
|
QScopedPointer<DataControlDeviceManagerV1InterfacePrivate> d;
|
2020-05-12 11:26:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|