| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef QT_WAYLAND_HARDWARE_INTEGRATION |
| 6 |
#define QT_WAYLAND_HARDWARE_INTEGRATION |
| 7 |
|
| 8 |
#include <QtWaylandClient/private/wayland-hardware-integration-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_HARDWARE_INTEGRATION_EXPORT) |
| 17 |
# if defined(QT_SHARED) |
| 18 |
# define Q_WAYLAND_CLIENT_HARDWARE_INTEGRATION_EXPORT Q_DECL_EXPORT |
| 19 |
# else |
| 20 |
# define Q_WAYLAND_CLIENT_HARDWARE_INTEGRATION_EXPORT |
| 21 |
# endif |
| 22 |
#endif |
| 23 |
|
| 24 |
namespace QtWayland { |
| 25 |
class Q_WAYLAND_CLIENT_HARDWARE_INTEGRATION_EXPORT qt_hardware_integration |
| 26 |
{ |
| 27 |
public: |
| 28 |
qt_hardware_integration(struct ::wl_registry *registry, int id, int version); |
| 29 |
qt_hardware_integration(struct ::qt_hardware_integration *object); |
| 30 |
qt_hardware_integration(); |
| 31 |
|
| 32 |
virtual ~qt_hardware_integration(); |
| 33 |
|
| 34 |
void init(struct ::wl_registry *registry, int id, int version); |
| 35 |
void init(struct ::qt_hardware_integration *object); |
| 36 |
|
| 37 |
struct ::qt_hardware_integration *object() { return m_qt_hardware_integration; } |
| 38 |
const struct ::qt_hardware_integration *object() const { return m_qt_hardware_integration; } |
| 39 |
|
| 40 |
bool isInitialized() const; |
| 41 |
|
| 42 |
static const struct ::wl_interface *interface(); |
| 43 |
|
| 44 |
protected: |
| 45 |
virtual void hardware_integration_client_backend(const QString &name); |
| 46 |
virtual void hardware_integration_server_backend(const QString &name); |
| 47 |
|
| 48 |
private: |
| 49 |
void init_listener(); |
| 50 |
static const struct qt_hardware_integration_listener m_qt_hardware_integration_listener; |
| 51 |
static void handle_client_backend( |
| 52 |
void *data, |
| 53 |
struct ::qt_hardware_integration *object, |
| 54 |
const char *name); |
| 55 |
static void handle_server_backend( |
| 56 |
void *data, |
| 57 |
struct ::qt_hardware_integration *object, |
| 58 |
const char *name); |
| 59 |
struct ::qt_hardware_integration *m_qt_hardware_integration; |
| 60 |
}; |
| 61 |
} |
| 62 |
|
| 63 |
QT_WARNING_POP |
| 64 |
QT_END_NAMESPACE |
| 65 |
|
| 66 |
#endif |