5#ifndef QWAYLANDDATADEVICE_H
6#define QWAYLANDDATADEVICE_H
19#include <qtwaylandclientglobal_p.h>
24#include <QtWaylandClient/private/qwayland-wayland.h>
31class QPlatformDragQtResponse;
35class xdg_toplevel_drag_v1;
41class QWaylandDataDeviceManager;
42class QWaylandDataOffer;
43class QWaylandDataSource;
44class QWaylandInputDevice;
59#if QT_CONFIG(draganddrop)
68#if QT_CONFIG(draganddrop)
79#if QT_CONFIG(draganddrop)
84#if QT_CONFIG(draganddrop)
87 void sendResponse(Qt::DropActions supportedActions,
const QPlatformDragQtResponse &response);
89 static int dropActionsToWl(Qt::DropActions dropActions);
92 QWaylandDisplay *m_display =
nullptr;
93 QWaylandInputDevice *m_inputDevice =
nullptr;
94 uint32_t m_enterSerial = 0;
95 QPointer<QWindow> m_dragWindow;
97 QScopedPointer<QWaylandDataOffer> m_dragOffer;
98 QScopedPointer<QWaylandDataOffer> m_selectionOffer;
99 QScopedPointer<QWaylandDataSource> m_selectionSource;
100 QScopedPointer<QWaylandDataSource> m_dragSource;
101 QtWayland::xdg_toplevel_drag_v1 *m_toplevelDrag =
nullptr;
virtual void startReceiving(const QString &mimeType, int fd)=0
virtual QMimeData * mimeData()=0
virtual ~QWaylandAbstractDataOffer()=default
QWaylandDataControlOfferV1 * selectionOffer() const
QWaylandDataControlOfferV1 * primarySelectionOffer() const
void invalidateSelectionOffer()
QWaylandDataControlSourceV1 * selectionSource() const
~QWaylandDataControlDeviceV1() override
void setSelectionSource(QWaylandDataControlSourceV1 *source)
void zwlr_data_control_device_v1_finished() override
QWaylandDataControlSourceV1 * primarySelectionSource() const
void setPrimarySelectionSource(QWaylandDataControlSourceV1 *source)
QWaylandDataControlManagerV1(QWaylandDisplay *display, uint id, uint version)
QWaylandDisplay * display() const
QWaylandDataControlDeviceV1 * createDevice(QWaylandInputDevice *seat)
QMimeData * mimeData() override
QWaylandDataControlOfferV1(QWaylandDisplay *display, ::zwlr_data_control_offer_v1 *offer)
void startReceiving(const QString &mimeType, int fd) override
~QWaylandDataControlOfferV1() override
void zwlr_data_control_offer_v1_offer(const QString &mime_type) override
~QWaylandDataDevice() override
QWaylandDataSource * selectionSource() const
QWaylandDataOffer * selectionOffer() const
void setSelectionSource(QWaylandDataSource *source)
void invalidateSelectionOffer()
~QWaylandMimeData() override
QVariant retrieveData_sys(const QString &mimeType, QMetaType type) const override
void appendFormat(const QString &mimeType)
QStringList formats_sys() const override
QWaylandMimeData(QWaylandAbstractDataOffer *dataOffer)
bool hasFormat_sys(const QString &mimeType) const override
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG(itemmodel)
QT_REQUIRE_CONFIG(clipboard)