9#include <QtGui/private/qguiapplication_p.h>
11#include <qpa/qplatformclipboard.h>
18 : zwp_primary_selection_device_manager_v1(
display->wl_registry(),
id,
qMin(version,
uint(1)))
29 : zwp_primary_selection_offer_v1(offer)
42 m_mimeData->appendFormat(mime_type);
45QWaylandPrimarySelectionDeviceV1::QWaylandPrimarySelectionDeviceV1(
47 :
QtWayland::zwp_primary_selection_device_v1(
manager->get_device(seat->wl_seat()))
60 if (!m_selectionOffer)
63 m_selectionOffer.reset();
71 m_selectionSource.reset();
76 m_selectionSource.reset(
source);
90 m_selectionOffer.reset();
116 struct sigaction action, oldAction;
117 action.sa_handler = SIG_IGN;
118 sigemptyset (&action.sa_mask);
121 sigaction(SIGPIPE, &action, &oldAction);
124 sigaction(SIGPIPE, &oldAction,
nullptr);
133#include "moc_qwaylandprimaryselectionv1_p.cpp"
qsizetype size() const noexcept
Returns the number of bytes in this byte array.
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
bool isEmpty() const noexcept
Returns true if the byte array has size 0; otherwise returns false.
static QPlatformIntegration * platformIntegration()
virtual QStringList formats() const
Returns a list of formats supported by the object.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QByteArray getByteArray(QMimeData *mimeData, const QString &mimeType)
struct wl_display * wl_display() const
QWaylandPrimarySelectionDeviceManagerV1(QWaylandDisplay *display, uint id, uint version)
QWaylandPrimarySelectionDeviceV1 * createDevice(QWaylandInputDevice *seat)
void zwp_primary_selection_device_v1_selection(struct ::zwp_primary_selection_offer_v1 *id) override
void zwp_primary_selection_device_v1_data_offer(struct ::zwp_primary_selection_offer_v1 *offer) override
void invalidateSelectionOffer()
~QWaylandPrimarySelectionDeviceV1() override
void setSelectionSource(QWaylandPrimarySelectionSourceV1 *source)
void startReceiving(const QString &mimeType, int fd) override
void zwp_primary_selection_offer_v1_offer(const QString &mime_type) override
QWaylandPrimarySelectionOfferV1(QWaylandDisplay *display, ::zwp_primary_selection_offer_v1 *offer)
QWaylandPrimarySelectionSourceV1(QWaylandPrimarySelectionDeviceManagerV1 *manager, QMimeData *mimeData)
~QWaylandPrimarySelectionSourceV1() override
void zwp_primary_selection_source_v1_send(const QString &mime_type, int32_t fd) override
QMimeData * mimeData() const
struct wl_display * display
Combined button and popup list for selecting options.
constexpr const T & qMin(const T &a, const T &b)
GLint GLsizei GLsizei GLenum format
GLsizei GLsizei GLchar * source
gzip write("uncompressed data")
QNetworkAccessManager manager