// This file was generated by qtwaylandscanner
// source file is hyprland-toplevel-mapping-v1.xml

#ifndef QT_WAYLAND_HYPRLAND_TOPLEVEL_MAPPING_V1
#define QT_WAYLAND_HYPRLAND_TOPLEVEL_MAPPING_V1

#include "wayland-hyprland-toplevel-mapping-v1-client-protocol.h"
#include <QByteArray>
#include <QString>

struct wl_registry;

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

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

        virtual ~hyprland_toplevel_mapping_manager_v1();

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

        struct ::hyprland_toplevel_mapping_manager_v1 *object() { return m_hyprland_toplevel_mapping_manager_v1; }
        const struct ::hyprland_toplevel_mapping_manager_v1 *object() const { return m_hyprland_toplevel_mapping_manager_v1; }
        static hyprland_toplevel_mapping_manager_v1 *fromObject(struct ::hyprland_toplevel_mapping_manager_v1 *object);

        bool isInitialized() const;

        uint32_t version() const;
        static const struct ::wl_interface *interface();

        void get_window_for_toplevel();
        struct ::hyprland_toplevel_window_mapping_handle_v1 *get_window_for_toplevel_wlr(struct ::zwlr_foreign_toplevel_handle_v1 *toplevel);
        void destroy();

    private:
        struct ::hyprland_toplevel_mapping_manager_v1 *m_hyprland_toplevel_mapping_manager_v1;
    };

    class  hyprland_toplevel_window_mapping_handle_v1
    {
    public:
        hyprland_toplevel_window_mapping_handle_v1(struct ::wl_registry *registry, uint32_t id, int version);
        hyprland_toplevel_window_mapping_handle_v1(struct ::hyprland_toplevel_window_mapping_handle_v1 *object);
        hyprland_toplevel_window_mapping_handle_v1();

        virtual ~hyprland_toplevel_window_mapping_handle_v1();

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

        struct ::hyprland_toplevel_window_mapping_handle_v1 *object() { return m_hyprland_toplevel_window_mapping_handle_v1; }
        const struct ::hyprland_toplevel_window_mapping_handle_v1 *object() const { return m_hyprland_toplevel_window_mapping_handle_v1; }
        static hyprland_toplevel_window_mapping_handle_v1 *fromObject(struct ::hyprland_toplevel_window_mapping_handle_v1 *object);

        bool isInitialized() const;

        uint32_t version() const;
        static const struct ::wl_interface *interface();

        void destroy();

    protected:
        virtual void hyprland_toplevel_window_mapping_handle_v1_window_address(uint32_t address_hi, uint32_t address);
        virtual void hyprland_toplevel_window_mapping_handle_v1_failed();

    private:
        void init_listener();
        static const struct hyprland_toplevel_window_mapping_handle_v1_listener m_hyprland_toplevel_window_mapping_handle_v1_listener;
        static void handle_window_address(
            void *data,
            struct ::hyprland_toplevel_window_mapping_handle_v1 *object,
            uint32_t address_hi,
            uint32_t address);
        static void handle_failed(
            void *data,
            struct ::hyprland_toplevel_window_mapping_handle_v1 *object);
        struct ::hyprland_toplevel_window_mapping_handle_v1 *m_hyprland_toplevel_window_mapping_handle_v1;
    };
}

QT_WARNING_POP
QT_END_NAMESPACE

#endif
