Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef WLDATAOFFER_H
5#define WLDATAOFFER_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QPointer>
19#include <QtWaylandCompositor/private/qwayland-server-wayland.h>
20#include <QtWaylandCompositor/private/qtwaylandcompositorglobal_p.h>
21
22QT_REQUIRE_CONFIG(wayland_datadevice);
23
25
26namespace QtWayland
27{
28
29class DataSource;
30
31class DataOffer : public QtWaylandServer::wl_data_offer
32{
33public:
34 DataOffer(DataSource *data_source, QtWaylandServer::wl_data_device::Resource *target);
35 ~DataOffer() override;
36
37protected:
38 void data_offer_accept(Resource *resource, uint32_t serial, const QString &mime_type) override;
39 void data_offer_receive(Resource *resource, const QString &mime_type, int32_t fd) override;
40 void data_offer_destroy(Resource *resource) override;
41 void data_offer_destroy_resource(Resource *resource) override;
42
43private:
44 QPointer<DataSource> m_dataSource;
45};
46
47}
48
50
51#endif // WLDATAOFFER_H
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
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
Combined button and popup list for selecting options.
GLenum target
GLuint64 GLenum GLint fd
#define QT_REQUIRE_CONFIG(feature)