// This file was generated by qtwaylandscanner
// source file is /usr/share/plasma-wayland-protocols/kde-output-device-v2.xml

#include "qwayland-server-kde-output-device-v2.h"

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

namespace QtWaylandServer {

    int kde_output_device_v2::deferred_destroy_global_func(void *data) {
        auto object = static_cast<kde_output_device_v2 *>(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->kde_output_device_v2_destroy_global();
        return 0;
    }

    kde_output_device_v2::kde_output_device_v2(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);
    }

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

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

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

    kde_output_device_v2::~kde_output_device_v2()
    {
        for (auto resource : qAsConst(m_resource_map))
            resource->kde_output_device_v2_object = nullptr;

        if (m_resource)
            m_resource->kde_output_device_v2_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 kde_output_device_v2::init(struct ::wl_client *client, int id, int version)
    {
        m_resource = bind(client, id, version);
    }

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

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

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

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

    const struct wl_interface *kde_output_device_v2::interface()
    {
        return &::kde_output_device_v2_interface;
    }

    kde_output_device_v2::Resource *kde_output_device_v2::kde_output_device_v2_allocate()
    {
        return new Resource;
    }

    void kde_output_device_v2::kde_output_device_v2_destroy_global()
    {
    }

    void kde_output_device_v2::kde_output_device_v2_bind_resource(Resource *)
    {
    }

    void kde_output_device_v2::kde_output_device_v2_destroy_resource(Resource *)
    {
    }

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

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

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

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


    void kde_output_device_v2::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, 5000);
    }

    kde_output_device_v2::Resource *kde_output_device_v2::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, &::kde_output_device_v2_interface, version, id);
        return bind(handle);
    }

    kde_output_device_v2::Resource *kde_output_device_v2::bind(struct ::wl_resource *handle)
    {
        Resource *resource = kde_output_device_v2_allocate();
        resource->kde_output_device_v2_object = this;

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

    void kde_output_device_v2::send_geometry(int32_t x, int32_t y, int32_t physical_width, int32_t physical_height, int32_t subpixel, const QString &make, const QString &model, int32_t transform)
    {
        Q_ASSERT_X(m_resource, "kde_output_device_v2::geometry", "Uninitialised resource");
        if (Q_UNLIKELY(!m_resource)) {
            qWarning("could not call kde_output_device_v2::geometry as it's not initialised");
            return;
        }
        send_geometry(
            m_resource->handle,
            x,
            y,
            physical_width,
            physical_height,
            subpixel,
            make,
            model,
            transform);
    }

    void kde_output_device_v2::send_geometry(struct ::wl_resource *resource, int32_t x, int32_t y, int32_t physical_width, int32_t physical_height, int32_t subpixel, const QString &make, const QString &model, int32_t transform)
    {
        kde_output_device_v2_send_geometry(
            resource,
            x,
            y,
            physical_width,
            physical_height,
            subpixel,
            make.toUtf8().constData(),
            model.toUtf8().constData(),
            transform);
    }


    void kde_output_device_v2::send_current_mode(struct ::wl_resource *mode)
    {
        Q_ASSERT_X(m_resource, "kde_output_device_v2::current_mode", "Uninitialised resource");
        if (Q_UNLIKELY(!m_resource)) {
            qWarning("could not call kde_output_device_v2::current_mode as it's not initialised");
            return;
        }
        send_current_mode(
            m_resource->handle,
            mode);
    }

    void kde_output_device_v2::send_current_mode(struct ::wl_resource *resource, struct ::wl_resource *mode)
    {
        kde_output_device_v2_send_current_mode(
            resource,
            mode);
    }


    void kde_output_device_v2::send_mode(struct ::wl_resource *mode)
    {
        Q_ASSERT_X(m_resource, "kde_output_device_v2::mode", "Uninitialised resource");
        if (Q_UNLIKELY(!m_resource)) {
            qWarning("could not call kde_output_device_v2::mode as it's not initialised");
            return;
        }
        send_mode(
            m_resource->handle,
            mode);
    }

    void kde_output_device_v2::send_mode(struct ::wl_resource *resource, struct ::wl_resource *mode)
    {
        kde_output_device_v2_send_mode(
            resource,
            mode);
    }


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

    void kde_output_device_v2::send_done(struct ::wl_resource *resource)
    {
        kde_output_device_v2_send_done(
            resource);
    }


    void kde_output_device_v2::send_scale(wl_fixed_t factor)
    {
        Q_ASSERT_X(m_resource, "kde_output_device_v2::scale", "Uninitialised resource");
        if (Q_UNLIKELY(!m_resource)) {
            qWarning("could not call kde_output_device_v2::scale as it's not initialised");
            return;
        }
        send_scale(
            m_resource->handle,
            factor);
    }

    void kde_output_device_v2::send_scale(struct ::wl_resource *resource, wl_fixed_t factor)
    {
        kde_output_device_v2_send_scale(
            resource,
            factor);
    }


    void kde_output_device_v2::send_edid(const QString &raw)
    {
        Q_ASSERT_X(m_resource, "kde_output_device_v2::edid", "Uninitialised resource");
        if (Q_UNLIKELY(!m_resource)) {
            qWarning("could not call kde_output_device_v2::edid as it's not initialised");
            return;
        }
        send_edid(
            m_resource->handle,
            raw);
    }

    void kde_output_device_v2::send_edid(struct ::wl_resource *resource, const QString &raw)
    {
        kde_output_device_v2_send_edid(
            resource,
            raw.toUtf8().constData());
    }


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

    void kde_output_device_v2::send_enabled(struct ::wl_resource *resource, int32_t enabled)
    {
        kde_output_device_v2_send_enabled(
            resource,
            enabled);
    }


    void kde_output_device_v2::send_uuid(const QString &uuid)
    {
        Q_ASSERT_X(m_resource, "kde_output_device_v2::uuid", "Uninitialised resource");
        if (Q_UNLIKELY(!m_resource)) {
            qWarning("could not call kde_output_device_v2::uuid as it's not initialised");
            return;
        }
        send_uuid(
            m_resource->handle,
            uuid);
    }

    void kde_output_device_v2::send_uuid(struct ::wl_resource *resource, const QString &uuid)
    {
        kde_output_device_v2_send_uuid(
            resource,
            uuid.toUtf8().constData());
    }


    void kde_output_device_v2::send_serial_number(const QString &serialNumber)
    {
        Q_ASSERT_X(m_resource, "kde_output_device_v2::serial_number", "Uninitialised resource");
        if (Q_UNLIKELY(!m_resource)) {
            qWarning("could not call kde_output_device_v2::serial_number as it's not initialised");
            return;
        }
        send_serial_number(
            m_resource->handle,
            serialNumber);
    }

    void kde_output_device_v2::send_serial_number(struct ::wl_resource *resource, const QString &serialNumber)
    {
        kde_output_device_v2_send_serial_number(
            resource,
            serialNumber.toUtf8().constData());
    }


    void kde_output_device_v2::send_eisa_id(const QString &eisaId)
    {
        Q_ASSERT_X(m_resource, "kde_output_device_v2::eisa_id", "Uninitialised resource");
        if (Q_UNLIKELY(!m_resource)) {
            qWarning("could not call kde_output_device_v2::eisa_id as it's not initialised");
            return;
        }
        send_eisa_id(
            m_resource->handle,
            eisaId);
    }

    void kde_output_device_v2::send_eisa_id(struct ::wl_resource *resource, const QString &eisaId)
    {
        kde_output_device_v2_send_eisa_id(
            resource,
            eisaId.toUtf8().constData());
    }


    void kde_output_device_v2::send_capabilities(uint32_t flags)
    {
        Q_ASSERT_X(m_resource, "kde_output_device_v2::capabilities", "Uninitialised resource");
        if (Q_UNLIKELY(!m_resource)) {
            qWarning("could not call kde_output_device_v2::capabilities as it's not initialised");
            return;
        }
        send_capabilities(
            m_resource->handle,
            flags);
    }

    void kde_output_device_v2::send_capabilities(struct ::wl_resource *resource, uint32_t flags)
    {
        kde_output_device_v2_send_capabilities(
            resource,
            flags);
    }


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

    void kde_output_device_v2::send_overscan(struct ::wl_resource *resource, uint32_t overscan)
    {
        kde_output_device_v2_send_overscan(
            resource,
            overscan);
    }


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

    void kde_output_device_v2::send_vrr_policy(struct ::wl_resource *resource, uint32_t vrr_policy)
    {
        kde_output_device_v2_send_vrr_policy(
            resource,
            vrr_policy);
    }


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

    void kde_output_device_v2::send_rgb_range(struct ::wl_resource *resource, uint32_t rgb_range)
    {
        kde_output_device_v2_send_rgb_range(
            resource,
            rgb_range);
    }


    void kde_output_device_v2::send_name(const QString &name)
    {
        Q_ASSERT_X(m_resource, "kde_output_device_v2::name", "Uninitialised resource");
        if (Q_UNLIKELY(!m_resource)) {
            qWarning("could not call kde_output_device_v2::name as it's not initialised");
            return;
        }
        send_name(
            m_resource->handle,
            name);
    }

    void kde_output_device_v2::send_name(struct ::wl_resource *resource, const QString &name)
    {
        kde_output_device_v2_send_name(
            resource,
            name.toUtf8().constData());
    }



    int kde_output_device_mode_v2::deferred_destroy_global_func(void *data) {
        auto object = static_cast<kde_output_device_mode_v2 *>(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->kde_output_device_mode_v2_destroy_global();
        return 0;
    }

    kde_output_device_mode_v2::kde_output_device_mode_v2(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);
    }

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

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

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

    kde_output_device_mode_v2::~kde_output_device_mode_v2()
    {
        for (auto resource : qAsConst(m_resource_map))
            resource->kde_output_device_mode_v2_object = nullptr;

        if (m_resource)
            m_resource->kde_output_device_mode_v2_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 kde_output_device_mode_v2::init(struct ::wl_client *client, int id, int version)
    {
        m_resource = bind(client, id, version);
    }

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

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

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

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

    const struct wl_interface *kde_output_device_mode_v2::interface()
    {
        return &::kde_output_device_mode_v2_interface;
    }

    kde_output_device_mode_v2::Resource *kde_output_device_mode_v2::kde_output_device_mode_v2_allocate()
    {
        return new Resource;
    }

    void kde_output_device_mode_v2::kde_output_device_mode_v2_destroy_global()
    {
    }

    void kde_output_device_mode_v2::kde_output_device_mode_v2_bind_resource(Resource *)
    {
    }

    void kde_output_device_mode_v2::kde_output_device_mode_v2_destroy_resource(Resource *)
    {
    }

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

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

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

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


    void kde_output_device_mode_v2::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, 5000);
    }

    kde_output_device_mode_v2::Resource *kde_output_device_mode_v2::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, &::kde_output_device_mode_v2_interface, version, id);
        return bind(handle);
    }

    kde_output_device_mode_v2::Resource *kde_output_device_mode_v2::bind(struct ::wl_resource *handle)
    {
        Resource *resource = kde_output_device_mode_v2_allocate();
        resource->kde_output_device_mode_v2_object = this;

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

    void kde_output_device_mode_v2::send_size(int32_t width, int32_t height)
    {
        Q_ASSERT_X(m_resource, "kde_output_device_mode_v2::size", "Uninitialised resource");
        if (Q_UNLIKELY(!m_resource)) {
            qWarning("could not call kde_output_device_mode_v2::size as it's not initialised");
            return;
        }
        send_size(
            m_resource->handle,
            width,
            height);
    }

    void kde_output_device_mode_v2::send_size(struct ::wl_resource *resource, int32_t width, int32_t height)
    {
        kde_output_device_mode_v2_send_size(
            resource,
            width,
            height);
    }


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

    void kde_output_device_mode_v2::send_refresh(struct ::wl_resource *resource, int32_t refresh)
    {
        kde_output_device_mode_v2_send_refresh(
            resource,
            refresh);
    }


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

    void kde_output_device_mode_v2::send_preferred(struct ::wl_resource *resource)
    {
        kde_output_device_mode_v2_send_preferred(
            resource);
    }


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

    void kde_output_device_mode_v2::send_removed(struct ::wl_resource *resource)
    {
        kde_output_device_mode_v2_send_removed(
            resource);
    }

}

QT_WARNING_POP
QT_END_NAMESPACE
