// This file was generated by qtwaylandscanner
// source file is /build/kguiaddons/src/kguiaddons-5.97.0/src/recorder/keyboard-shortcuts-inhibit-unstable-v1.xml

#include "qwayland-keyboard-shortcuts-inhibit-unstable-v1.h"

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

namespace QtWayland {

static inline void *wlRegistryBind(struct ::wl_registry *registry, uint32_t name, const struct ::wl_interface *interface, uint32_t version)
{
    const uint32_t bindOpCode = 0;
#if (WAYLAND_VERSION_MAJOR == 1 && WAYLAND_VERSION_MINOR > 10) || WAYLAND_VERSION_MAJOR > 1
    return (void *) wl_proxy_marshal_constructor_versioned((struct wl_proxy *) registry,
        bindOpCode, interface, version, name, interface->name, version, nullptr);
#else
    return (void *) wl_proxy_marshal_constructor((struct wl_proxy *) registry,
        bindOpCode, interface, name, interface->name, version, nullptr);
#endif
}

    zwp_keyboard_shortcuts_inhibit_manager_v1::zwp_keyboard_shortcuts_inhibit_manager_v1(struct ::wl_registry *registry, int id, int version)
    {
        init(registry, id, version);
    }

    zwp_keyboard_shortcuts_inhibit_manager_v1::zwp_keyboard_shortcuts_inhibit_manager_v1(struct ::zwp_keyboard_shortcuts_inhibit_manager_v1 *obj)
        : m_zwp_keyboard_shortcuts_inhibit_manager_v1(obj)
    {
    }

    zwp_keyboard_shortcuts_inhibit_manager_v1::zwp_keyboard_shortcuts_inhibit_manager_v1()
        : m_zwp_keyboard_shortcuts_inhibit_manager_v1(nullptr)
    {
    }

    zwp_keyboard_shortcuts_inhibit_manager_v1::~zwp_keyboard_shortcuts_inhibit_manager_v1()
    {
    }

    void zwp_keyboard_shortcuts_inhibit_manager_v1::init(struct ::wl_registry *registry, int id, int version)
    {
        m_zwp_keyboard_shortcuts_inhibit_manager_v1 = static_cast<struct ::zwp_keyboard_shortcuts_inhibit_manager_v1 *>(wlRegistryBind(registry, id, &zwp_keyboard_shortcuts_inhibit_manager_v1_interface, version));
    }

    void zwp_keyboard_shortcuts_inhibit_manager_v1::init(struct ::zwp_keyboard_shortcuts_inhibit_manager_v1 *obj)
    {
        m_zwp_keyboard_shortcuts_inhibit_manager_v1 = obj;
    }

    zwp_keyboard_shortcuts_inhibit_manager_v1 *zwp_keyboard_shortcuts_inhibit_manager_v1::fromObject(struct ::zwp_keyboard_shortcuts_inhibit_manager_v1 *object)
    {
        return static_cast<zwp_keyboard_shortcuts_inhibit_manager_v1 *>(zwp_keyboard_shortcuts_inhibit_manager_v1_get_user_data(object));
    }

    bool zwp_keyboard_shortcuts_inhibit_manager_v1::isInitialized() const
    {
        return m_zwp_keyboard_shortcuts_inhibit_manager_v1 != nullptr;
    }

    const struct wl_interface *zwp_keyboard_shortcuts_inhibit_manager_v1::interface()
    {
        return &::zwp_keyboard_shortcuts_inhibit_manager_v1_interface;
    }

    void zwp_keyboard_shortcuts_inhibit_manager_v1::destroy()
    {
        zwp_keyboard_shortcuts_inhibit_manager_v1_destroy(
            m_zwp_keyboard_shortcuts_inhibit_manager_v1);
        m_zwp_keyboard_shortcuts_inhibit_manager_v1 = nullptr;
    }

    struct ::zwp_keyboard_shortcuts_inhibitor_v1 *zwp_keyboard_shortcuts_inhibit_manager_v1::inhibit_shortcuts(struct ::wl_surface *surface, struct ::wl_seat *seat)
    {
        return zwp_keyboard_shortcuts_inhibit_manager_v1_inhibit_shortcuts(
            m_zwp_keyboard_shortcuts_inhibit_manager_v1,
            surface,
            seat);
    }

    zwp_keyboard_shortcuts_inhibitor_v1::zwp_keyboard_shortcuts_inhibitor_v1(struct ::wl_registry *registry, int id, int version)
    {
        init(registry, id, version);
    }

