Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwldataoffer_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:critical reason:network-protocol
4
5#ifndef WLDATAOFFER_H
6#define WLDATAOFFER_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QPointer>
20#include <QtWaylandCompositor/private/qwayland-server-wayland.h>
21#include <QtWaylandCompositor/private/qtwaylandcompositorglobal_p.h>
22
24
25QT_BEGIN_NAMESPACE
26
27namespace QtWayland
28{
29
30class DataSource;
31
33{
34public:
35 DataOffer(DataSource *data_source, QtWaylandServer::wl_data_device::Resource *target);
37
38protected:
39 void data_offer_accept(Resource *resource, uint32_t serial, const QString &mime_type) override;
40 void data_offer_receive(Resource *resource, const QString &mime_type, int32_t fd) override;
41 void data_offer_destroy(Resource *resource) override;
42 void data_offer_destroy_resource(Resource *resource) override;
43
44private:
45 QPointer<DataSource> m_dataSource;
46};
47
48}
49
50QT_END_NAMESPACE
51
52#endif // WLDATAOFFER_H
DataDevice(QWaylandSeat *seat)
void sourceDestroyed(DataSource *source)
void setFocus(QWaylandClient *client)
void data_offer_receive(Resource *resource, const QString &mime_type, int32_t fd) override
DataOffer(DataSource *data_source, QtWaylandServer::wl_data_device::Resource *target)
void data_offer_destroy_resource(Resource *resource) override
void data_offer_accept(Resource *resource, uint32_t serial, const QString &mime_type) override
void data_offer_destroy(Resource *resource) override
void send(const QString &mimeType, int fd)
uint32_t time() const
void setManager(DataDeviceManager *mgr)
void data_source_destroy_resource(Resource *resource) override
void data_source_offer(Resource *resource, const QString &mime_type) override
void setDevice(DataDevice *device)
void accept(const QString &mimeType)
void data_source_destroy(Resource *resource) override
QList< QString > mimeTypes() const
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG(wayland_datadevice)