2020-06-01 22:29:53 +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
|
|
|
|
*/
|
2021-03-10 16:08:30 +00:00
|
|
|
#pragma once
|
2020-06-01 22:29:53 +00:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include <KWaylandServer/kwaylandserver_export.h>
|
|
|
|
|
|
|
|
namespace KWaylandServer
|
|
|
|
{
|
|
|
|
|
|
|
|
class Display;
|
|
|
|
class PrimarySelectionSourceV1Interface;
|
|
|
|
class PrimarySelectionDeviceManagerV1InterfacePrivate;
|
|
|
|
class PrimarySelectionDeviceV1Interface;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Represents the Global for zwp_primary_selection_manager_v1 interface.
|
|
|
|
*
|
2021-03-16 08:17:36 +00:00
|
|
|
*/
|
2020-06-01 22:29:53 +00:00
|
|
|
class KWAYLANDSERVER_EXPORT PrimarySelectionDeviceManagerV1Interface : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2020-12-09 20:13:19 +00:00
|
|
|
|
2020-06-01 22:29:53 +00:00
|
|
|
public:
|
2020-12-09 20:13:19 +00:00
|
|
|
explicit PrimarySelectionDeviceManagerV1Interface(Display *display, QObject *parent = nullptr);
|
2020-06-01 22:29:53 +00:00
|
|
|
~PrimarySelectionDeviceManagerV1Interface();
|
|
|
|
|
|
|
|
Q_SIGNALS:
|
|
|
|
void dataSourceCreated(KWaylandServer::PrimarySelectionSourceV1Interface *dataSource);
|
|
|
|
void dataDeviceCreated(KWaylandServer::PrimarySelectionDeviceV1Interface *dataDevice);
|
|
|
|
|
|
|
|
private:
|
|
|
|
QScopedPointer<PrimarySelectionDeviceManagerV1InterfacePrivate> d;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|