| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef QT_WAYLAND_SERVER_BUFFER_EXTENSION |
| 6 |
#define QT_WAYLAND_SERVER_BUFFER_EXTENSION |
| 7 |
|
| 8 |
#include <QtWaylandClient/private/wayland-server-buffer-extension-client-protocol.h> |
| 9 |
#include <QByteArray> |
| 10 |
#include <QString> |
| 11 |
|
| 12 |
QT_BEGIN_NAMESPACE |
| 13 |
QT_WARNING_PUSH |
| 14 |
QT_WARNING_DISABLE_GCC("-Wmissing-field-initializers") |
| 15 |
|
| 16 |
#if !defined(Q_WAYLAND_CLIENT_SERVER_BUFFER_EXTENSION_EXPORT) |
| 17 |
# if defined(QT_SHARED) |
| 18 |
# define Q_WAYLAND_CLIENT_SERVER_BUFFER_EXTENSION_EXPORT Q_DECL_EXPORT |
| 19 |
# else |
| 20 |
# define Q_WAYLAND_CLIENT_SERVER_BUFFER_EXTENSION_EXPORT |
| 21 |
# endif |
| 22 |
#endif |
| 23 |
|
| 24 |
namespace QtWayland { |
| 25 |
class Q_WAYLAND_CLIENT_SERVER_BUFFER_EXTENSION_EXPORT qt_server_buffer |
| 26 |
{ |
| 27 |
public: |
| 28 |
qt_server_buffer(struct ::wl_registry *registry, int id, int version); |
| 29 |
qt_server_buffer(struct ::qt_server_buffer *object); |
| 30 |
qt_server_buffer(); |
| 31 |
|
| 32 |
virtual ~qt_server_buffer(); |
| 33 |
|
| 34 |
void init(struct ::wl_registry *registry, int id, int version); |
| 35 |
void init(struct ::qt_server_buffer *object); |
| 36 |
|
| 37 |
struct ::qt_server_buffer *object() { return m_qt_server_buffer; } |
| 38 |
const struct ::qt_server_buffer *object() const { return m_qt_server_buffer; } |
| 39 |
|
| 40 |
bool isInitialized() const; |
| 41 |
|
| 42 |
static const struct ::wl_interface *interface(); |
| 43 |
|
| 44 |
void release(); |
| 45 |
|
| 46 |
private: |
| 47 |
struct ::qt_server_buffer *m_qt_server_buffer; |
| 48 |
}; |
| 49 |
} |
| 50 |
|
| 51 |
QT_WARNING_POP |
| 52 |
QT_END_NAMESPACE |
| 53 |
|
| 54 |
#endif |