    zwp_keyboard_shortcuts_inhibitor_v1::zwp_keyboard_shortcuts_inhibitor_v1(struct ::zwp_keyboard_shortcuts_inhibitor_v1 *obj)
        : m_zwp_keyboard_shortcuts_inhibitor_v1(obj)
    {
        init_listener();
    }

    zwp_keyboard_shortcuts_inhibitor_v1::zwp_keyboard_shortcuts_inhibitor_v1()
        : m_zwp_keyboard_shortcuts_inhibitor_v1(nullptr)
    {
    }

    zwp_keyboard_shortcuts_inhibitor_v1::~zwp_keyboard_shortcuts_inhibitor_v1()
    {
    }

    void zwp_keyboard_shortcuts_inhibitor_v1::init(struct ::wl_registry *registry, int id, int version)
    {
        m_zwp_keyboard_shortcuts_inhibitor_v1 = static_cast<struct ::zwp_keyboard_shortcuts_inhibitor_v1 *>(wlRegistryBind(registry, id, &zwp_keyboard_shortcuts_inhibitor_v1_interface, version));
        init_listener();
    }

    void zwp_keyboard_shortcuts_inhibitor_v1::init(struct ::zwp_keyboard_shortcuts_inhibitor_v1 *obj)
    {
        m_zwp_keyboard_shortcuts_inhibitor_v1 = obj;
        init_listener();
    }

    zwp_keyboard_shortcuts_inhibitor_v1 *zwp_keyboard_shortcuts_inhibitor_v1::fromObject(struct ::zwp_keyboard_shortcuts_inhibitor_v1 *object)
    {
        if (wl_proxy_get_listener((struct ::wl_proxy *)object) != (void *)&m_zwp_keyboard_shortcuts_inhibitor_v1_listener)
            return nullptr;
        return static_cast<zwp_keyboard_shortcuts_inhibitor_v1 *>(zwp_keyboard_shortcuts_inhibitor_v1_get_user_data(object));
    }

    bool zwp_keyboard_shortcuts_inhibitor_v1::isInitialized() const
    {
        return m_zwp_keyboard_shortcuts_inhibitor_v1 != nullptr;
    }

    const struct wl_interface *zwp_keyboard_shortcuts_inhibitor_v1::interface()
    {
        return &::zwp_keyboard_shortcuts_inhibitor_v1_interface;
    }

    void zwp_keyboard_shortcuts_inhibitor_v1::destroy()
    {
        zwp_keyboard_shortcuts_inhibitor_v1_destroy(
            m_zwp_keyboard_shortcuts_inhibitor_v1);
        m_zwp_keyboard_shortcuts_inhibitor_v1 = nullptr;
    }

    void zwp_keyboard_shortcuts_inhibitor_v1::zwp_keyboard_shortcuts_inhibitor_v1_active()
    {
    }

    void zwp_keyboard_shortcuts_inhibitor_v1::handle_active(
        void *data,
        struct ::zwp_keyboard_shortcuts_inhibitor_v1 *object)
    {
        Q_UNUSED(object);
        static_cast<zwp_keyboard_shortcuts_inhibitor_v1 *>(data)->zwp_keyboard_shortcuts_inhibitor_v1_active();
    }

    void zwp_keyboard_shortcuts_inhibitor_v1::zwp_keyboard_shortcuts_inhibitor_v1_inactive()
    {
    }

    void zwp_keyboard_shortcuts_inhibitor_v1::handle_inactive(
        void *data,
        struct ::zwp_keyboard_shortcuts_inhibitor_v1 *object)
    {
        Q_UNUSED(object);
        static_cast<zwp_keyboard_shortcuts_inhibitor_v1 *>(data)->zwp_keyboard_shortcuts_inhibitor_v1_inactive();
    }

    const struct zwp_keyboard_shortcuts_inhibitor_v1_listener zwp_keyboard_shortcuts_inhibitor_v1::m_zwp_keyboard_shortcuts_inhibitor_v1_listener = {
        zwp_keyboard_shortcuts_inhibitor_v1::handle_active,
        zwp_keyboard_shortcuts_inhibitor_v1::handle_inactive,
    };

    void zwp_keyboard_shortcuts_inhibitor_v1::init_listener()
    {
        zwp_keyboard_shortcuts_inhibitor_v1_add_listener(m_zwp_keyboard_shortcuts_inhibitor_v1, &m_zwp_keyboard_shortcuts_inhibitor_v1_listener, this);
    }
}

QT_WARNING_POP
QT_END_NAMESPACE
