13#include <qwayland-server-wp-primary-selection-unstable-v1.h>
34 wl_resource *resource)
35 : QtWaylandServer::zwp_primary_selection_offer_v1(resource)
43 wl_resource_destroy(resource->handle);
47 QtWaylandServer::zwp_primary_selection_offer_v1::Resource *resource)
58 source->requestData(mimeType, fd);
61PrimarySelectionOfferV1Interface::PrimarySelectionOfferV1Interface(
AbstractDataSource *source, wl_resource *resource)
67 d->send_offer(mimeType);
75 for (
const QString &mimeType : d->source->mimeTypes()) {
76 d->send_offer(mimeType);
82 return d->resource()->handle;
87#include "moc_primaryselectionoffer_v1.cpp"
The AbstractDataSource class abstracts the data that can be transferred to another client.
void mimeTypeOffered(const QString &)
Represents the Resource for the wl_data_offer interface. Lifespan is mapped to the underlying object.
wl_resource * resource() const
~PrimarySelectionOfferV1Interface() override
void zwp_primary_selection_offer_v1_receive(Resource *resource, const QString &mime_type, int32_t fd) override
void zwp_primary_selection_offer_v1_destroy_resource(Resource *resource) override
QPointer< AbstractDataSource > source
void zwp_primary_selection_offer_v1_destroy(Resource *resource) override
PrimarySelectionOfferV1Interface * q
PrimarySelectionOfferV1InterfacePrivate(PrimarySelectionOfferV1Interface *q, AbstractDataSource *source, wl_resource *resource)