4#ifndef WLDATADEVICEMANAGER_H
5#define WLDATADEVICEMANAGER_H
18#include <QtCore/QList>
20#include <QtGui/QClipboard>
21#include <QtCore/QMimeData>
23#include <QtWaylandCompositor/QWaylandCompositor>
25#include <QtWaylandCompositor/private/qwayland-server-wayland.h>
26#include <QtWaylandCompositor/private/qtwaylandcompositorglobal_p.h>
39class DataDeviceManager :
public QObject,
public QtWaylandServer::wl_data_device_manager
49 struct wl_display *
display()
const;
62 void readFromClient(
int fd);
66 void finishReadFromClient(
bool exhausted =
false);
71 DataSource *m_current_selection_source =
nullptr;
76 int m_retainedReadIndex = 0;
79 bool m_compositorOwnsSelection =
false;
82 static void comp_accept(
struct wl_client *client,
83 struct wl_resource *resource,
86 static void comp_receive(
struct wl_client *client,
87 struct wl_resource *resource,
88 const char *mime_type,
90 static void comp_destroy(
struct wl_client *client,
91 struct wl_resource *resource);
93 static const struct wl_data_offer_interface compositor_offer_interface;
\qmltype WaylandCompositor \instantiates QWaylandCompositor \inqmlmodule QtWayland....
Combined button and popup list for selecting options.
static QOpenGLCompositor * compositor
GLsizei GLsizei GLchar * source
#define QT_REQUIRE_CONFIG(feature)
bool offerFromCompositorToClient(wl_resource *clientDataDeviceResource)
void data_device_manager_get_data_device(Resource *resource, uint32_t id, struct ::wl_resource *seat) override
struct wl_display * display() const
void overrideSelection(const QMimeData &mimeData)
void sourceDestroyed(DataSource *source)
void offerRetainedSelection(wl_resource *clientDataDeviceResource)
DataSource * currentSelectionSource()
void setCurrentSelectionSource(DataSource *source)
void data_device_manager_create_data_source(Resource *resource, uint32_t id) override