6#include <phosphorwayland_export.h>
72 void dataReceived(
const QString& mimeType,
const QByteArray& data);
76 std::unique_ptr<Private> d;
Client-side wrapper around zwlr_data_control_device_v1.
Definition ClipboardDevice.h:38
QStringList mimeTypes() const
MIME types offered by the current clipboard selection, or an empty list when the selection is cleared...
ClipboardDevice(QObject *parent=nullptr)
void dataReceived(const QString &mimeType, const QByteArray &data)
Asynchronous result of receive(). data is empty on failure.
void selectionChanged(const QStringList &mimeTypes)
The clipboard selection changed; mimeTypes lists the offered types (empty when the selection was clea...
void receive(const QString &mimeType)
Asynchronously read the current clipboard selection as mimeType.
~ClipboardDevice() override
void setSelection(const QMap< QString, QByteArray > &data)
Take ownership of the clipboard selection, offering data keyed by MIME type; when a client pastes,...
static bool isSupported()
True iff the compositor advertises zwlr_data_control_manager_v1.
Definition ClipboardDevice.h:15