// This file was generated by qtwaylandscanner
// source file is /usr/share/deepin-wayland-protocols/output-management.xml

#include "qwayland-server-outputmanagement.h"

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

namespace QtWaylandServer {

    int org_kde_kwin_outputmanagement::deferred_destroy_global_func(void *data) {
        auto object = static_cast<org_kde_kwin_outputmanagement *>(data);
        wl_global_destroy(object->m_global);
        object->m_global = nullptr;
        wl_event_source_remove(object->m_globalRemovedEvent);
        object->m_globalRemovedEvent = nullptr;
        wl_list_remove(&object->m_displayDestroyedListener.link);
        object->org_kde_kwin_outputmanagement_destroy_global();
        return 0;
    }

    org_kde_kwin_outputmanagement::org_kde_kwin_outputmanagement(struct ::wl_client *client, int id, int version)
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
        init(client, id, version);
    }

    org_kde_kwin_outputmanagement::org_kde_kwin_outputmanagement(struct ::wl_display *display, int version)
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
        init(display, version);
    }

    org_kde_kwin_outputmanagement::org_kde_kwin_outputmanagement(struct ::wl_resource *resource)
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
        init(resource);
    }

    org_kde_kwin_outputmanagement::org_kde_kwin_outputmanagement()
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
    }

    org_kde_kwin_outputmanagement::~org_kde_kwin_outputmanagement()
    {
        for (auto resource : std::as_const(m_resource_map))
            resource->org_kde_kwin_outputmanagement_object = nullptr;

        if (m_resource)
            m_resource->org_kde_kwin_outputmanagement_object = nullptr;

        if (m_global) {
            if (m_globalRemovedEvent)
                wl_event_source_remove(m_globalRemovedEvent);
            wl_global_destroy(m_global);
            wl_list_remove(&m_displayDestroyedListener.link);
        }
    }

    void org_kde_kwin_outputmanagement::init(struct ::wl_client *client, int id, int version)
    {
        m_resource = bind(client, id, version);
    }

    void org_kde_kwin_outputmanagement::init(struct ::wl_resource *resource)
    {
        m_resource = bind(resource);
    }

    org_kde_kwin_outputmanagement::Resource *org_kde_kwin_outputmanagement::add(struct ::wl_client *client, int version)
    {
        Resource *resource = bind(client, 0, version);
        m_resource_map.insert(client, resource);
        return resource;
    }

    org_kde_kwin_outputmanagement::Resource *org_kde_kwin_outputmanagement::add(struct ::wl_client *client, int id, int version)
    {
        Resource *resource = bind(client, id, version);
        m_resource_map.insert(client, resource);
        return resource;
    }

    void org_kde_kwin_outputmanagement::init(struct ::wl_display *display, int version)
    {
        m_display = display;
        m_global = wl_global_create(display, &::org_kde_kwin_outputmanagement_interface, version, this, bind_func);
        m_displayDestroyedListener.notify = org_kde_kwin_outputmanagement::display_destroy_func;
        m_displayDestroyedListener.parent = this;
        wl_display_add_destroy_listener(display, &m_displayDestroyedListener);
    }

    const struct wl_interface *org_kde_kwin_outputmanagement::interface()
    {
        return &::org_kde_kwin_outputmanagement_interface;
    }

    org_kde_kwin_outputmanagement::Resource *org_kde_kwin_outputmanagement::org_kde_kwin_outputmanagement_allocate()
    {
        return new Resource;
    }

    void org_kde_kwin_outputmanagement::org_kde_kwin_outputmanagement_destroy_global()
    {
    }

    void org_kde_kwin_outputmanagement::org_kde_kwin_outputmanagement_bind_resource(Resource *)
    {
    }

    void org_kde_kwin_outputmanagement::org_kde_kwin_outputmanagement_destroy_resource(Resource *)
    {
    }

    void org_kde_kwin_outputmanagement::bind_func(struct ::wl_client *client, void *data, uint32_t version, uint32_t id)
    {
        org_kde_kwin_outputmanagement *that = static_cast<org_kde_kwin_outputmanagement *>(data);
        that->add(client, id, version);
    }

    void org_kde_kwin_outputmanagement::display_destroy_func(struct ::wl_listener *listener, void *data)
    {
        Q_UNUSED(data);
        org_kde_kwin_outputmanagement *that = static_cast<org_kde_kwin_outputmanagement::DisplayDestroyedListener *>(listener)->parent;
        that->m_global = nullptr;
        that->m_globalRemovedEvent = nullptr;
    }

    void org_kde_kwin_outputmanagement::destroy_func(struct ::wl_resource *client_resource)
    {
        Resource *resource = Resource::fromResource(client_resource);
        Q_ASSERT(resource);
        org_kde_kwin_outputmanagement *that = resource->org_kde_kwin_outputmanagement_object;
        if (Q_LIKELY(that)) {
            that->m_resource_map.remove(resource->client(), resource);
            that->org_kde_kwin_outputmanagement_destroy_resource(resource);

            that = resource->org_kde_kwin_outputmanagement_object;
            if (that && that->m_resource == resource)
                that->m_resource = nullptr;
        }
        delete resource;
    }


    void org_kde_kwin_outputmanagement::globalRemove()
    {
        if (!m_global || m_globalRemovedEvent)
            return;

        wl_global_remove(m_global);

        struct wl_event_loop *event_loop = wl_display_get_event_loop(m_display);
        m_globalRemovedEvent = wl_event_loop_add_timer(event_loop, deferred_destroy_global_func, this);
        wl_event_source_timer_update(m_globalRemovedEvent, 10000);
    }

    org_kde_kwin_outputmanagement::Resource *org_kde_kwin_outputmanagement::bind(struct ::wl_client *client, uint32_t id, int version)
    {
        Q_ASSERT_X(!wl_client_get_object(client, id), "QWaylandObject bind", QStringLiteral("binding to object %1 more than once").arg(id).toLocal8Bit().constData());
        struct ::wl_resource *handle = wl_resource_create(client, &::org_kde_kwin_outputmanagement_interface, version, id);
        return bind(handle);
    }

    org_kde_kwin_outputmanagement::Resource *org_kde_kwin_outputmanagement::bind(struct ::wl_resource *handle)
    {
        Resource *resource = org_kde_kwin_outputmanagement_allocate();
        resource->org_kde_kwin_outputmanagement_object = this;

        wl_resource_set_implementation(handle, &m_org_kde_kwin_outputmanagement_interface, resource, destroy_func);
        resource->handle = handle;
        org_kde_kwin_outputmanagement_bind_resource(resource);
        return resource;
    }
    org_kde_kwin_outputmanagement::Resource *org_kde_kwin_outputmanagement::Resource::fromResource(struct ::wl_resource *resource)
    {
        if (Q_UNLIKELY(!resource))
            return nullptr;
        if (wl_resource_instance_of(resource, &::org_kde_kwin_outputmanagement_interface, &m_org_kde_kwin_outputmanagement_interface))
            return static_cast<Resource *>(wl_resource_get_user_data(resource));
        return nullptr;
    }

    const struct ::org_kde_kwin_outputmanagement_interface org_kde_kwin_outputmanagement::m_org_kde_kwin_outputmanagement_interface = {
        org_kde_kwin_outputmanagement::handle_create_configuration
    };

    void org_kde_kwin_outputmanagement::org_kde_kwin_outputmanagement_create_configuration(Resource *, uint32_t)
    {
    }


    void org_kde_kwin_outputmanagement::handle_create_configuration(
        ::wl_client *client,
        struct wl_resource *resource,
        uint32_t id)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputmanagement_object)) {
            return;
        }
        static_cast<org_kde_kwin_outputmanagement *>(r->org_kde_kwin_outputmanagement_object)->org_kde_kwin_outputmanagement_create_configuration(
            r,
            id);
    }


    int org_kde_kwin_outputconfiguration::deferred_destroy_global_func(void *data) {
        auto object = static_cast<org_kde_kwin_outputconfiguration *>(data);
        wl_global_destroy(object->m_global);
        object->m_global = nullptr;
        wl_event_source_remove(object->m_globalRemovedEvent);
        object->m_globalRemovedEvent = nullptr;
        wl_list_remove(&object->m_displayDestroyedListener.link);
        object->org_kde_kwin_outputconfiguration_destroy_global();
        return 0;
    }

    org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration(struct ::wl_client *client, int id, int version)
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
        init(client, id, version);
    }

    org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration(struct ::wl_display *display, int version)
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
        init(display, version);
    }

    org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration(struct ::wl_resource *resource)
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
        init(resource);
    }

    org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration()
        : m_resource_map()
        , m_resource(nullptr)
        , m_global(nullptr)
        , m_display(nullptr)
        , m_globalRemovedEvent(nullptr)
    {
    }

    org_kde_kwin_outputconfiguration::~org_kde_kwin_outputconfiguration()
    {
        for (auto resource : std::as_const(m_resource_map))
            resource->org_kde_kwin_outputconfiguration_object = nullptr;

        if (m_resource)
            m_resource->org_kde_kwin_outputconfiguration_object = nullptr;

        if (m_global) {
            if (m_globalRemovedEvent)
                wl_event_source_remove(m_globalRemovedEvent);
            wl_global_destroy(m_global);
            wl_list_remove(&m_displayDestroyedListener.link);
        }
    }

    void org_kde_kwin_outputconfiguration::init(struct ::wl_client *client, int id, int version)
    {
        m_resource = bind(client, id, version);
    }

    void org_kde_kwin_outputconfiguration::init(struct ::wl_resource *resource)
    {
        m_resource = bind(resource);
    }

    org_kde_kwin_outputconfiguration::Resource *org_kde_kwin_outputconfiguration::add(struct ::wl_client *client, int version)
    {
        Resource *resource = bind(client, 0, version);
        m_resource_map.insert(client, resource);
        return resource;
    }

    org_kde_kwin_outputconfiguration::Resource *org_kde_kwin_outputconfiguration::add(struct ::wl_client *client, int id, int version)
    {
        Resource *resource = bind(client, id, version);
        m_resource_map.insert(client, resource);
        return resource;
    }

    void org_kde_kwin_outputconfiguration::init(struct ::wl_display *display, int version)
    {
        m_display = display;
        m_global = wl_global_create(display, &::org_kde_kwin_outputconfiguration_interface, version, this, bind_func);
        m_displayDestroyedListener.notify = org_kde_kwin_outputconfiguration::display_destroy_func;
        m_displayDestroyedListener.parent = this;
        wl_display_add_destroy_listener(display, &m_displayDestroyedListener);
    }

    const struct wl_interface *org_kde_kwin_outputconfiguration::interface()
    {
        return &::org_kde_kwin_outputconfiguration_interface;
    }

    org_kde_kwin_outputconfiguration::Resource *org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_allocate()
    {
        return new Resource;
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_destroy_global()
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_bind_resource(Resource *)
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_destroy_resource(Resource *)
    {
    }

    void org_kde_kwin_outputconfiguration::bind_func(struct ::wl_client *client, void *data, uint32_t version, uint32_t id)
    {
        org_kde_kwin_outputconfiguration *that = static_cast<org_kde_kwin_outputconfiguration *>(data);
        that->add(client, id, version);
    }

    void org_kde_kwin_outputconfiguration::display_destroy_func(struct ::wl_listener *listener, void *data)
    {
        Q_UNUSED(data);
        org_kde_kwin_outputconfiguration *that = static_cast<org_kde_kwin_outputconfiguration::DisplayDestroyedListener *>(listener)->parent;
        that->m_global = nullptr;
        that->m_globalRemovedEvent = nullptr;
    }

    void org_kde_kwin_outputconfiguration::destroy_func(struct ::wl_resource *client_resource)
    {
        Resource *resource = Resource::fromResource(client_resource);
        Q_ASSERT(resource);
        org_kde_kwin_outputconfiguration *that = resource->org_kde_kwin_outputconfiguration_object;
        if (Q_LIKELY(that)) {
            that->m_resource_map.remove(resource->client(), resource);
            that->org_kde_kwin_outputconfiguration_destroy_resource(resource);

            that = resource->org_kde_kwin_outputconfiguration_object;
            if (that && that->m_resource == resource)
                that->m_resource = nullptr;
        }
        delete resource;
    }


    void org_kde_kwin_outputconfiguration::globalRemove()
    {
        if (!m_global || m_globalRemovedEvent)
            return;

        wl_global_remove(m_global);

        struct wl_event_loop *event_loop = wl_display_get_event_loop(m_display);
        m_globalRemovedEvent = wl_event_loop_add_timer(event_loop, deferred_destroy_global_func, this);
        wl_event_source_timer_update(m_globalRemovedEvent, 10000);
    }

    org_kde_kwin_outputconfiguration::Resource *org_kde_kwin_outputconfiguration::bind(struct ::wl_client *client, uint32_t id, int version)
    {
        Q_ASSERT_X(!wl_client_get_object(client, id), "QWaylandObject bind", QStringLiteral("binding to object %1 more than once").arg(id).toLocal8Bit().constData());
        struct ::wl_resource *handle = wl_resource_create(client, &::org_kde_kwin_outputconfiguration_interface, version, id);
        return bind(handle);
    }

    org_kde_kwin_outputconfiguration::Resource *org_kde_kwin_outputconfiguration::bind(struct ::wl_resource *handle)
    {
        Resource *resource = org_kde_kwin_outputconfiguration_allocate();
        resource->org_kde_kwin_outputconfiguration_object = this;

        wl_resource_set_implementation(handle, &m_org_kde_kwin_outputconfiguration_interface, resource, destroy_func);
        resource->handle = handle;
        org_kde_kwin_outputconfiguration_bind_resource(resource);
        return resource;
    }
    org_kde_kwin_outputconfiguration::Resource *org_kde_kwin_outputconfiguration::Resource::fromResource(struct ::wl_resource *resource)
    {
        if (Q_UNLIKELY(!resource))
            return nullptr;
        if (wl_resource_instance_of(resource, &::org_kde_kwin_outputconfiguration_interface, &m_org_kde_kwin_outputconfiguration_interface))
            return static_cast<Resource *>(wl_resource_get_user_data(resource));
        return nullptr;
    }

    const struct ::org_kde_kwin_outputconfiguration_interface org_kde_kwin_outputconfiguration::m_org_kde_kwin_outputconfiguration_interface = {
        org_kde_kwin_outputconfiguration::handle_enable,
        org_kde_kwin_outputconfiguration::handle_mode,
        org_kde_kwin_outputconfiguration::handle_transform,
        org_kde_kwin_outputconfiguration::handle_position,
        org_kde_kwin_outputconfiguration::handle_scale,
        org_kde_kwin_outputconfiguration::handle_apply,
        org_kde_kwin_outputconfiguration::handle_scalef,
        org_kde_kwin_outputconfiguration::handle_colorcurves,
        org_kde_kwin_outputconfiguration::handle_destroy,
        org_kde_kwin_outputconfiguration::handle_overscan,
        org_kde_kwin_outputconfiguration::handle_set_vrr_policy,
        org_kde_kwin_outputconfiguration::handle_brightness,
        org_kde_kwin_outputconfiguration::handle_ctm,
        org_kde_kwin_outputconfiguration::handle_set_color_mode
    };

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_enable(Resource *, struct ::wl_resource *, int32_t )
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_mode(Resource *, struct ::wl_resource *, int32_t )
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_transform(Resource *, struct ::wl_resource *, int32_t )
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_position(Resource *, struct ::wl_resource *, int32_t , int32_t )
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_scale(Resource *, struct ::wl_resource *, int32_t )
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_apply(Resource *)
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_scalef(Resource *, struct ::wl_resource *, wl_fixed_t )
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_colorcurves(Resource *, struct ::wl_resource *, wl_array *, wl_array *, wl_array *)
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_destroy(Resource *)
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_overscan(Resource *, struct ::wl_resource *, uint32_t )
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_set_vrr_policy(Resource *, struct ::wl_resource *, uint32_t )
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_brightness(Resource *, struct ::wl_resource *, int32_t )
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_ctm(Resource *, struct ::wl_resource *, int32_t , int32_t , int32_t )
    {
    }

    void org_kde_kwin_outputconfiguration::org_kde_kwin_outputconfiguration_set_color_mode(Resource *, struct ::wl_resource *, uint32_t )
    {
    }


    void org_kde_kwin_outputconfiguration::handle_enable(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *outputdevice,
        int32_t enable)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputconfiguration_object)) {
            return;
        }
        static_cast<org_kde_kwin_outputconfiguration *>(r->org_kde_kwin_outputconfiguration_object)->org_kde_kwin_outputconfiguration_enable(
            r,
            outputdevice,
            enable);
    }

    void org_kde_kwin_outputconfiguration::handle_mode(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *outputdevice,
        int32_t mode_id)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputconfiguration_object)) {
            return;
        }
        static_cast<org_kde_kwin_outputconfiguration *>(r->org_kde_kwin_outputconfiguration_object)->org_kde_kwin_outputconfiguration_mode(
            r,
            outputdevice,
            mode_id);
    }

    void org_kde_kwin_outputconfiguration::handle_transform(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *outputdevice,
        int32_t transform)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputconfiguration_object)) {
            return;
        }
        static_cast<org_kde_kwin_outputconfiguration *>(r->org_kde_kwin_outputconfiguration_object)->org_kde_kwin_outputconfiguration_transform(
            r,
            outputdevice,
            transform);
    }

    void org_kde_kwin_outputconfiguration::handle_position(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *outputdevice,
        int32_t x,
        int32_t y)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputconfiguration_object)) {
            return;
        }
        static_cast<org_kde_kwin_outputconfiguration *>(r->org_kde_kwin_outputconfiguration_object)->org_kde_kwin_outputconfiguration_position(
            r,
            outputdevice,
            x,
            y);
    }

    void org_kde_kwin_outputconfiguration::handle_scale(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *outputdevice,
        int32_t scale)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputconfiguration_object)) {
            return;
        }
        static_cast<org_kde_kwin_outputconfiguration *>(r->org_kde_kwin_outputconfiguration_object)->org_kde_kwin_outputconfiguration_scale(
            r,
            outputdevice,
            scale);
    }

    void org_kde_kwin_outputconfiguration::handle_apply(
        ::wl_client *client,
        struct wl_resource *resource)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputconfiguration_object)) {
            return;
        }
        static_cast<org_kde_kwin_outputconfiguration *>(r->org_kde_kwin_outputconfiguration_object)->org_kde_kwin_outputconfiguration_apply(
            r);
    }

    void org_kde_kwin_outputconfiguration::handle_scalef(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *outputdevice,
        wl_fixed_t scale)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputconfiguration_object)) {
            return;
        }
        static_cast<org_kde_kwin_outputconfiguration *>(r->org_kde_kwin_outputconfiguration_object)->org_kde_kwin_outputconfiguration_scalef(
            r,
            outputdevice,
            scale);
    }

    void org_kde_kwin_outputconfiguration::handle_colorcurves(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *outputdevice,
        wl_array *red,
        wl_array *green,
        wl_array *blue)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputconfiguration_object)) {
            return;
        }
        static_cast<org_kde_kwin_outputconfiguration *>(r->org_kde_kwin_outputconfiguration_object)->org_kde_kwin_outputconfiguration_colorcurves(
            r,
            outputdevice,
            red,
            green,
            blue);
    }

    void org_kde_kwin_outputconfiguration::handle_destroy(
        ::wl_client *client,
        struct wl_resource *resource)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputconfiguration_object)) {
            wl_resource_destroy(resource);
            return;
        }
        static_cast<org_kde_kwin_outputconfiguration *>(r->org_kde_kwin_outputconfiguration_object)->org_kde_kwin_outputconfiguration_destroy(
            r);
    }

    void org_kde_kwin_outputconfiguration::handle_overscan(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *outputdevice,
        uint32_t overscan)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputconfiguration_object)) {
            return;
        }
        static_cast<org_kde_kwin_outputconfiguration *>(r->org_kde_kwin_outputconfiguration_object)->org_kde_kwin_outputconfiguration_overscan(
            r,
            outputdevice,
            overscan);
    }

    void org_kde_kwin_outputconfiguration::handle_set_vrr_policy(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *outputdevice,
        uint32_t policy)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputconfiguration_object)) {
            return;
        }
        static_cast<org_kde_kwin_outputconfiguration *>(r->org_kde_kwin_outputconfiguration_object)->org_kde_kwin_outputconfiguration_set_vrr_policy(
            r,
            outputdevice,
            policy);
    }

    void org_kde_kwin_outputconfiguration::handle_brightness(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *outputdevice,
        int32_t brightness)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputconfiguration_object)) {
            return;
        }
        static_cast<org_kde_kwin_outputconfiguration *>(r->org_kde_kwin_outputconfiguration_object)->org_kde_kwin_outputconfiguration_brightness(
            r,
            outputdevice,
            brightness);
    }

    void org_kde_kwin_outputconfiguration::handle_ctm(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *outputdevice,
        int32_t red,
        int32_t green,
        int32_t blue)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputconfiguration_object)) {
            return;
        }
        static_cast<org_kde_kwin_outputconfiguration *>(r->org_kde_kwin_outputconfiguration_object)->org_kde_kwin_outputconfiguration_ctm(
            r,
            outputdevice,
            red,
            green,
            blue);
    }

    void org_kde_kwin_outputconfiguration::handle_set_color_mode(
        ::wl_client *client,
        struct wl_resource *resource,
        struct ::wl_resource *outputdevice,
        uint32_t color_mode)
    {
        Q_UNUSED(client);
        Resource *r = Resource::fromResource(resource);
        if (Q_UNLIKELY(!r->org_kde_kwin_outputconfiguration_object)) {
            return;
        }
        static_cast<org_kde_kwin_outputconfiguration *>(r->org_kde_kwin_outputconfiguration_object)->org_kde_kwin_outputconfiguration_set_color_mode(
            r,
            outputdevice,
            color_mode);
    }

    void org_kde_kwin_outputconfiguration::send_applied()
    {
        Q_ASSERT_X(m_resource, "org_kde_kwin_outputconfiguration::applied", "Uninitialised resource");
        if (Q_UNLIKELY(!m_resource)) {
            qWarning("could not call org_kde_kwin_outputconfiguration::applied as it's not initialised");
            return;
        }
        send_applied(
            m_resource->handle);
    }

    void org_kde_kwin_outputconfiguration::send_applied(struct ::wl_resource *resource)
    {
        org_kde_kwin_outputconfiguration_send_applied(
            resource);
    }


    void org_kde_kwin_outputconfiguration::send_failed()
    {
        Q_ASSERT_X(m_resource, "org_kde_kwin_outputconfiguration::failed", "Uninitialised resource");
        if (Q_UNLIKELY(!m_resource)) {
            qWarning("could not call org_kde_kwin_outputconfiguration::failed as it's not initialised");
            return;
        }
        send_failed(
            m_resource->handle);
    }

    void org_kde_kwin_outputconfiguration::send_failed(struct ::wl_resource *resource)
    {
        org_kde_kwin_outputconfiguration_send_failed(
            resource);
    }

}

QT_WARNING_POP
QT_END_NAMESPACE
