// This file was generated by qtwaylandscanner
// source file is /build/qt5-wayland/src/kde-qtwayland/src/extensions/qt-vulkan-server-buffer-unstable-v1.xml

#ifndef QT_WAYLAND_QT_VULKAN_SERVER_BUFFER_UNSTABLE_V1
#define QT_WAYLAND_QT_VULKAN_SERVER_BUFFER_UNSTABLE_V1

#include "wayland-qt-vulkan-server-buffer-unstable-v1-client-protocol.h"
#include <QByteArray>
#include <QString>

struct wl_registry;

QT_BEGIN_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wmissing-field-initializers")

namespace QtWayland {
    class  zqt_vulkan_server_buffer_v1
    {
    public:
        zqt_vulkan_server_buffer_v1(struct ::wl_registry *registry, int id, int version);
        zqt_vulkan_server_buffer_v1(struct ::zqt_vulkan_server_buffer_v1 *object);
        zqt_vulkan_server_buffer_v1();

        virtual ~zqt_vulkan_server_buffer_v1();

        void init(struct ::wl_registry *registry, int id, int version);
        void init(struct ::zqt_vulkan_server_buffer_v1 *object);

        struct ::zqt_vulkan_server_buffer_v1 *object() { return m_zqt_vulkan_server_buffer_v1; }
        const struct ::zqt_vulkan_server_buffer_v1 *object() const { return m_zqt_vulkan_server_buffer_v1; }
        static zqt_vulkan_server_buffer_v1 *fromObject(struct ::zqt_vulkan_server_buffer_v1 *object);

        bool isInitialized() const;

        static const struct ::wl_interface *interface();

    protected:
        virtual void zqt_vulkan_server_buffer_v1_server_buffer_created(struct ::qt_server_buffer *id, int32_t fd, uint32_t width, uint32_t height, uint32_t memory_size, uint32_t format);

    private:
        void init_listener();
        static const struct zqt_vulkan_server_buffer_v1_listener m_zqt_vulkan_server_buffer_v1_listener;
        static void handle_server_buffer_created(
            void *data,
            struct ::zqt_vulkan_server_buffer_v1 *object,
            struct ::qt_server_buffer *id,
            int32_t fd,
            uint32_t width,
            uint32_t height,
            uint32_t memory_size,
            uint32_t format);
        struct ::zqt_vulkan_server_buffer_v1 *m_zqt_vulkan_server_buffer_v1;
    };
}

QT_WARNING_POP
QT_END_NAMESPACE

#endif
