
/********************************************************************
Copyright 2014  Martin Gräßlin <mgraesslin@kde.org>
Copyright 2018  David Edmundson <davidedmundson@kde.org>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or any
later version accepted by the membership of KDE e.V. (or its
successor approved by the membership of KDE e.V.), which shall
act as a proxy defined in Section 6 of version 3 of the license.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library.  If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#ifndef WAYLAND_REGISTRY_H
#define WAYLAND_REGISTRY_H

#include <QHash>
#include <QObject>
// STD
#include <Wrapland/Client/wraplandclient_export.h>
#include <memory>

struct ext_idle_notifier_v1;
struct wl_compositor;
struct wl_data_device_manager;
struct wl_display;
struct wl_output;
struct wl_registry;
struct wl_seat;
struct wl_shell;
struct wl_shm;
struct wl_subcompositor;
struct wp_presentation;
struct zwp_text_input_manager_v2;
struct zwp_text_input_manager_v3;
struct _wl_fullscreen_shell;
struct org_kde_kwin_appmenu_manager;
struct org_kde_kwin_fake_input;
struct org_kde_kwin_idle;
struct org_kde_kwin_keystate;
struct org_kde_kwin_remote_access_manager;
struct org_kde_kwin_dpms_manager;
struct org_kde_kwin_shadow_manager;
struct org_kde_kwin_blur_manager;
struct org_kde_kwin_contrast_manager;
struct org_kde_kwin_slide_manager;
struct org_kde_plasma_activation_feedback;
struct org_kde_plasma_shell;
struct org_kde_plasma_virtual_desktop_management;
struct org_kde_plasma_window_management;
struct org_kde_kwin_server_decoration_palette_manager;
struct wp_drm_lease_device_v1;
struct wp_viewporter;
struct xdg_activation_v1;
struct xdg_shell;
struct xdg_wm_base;
struct zwp_input_method_manager_v2;
struct zkwinft_output_management_v1;
struct zkwinft_output_device_v1;
struct zwlr_data_control_manager_v1;
struct zwlr_layer_shell_v1;
struct zwlr_output_manager_v1;
struct zwp_relative_pointer_manager_v1;
struct zwp_pointer_gestures_v1;
struct zwp_pointer_constraints_v1;
struct zwp_primary_selection_device_manager_v1;
struct zxdg_exporter_v2;
struct zxdg_importer_v2;
struct zwp_idle_inhibit_manager_v1;
struct zxdg_output_manager_v1;
struct zxdg_decoration_manager_v1;
struct zwp_keyboard_shortcuts_inhibit_manager_v1;
struct zwp_linux_dmabuf_v1;
struct zwp_virtual_keyboard_manager_v1;

namespace Wrapland
{
namespace Client
{

class AppMenuManager;
class Compositor;
class ConnectionThread;
class data_control_manager_v1;
class DataDeviceManager;
class DpmsManager;
class drm_lease_device_v1;
class EventQueue;
class FakeInput;
class FullscreenShell;
class OutputManagementV1;
class OutputDeviceV1;
class WlrOutputManagerV1;
class Idle;
class IdleInhibitManager;
class idle_notifier_v1;
class input_method_manager_v2;
class Keystate;
class LayerShellV1;
class RemoteAccessManager;
class Output;
class plasma_activation_feedback;
class PlasmaShell;
class PlasmaVirtualDesktopManagement;
class PlasmaWindowManagement;
class PointerConstraints;
class PointerGestures;
class PresentationManager;
class PrimarySelectionDeviceManager;
class Seat;
class ShadowManager;
class BlurManager;
class ContrastManager;
class SlideManager;
class Shell;
class ShmPool;
class ServerSideDecorationPaletteManager;
class SubCompositor;
class TextInputManagerV2;
class text_input_manager_v3;
class Viewporter;
class virtual_keyboard_manager_v1;
class XdgShell;
class RelativePointerManager;
class XdgActivationV1;
class XdgExporterUnstableV2;
class XdgImporterUnstableV2;
class XdgExporter;
class XdgImporter;
class XdgOutputManager;
class XdgDecorationManager;
class KeyboardShortcutsInhibitManagerV1;
class LinuxDmabufV1;

/**
 * @short Wrapper for the wl_registry interface.
 *
 * The purpose of this class is to manage the wl_registry interface.
 * This class supports some well-known interfaces and can create a
 * wrapper class for those.
 *
 * The main purpose is to emit signals whenever a new interface is
 * added or an existing interface is removed. For the well known interfaces
 * dedicated signals are emitted allowing a user to connect directly to the
 * signal announcing the interface it is interested in.
 *
 * To create and setup the Registry one needs to call create with either a
 * wl_display from an existing Wayland connection or a ConnectionThread instance:
 *
 * @code
 * ConnectionThread *connection; // existing connection
 * Registry registry;
 * registry.create(connection);
 * registry.setup();
 * @endcode
 *
 * The interfaces are announced in an asynchronous way by the Wayland server.
 * To initiate the announcing of the interfaces one needs to call setup.
 **/
class WRAPLANDCLIENT_EXPORT Registry : public QObject
{
    Q_OBJECT
public:
    /**
     * The well-known interfaces this Registry supports.
     * For each of the enum values the Registry is able to create a Wrapper
     * object.
     **/
    enum class Interface {
        Unknown,                  ///< Refers to an Unknown interface
        Compositor,               ///< Refers to the wl_compositor interface
        Shell,                    ///< Refers to the wl_shell interface
        Seat,                     ///< Refers to the wl_seat interface
        Shm,                      ///< Refers to the wl_shm interface
        Output,                   ///< Refers to the wl_output interface
        FullscreenShell,          ///< Refers to the _wl_fullscreen_shell interface
        LayerShellV1,             ///< Refers to zwlr_layer_shell_v1 interface
        SubCompositor,            ///< Refers to the wl_subcompositor interface;
        DataDeviceManager,        ///< Refers to the wl_data_device_manager interface
        PlasmaActivationFeedback, ///<
        PlasmaShell,              ///< Refers to org_kde_plasma_shell interface
        PlasmaWindowManagement,   ///< Refers to org_kde_plasma_window_management interface
        Idle,                     ///< Refers to org_kde_kwin_idle_interface interface
        IdleNotifierV1,
        InputMethodManagerV2,             ///< Refers to zwp_input_method_manager_v2, @since 0.523.0
        FakeInput,                        ///< Refers to org_kde_kwin_fake_input interface
        Shadow,                           ///< Refers to org_kde_kwin_shadow_manager interface
        Blur,                             ///< refers to org_kde_kwin_blur_manager interface
        Contrast,                         ///< refers to org_kde_kwin_contrast_manager interface
        Slide,                            ///< refers to org_kde_kwin_slide_manager
        Dpms,                             ///< Refers to org_kde_kwin_dpms_manager interface
        OutputManagementV1,               ///< Refers to the zkwinft_output_management_v1 interface
        OutputDeviceV1,                   ///< Refers to the zkwinft_output_device_v1 interface
        WlrOutputManagerV1,               ///< Refers to the zwlr_output_manager_v1 interface
        TextInputManagerV2,               ///< Refers to zwp_text_input_manager_v2, @since 0.0.523
        TextInputManagerV3,               ///< Refers to zwp_text_input_manager_v3, @since 0.523.0
        RelativePointerManagerUnstableV1, ///< Refers to zwp_relative_pointer_manager_v1, @since
                                          ///< 0.0.528
        PointerGesturesUnstableV1,        ///< Refers to zwp_pointer_gestures_v1, @since 0.0.529
        PointerConstraintsUnstableV1,     ///< Refers to zwp_pointer_constraints_v1, @since 0.0.529
        PresentationManager,              ///< Refers to wp_presentation, @since 0.519.0
        XdgActivationV1,                  ///< refers to xdg_activation_v1, @since 0.523.0
        XdgExporterUnstableV2,            ///< refers to zxdg_exporter_v2, @since 0.0.540
        XdgImporterUnstableV2,            ///< refers to zxdg_importer_v2, @since 0.0.540
        IdleInhibitManagerUnstableV1, ///< Refers to zwp_idle_inhibit_manager_v1 (unstable version
                                      ///< 1), @since 0.0.541
        AppMenu,                      /// Refers to org_kde_kwin_appmenu @since 0.0.542
        ServerSideDecorationPalette,  /// Refers to org_kde_kwin_server_decoration_palette_manager
                                      /// @since 0.0.542
        RemoteAccessManager, ///< Refers to org_kde_kwin_remote_access_manager interface, @since
                             ///< 0.0.545
        PlasmaVirtualDesktopManagement, ///< Refers to org_kde_plasma_virtual_desktop_management
                                        ///< interface @since 0.0.552
        XdgOutputUnstableV1,            /// refers to zxdg_output_v1, @since 0.0.547
        XdgShell,                       /// refers to xdg_wm_base @since 0.0.548
        XdgDecorationUnstableV1,        /// refers to zxdg_decoration_manager_v1, @since 0.0.554
        Keystate,                       ///< refers to org_kwin_keystate, @since 0.0.557
        Viewporter,                     ///< Refers to wp_viewporter, @since 0.518.0
        VirtualKeyboardManagerV1, ///< Refers to zwp_virtual_keyboard_manager_v1, @since 0.524.0
        KeyboardShortcutsInhibitManagerV1,
        LinuxDmabufV1,
        PrimarySelectionDeviceManager,
        DrmLeaseDeviceV1,     ///< Refers to wp_drm_lease_device_v1, @since 0.523.0
        DataControlManagerV1, ///< Refers to zwlr_data_control_manager_v1 interface, @since 0.523.0
    };
    explicit Registry(QObject* parent = nullptr);
    virtual ~Registry();

    /**
     * Releases the wl_registry interface.
     * After the interface has been released the Registry instance is no
     * longer valid and can be setup with another wl_registry interface.
     **/
    void release();

    /**
     * Gets the registry from the @p display.
     **/
    void create(wl_display* display);
    /**
     * Gets the registry from the @p connection.
     **/
    void create(ConnectionThread* connection);
    /**
     * Finalizes the setup of the Registry.
     * After calling this method the interfaces will be announced in an asynchronous way.
     * The Registry must have been created when calling this method.
     * @see create
     **/
    void setup();

    /**
     * Sets the @p queue to use for this Registry.
     *
     * The EventQueue should be set before the Registry gets setup.
     * The EventQueue gets automatically added to all interfaces created by
     * this Registry. So that all objects are in the same EventQueue.
     *
     * @param queue The event queue to use for this Registry.
     **/
    void setEventQueue(EventQueue* queue);
    /**
     * @returns The EventQueue used by this Registry
     **/
    EventQueue* eventQueue();

    /**
     * @returns @c true if managing a wl_registry.
     **/
    bool isValid() const;
    /**
     * @returns @c true if the Registry has an @p interface.
     **/
    bool hasInterface(Interface interface) const;

    /**
     * Representation of one announced interface.
     **/
    struct AnnouncedInterface {
        /**
         * The name of the announced interface.
         **/
        quint32 name;
        /**
         * The maximum supported version of the announced interface.
         **/
        quint32 version;
    };
    /**
     * Provides name and version for the @p interface.
     *
     * The first value of the returned pair is the "name", the second value is the "version".
     * If the @p interface has not been announced, both values are set to 0.
     * If there @p interface has been announced multiple times, the last announced is returned.
     * In case one is interested in all announced interfaces, one should prefer @link
     * interfaces(Interface) @endlink.
     *
     * The returned information can be passed into the bind or create methods.
     *
     * @param interface The well-known interface for which the name and version should be retrieved
     * @returns name and version of the given interface
     * @since 5.5
     **/
    AnnouncedInterface interface(Interface interface) const;
    /**
     * Provides all pairs of name and version for the well-known @p interface.
     *
     * If the @p interface has not been announced, an empty vector is returned.
     *
     * The returned information can be passed into the bind or create methods.
     *
     * @param interface The well-known interface for which the name and version should be retrieved
     * @returns All pairs of name and version of the given interface
     * @since 5.5
     **/
    QVector<AnnouncedInterface> interfaces(Interface interface) const;

    /**
     * @name Low-level bind methods for global interfaces.
     **/
    ///@{
    /**
     * Binds the wl_compositor with @p name and @p version.
     * If the @p name does not exist or is not for the compositor interface,
     * @c null will be returned.
     *
     * Prefer using createCompositor instead.
     * @see createCompositor
     **/
    wl_compositor* bindCompositor(uint32_t name, uint32_t version) const;
    /**
     * Binds the wl_shell with @p name and @p version.
     * If the @p name does not exist or is not for the shell interface,
     * @c null will be returned.
     *
     * Prefer using createShell instead.
     * @see createShell
     **/
    wl_shell* bindShell(uint32_t name, uint32_t version) const;
    /**
     * Binds the wl_seat with @p name and @p version.
     * If the @p name does not exist or is not for the seat interface,
     * @c null will be returned.
     *
     * Prefer using createSeat instead.
     * @see createSeat
     **/
    wl_seat* bindSeat(uint32_t name, uint32_t version) const;
    /**
     * Binds the wl_shm with @p name and @p version.
     * If the @p name does not exist or is not for the shm interface,
     * @c null will be returned.
     *
     * Prefer using createShmPool instead.
     * @see createShmPool
     **/
    wl_shm* bindShm(uint32_t name, uint32_t version) const;
    /**
     * Binds the zkwinft_output_management_v1 with @p name and @p version.
     * If the @p name does not exist or is not for the output management interface,
     * @c null will be returned.
     *
     * Prefer using createOutputManagementV1 instead.
     * @see createOutputManagementV1
     **/
    zkwinft_output_management_v1* bindOutputManagementV1(uint32_t name, uint32_t version) const;
    /**
     * Binds the zwlr_output_manager_v1 with @p name and @p version.
     * If the @p name does not exist or is not for the output manager interface,
     * @c null will be returned.
     *
     * Prefer using createWlrOutputManagerV1 instead.
     * @see createWlrOutputManagerV1
     */
    zwlr_output_manager_v1* bindWlrOutputManagerV1(uint32_t name, uint32_t version) const;
    /**
     * Binds the org_kde_kwin_outputdevice with @p name and @p version.
     * If the @p name does not exist or is not for the outputdevice interface,
     * @c null will be returned.
     *
     * Prefer using createOutput instead.
     * @see createOutput
     **/
    wl_output* bindOutput(uint32_t name, uint32_t version) const;
    /**
     * Binds the wl_subcompositor with @p name and @p version.
     * If the @p name does not exist or is not for the subcompositor interface,
     * @c null will be returned.
     *
     * Prefer using createSubCompositor instead.
     * @see createSubCompositor
     **/
    wl_subcompositor* bindSubCompositor(uint32_t name, uint32_t version) const;
    /**
     * Binds the zkwinft_output_device_v1 with @p name and @p version.
     * If the @p name does not exist or is not for the output interface,
     * @c null will be returned.
     *
     * Prefer using createOutputDeviceV1 instead.
     * @see createOutputDeviceV1
     **/
    zkwinft_output_device_v1* bindOutputDeviceV1(uint32_t name, uint32_t version) const;

    /**
     * Binds the _wl_fullscreen_shell with @p name and @p version.
     * If the @p name does not exist or is not for the fullscreen shell interface,
     * @c null will be returned.
     *
     * Prefer using createFullscreenShell instead.
     * @see createFullscreenShell
     **/
    _wl_fullscreen_shell* bindFullscreenShell(uint32_t name, uint32_t version) const;
    /**
     * Binds the wl_data_device_manager with @p name and @p version.
     * If the @p name does not exist or is not for the data device manager interface,
     * @c null will be returned.
     *
     * Prefer using createDataDeviceManager instead.
     * @see createDataDeviceManager
     **/
    wl_data_device_manager* bindDataDeviceManager(uint32_t name, uint32_t version) const;
    /**
     * Binds the wp_drm_lease_device_v1 with @p name and @p version.
     * If the @p name does not exists or is not for the device extension in version 1,
     * @c null will be returned.
     *
     * Prefer using createDrmLeaseDeviceV1
     * @since 0.0.540
     */
    wp_drm_lease_device_v1* bindDrmLeaseDeviceV1(uint32_t name, uint32_t version) const;
    /**
     * Binds the zwp_input_method_manager_v2 with @p name and @p version.
     * If the @p name does not exist or is not for the input method interface in unstable version 2,
     * @c null will be returned.
     *
     * Prefer using createInputMethodManagerV2 instead.
     * @see createInputMethodManagerV2
     * @since 0.523.0
     **/
    zwp_input_method_manager_v2* bindInputMethodManagerV2(uint32_t name, uint32_t version) const;
    /**
     * Binds the org_kde_plasma_activation_feedback with @p name and @p version.
     * If the @p name does not exist or is not for the Plasma activation feedback interface,
     * @c null will be returned.
     *
     * Prefer using createPlasmaActivationFeedback instead.
     * @see createPlasmaActivationFeedback
     **/
    org_kde_plasma_activation_feedback* bindPlasmaActivationFeedback(uint32_t name,
                                                                     uint32_t version) const;
    /**
     * Binds the org_kde_plasma_shell with @p name and @p version.
     * If the @p name does not exist or is not for the Plasma shell interface,
     * @c null will be returned.
     *
     * Prefer using createPlasmaShell instead.
     * @see createPlasmaShell
     * @since 5.4
     **/
    org_kde_plasma_shell* bindPlasmaShell(uint32_t name, uint32_t version) const;
    /**
     * Binds the org_kde_plasma_virtual_desktop_management with @p name and @p version.
     * If the @p name does not exist or is not for the Plasma Virtual desktop interface,
     * @c null will be returned.
     *
     * Prefer using createPlasmaShell instead.
     * @see createPlasmaShell
     * @since 0.0.552
     **/
    org_kde_plasma_virtual_desktop_management*
    bindPlasmaVirtualDesktopManagement(uint32_t name, uint32_t version) const;
    /**
     * Binds the org_kde_plasma_window_management with @p name and @p version.
     * If the @p name does not exist or is not for the Plasma window management interface,
     * @c null will be returned.
     *
     * Prefer using createPlasmaWindowManagement instead.
     * @see createPlasmaWindowManagement
     * @since 0.0.546
     **/
    org_kde_plasma_window_management* bindPlasmaWindowManagement(uint32_t name,
                                                                 uint32_t version) const;
    /**
     * Binds the ext_idle_notifier_v1 with @p name and @p version.
     * If the @p name does not exist or is not for the notifier interface,
     * @c null will be returned.
     *
     * Prefer using createIdle instead.
     * @see createIdleNotifierV1
     * @since 5.4
     **/
    ext_idle_notifier_v1* bindIdleNotifierV1(uint32_t name, uint32_t version) const;
    /**
     * Binds the org_kde_kwin_idle with @p name and @p version.
     * If the @p name does not exist or is not for the idle interface,
     * @c null will be returned.
     *
     * Prefer using createIdle instead.
     * @see createIdle
     * @since 5.4
     **/
    org_kde_kwin_idle* bindIdle(uint32_t name, uint32_t version) const;
    /**
     * Binds the org_kde_kwin_keystate with @p name and @p version.
     * If the @p name does not exist or is not for the keystate interface,
     * @c null will be returned.
     *
     * Prefer using createIdle instead.
     * @see createIdle
     * @since 5.4
     **/
    org_kde_kwin_keystate* bindKeystate(uint32_t name, uint32_t version) const;
    /**
     * Binds the org_kde_kwin_remote_access_manager with @p name and @p version.
     * If the @p name does not exist or is not for the idle interface,
     * @c null will be returned.
     *
     * Prefer using createRemoteAccessManager instead.
     * @see createRemoteAccessManager
     * @since 0.0.545
     **/
    org_kde_kwin_remote_access_manager* bindRemoteAccessManager(uint32_t name,
                                                                uint32_t version) const;
    /**
     * Binds the org_kde_kwin_fake_input with @p name and @p version.
     * If the @p name does not exist or is not for the fake input interface,
     * @c null will be returned.
     *
     * Prefer using createFakeInput instead.
     * @see createFakeInput
     * @since 5.4
     **/
    org_kde_kwin_fake_input* bindFakeInput(uint32_t name, uint32_t version) const;
    /**
     * Binds the org_kde_kwin_shadow_manager with @p name and @p version.
     * If the @p name does not exist or is not for the shadow manager interface,
     * @c null will be returned.
     *
     * Prefer using createShadowManager instead.
     * @see createShadowManager
     * @since 5.4
     **/
    org_kde_kwin_shadow_manager* bindShadowManager(uint32_t name, uint32_t version) const;
    /**
     * Binds the org_kde_kwin_blur_manager with @p name and @p version.
     * If the @p name does not exist or is not for the blur manager interface,
     * @c null will be returned.
     *
     * Prefer using createBlurManager instead.
     * @see createBlurManager
     * @since 5.5
     **/
    org_kde_kwin_blur_manager* bindBlurManager(uint32_t name, uint32_t version) const;
    /**
     * Binds the org_kde_kwin_contrast_manager with @p name and @p version.
     * If the @p name does not exist or is not for the contrast manager interface,
     * @c null will be returned.
     *
     * Prefer using createContrastManager instead.
     * @see createContrastManager
     * @since 5.5
     **/
    org_kde_kwin_contrast_manager* bindContrastManager(uint32_t name, uint32_t version) const;
    /**
     * Binds the zwlr_data_control_manager_v1 with @p name and @p version.
     * If the @p name does not exist or is not for the data control manager interface,
     * @c null will be returned.
     *
     * Prefer using createDataControlManagerV1 instead.
     * @see createDataControlManagerV1
     * @since 0.523.0
     **/
    zwlr_data_control_manager_v1* bindDataControlManagerV1(uint32_t name, uint32_t version) const;
    /**
     * Binds the zwlr_layer_shell_v1 with @p name and @p version.
     * If the @p name does not exist or is not for the layer shell interface,
     * @c null will be returned.
     *
     * Prefer using createLayerShellV1 instead.
     * @see createLayerShellV1
     * @since 0.522.0
     **/
    zwlr_layer_shell_v1* bindLayerShellV1(uint32_t name, uint32_t version) const;
    /**
     * Binds the org_kde_kwin_slide_manager with @p name and @p version.
     * If the @p name does not exist or is not for the slide manager interface,
     * @c null will be returned.
     *
     * Prefer using createSlideManager instead.
     * @see createSlideManager
     * @since 5.5
     **/
    org_kde_kwin_slide_manager* bindSlideManager(uint32_t name, uint32_t version) const;
    /**
     * Binds the org_kde_kwin_dpms_manager with @p name and @p version.
     * If the @p name does not exist or is not for the dpms manager interface,
     * @c null will be returned.
     *
     * Prefer using createDpmsManager instead.
     * @see createDpmsManager
     * @since 5.5
     **/
    org_kde_kwin_dpms_manager* bindDpmsManager(uint32_t name, uint32_t version) const;
    /**
     * Binds the zwp_text_input_manager_v2 with @p name and @p version.
     * If the @p name does not exist or is not for the text input interface in unstable version 2,
     * @c null will be returned.
     *
     * Prefer using createTextInputManagerV2 instead.
     * @see createTextInputManagerV2
     * @since 0.0.523
     **/
    zwp_text_input_manager_v2* bindTextInputManagerV2(uint32_t name, uint32_t version) const;
    /**
     * Binds the zwp_text_input_manager_v3 with @p name and @p version.
     * If the @p name does not exist or is not for the text input interface in unstable version 3,
     * @c null will be returned.
     *
     * Prefer using createTextInputManagerV3 instead.
     * @see createTextInputManagerV3
     * @since 0.523.0
     **/
    zwp_text_input_manager_v3* bindTextInputManagerV3(uint32_t name, uint32_t version) const;
    /**
     * Binds the wp_viewporter with @p name and @p version.
     * If the @p name does not exist or is not for the viewporter interface,
     * @c null will be returned.
     *
     * Prefer using createViewporter instead.
     * @see createViewporter
     * @since 0.518.0
     **/
    wp_viewporter* bindViewporter(uint32_t name, uint32_t version) const;
    /**
     * Binds the zwp_virtual_keyboard_manager_v1 with @p name and @p version.
     * If the @p name does not exist or is not for the text input interface in unstable version 3,
     * @c null will be returned.
     *
     * Prefer using createVirtualKeyboardManagerV1 instead.
     * @see createVirtualKeyboardManagerV1
     * @since 0.524.0
     **/
    zwp_virtual_keyboard_manager_v1* bindVirtualKeyboardManagerV1(uint32_t name,
                                                                  uint32_t version) const;
    /**
     * Binds the xdg_wm_base with @p name and @p version.
     * If the @p name does not exist or is not for the xdg shell interface in unstable version 5,
     * @c null will be returned.
     *
     * Prefer using createXdgShell instead.
     * @see createXdgShell
     * @since 0.0.539
     **/
    xdg_wm_base* bindXdgShell(uint32_t name, uint32_t version) const;
    /**
     * Binds the zwp_relative_pointer_manager_v1 with @p name and @p version.
     * If the @p name does not exist or is not for the relative pointer interface in unstable
     * version 1,
     * @c null will be returned.
     *
     * Prefer using createRelativePointerManager instead.
     * @see createRelativePointerManager
     * @since 0.0.520
     **/
    zwp_relative_pointer_manager_v1* bindRelativePointerManagerUnstableV1(uint32_t name,
                                                                          uint32_t version) const;
    /**
     * Binds the zwp_pointer_gestures_v1 with @p name and @p version.
     * If the @p name does not exist or is not for the pointer gestures interface in unstable
     * version 1,
     * @c null will be returned.
     *
     * Prefer using createPointerGestures instead.
     * @see createPointerGestures
     * @since 0.0.529
     **/
    zwp_pointer_gestures_v1* bindPointerGesturesUnstableV1(uint32_t name, uint32_t version) const;
    /**
     * Binds the zwp_pointer_constraints_v1 with @p name and @p version.
     * If the @p name does not exist or is not for the pointer constraints interface in unstable
     * version 1,
     * @c null will be returned.
     *
     * Prefer using createPointerConstraints instead.
     * @see createPointerConstraints
     * @since 0.0.529
     **/
    zwp_pointer_constraints_v1* bindPointerConstraintsUnstableV1(uint32_t name,
                                                                 uint32_t version) const;

    /**
     * Binds the wp_presentation with @p name and @p version.
     * If the @p name does not exist or is not for the presentation interface,
     * @c null will be returned.
     *
     * Prefer using createPresentationManager instead.
     * @see createPresentationManager
     * @since 0.520.0
     **/
    wp_presentation* bindPresentationManager(uint32_t name, uint32_t version) const;
    /**
     * Binds the xdg_activation_v1 with @p name and @p version.
     * If the @p name does not exist or is not for the activation interface,
     * @c null will be returned.
     *
     * Prefer using createXdgActivationV1 instead.
     * @see createXdgActivationV1
     * @since 0.523.0
     **/
    xdg_activation_v1* bindXdgActivationV1(uint32_t name, uint32_t version) const;

    /**
     * Binds the zwp_primary_selection_device_manager_v1 with @p name and @p version.
     * If the @p name does not exist or is not for the primary selection manager interface,
     * @c null will be returned.
     *
     * Prefer using createPrimarySelectionDeviceManager instead.
     * @see createPrimarySelectionDeviceManager
     **/
    zwp_primary_selection_device_manager_v1*
    bindPrimarySelectionDeviceManager(uint32_t name, uint32_t version) const;

    /**
     * Binds the zxdg_exporter_v2 with @p name and @p version.
     * If the @p name does not exists or isnot for the exporter
     * extension in unstable version 1,
     * @c null will be returned.
     *
     * Prefer using createXdgExporter
     * @since 0.0.540
     */
    zxdg_exporter_v2* bindXdgExporterUnstableV2(uint32_t name, uint32_t version) const;

    /**
     * Binds the zxdg_importer_v2 with @p name and @p version.
     * If the @p name does not exists or isnot for the importer
     * extension in unstable version 1,
     * @c null will be returned.
     *
     * Prefer using createXdgImporter
     * @since 0.0.540
     */
    zxdg_importer_v2* bindXdgImporterUnstableV2(uint32_t name, uint32_t version) const;

    /**
     * Binds the zwp_idle_inhibit_manager_v1 with @p name and @p version.
     * If the @p name does not exists or is not for the idle inhibit manager in unstable version 1,
     * @c null will be returned.
     *
     * Prefer using createIdleInhibitManager
     * @since 0.0.541
     */
    zwp_idle_inhibit_manager_v1* bindIdleInhibitManagerUnstableV1(uint32_t name,
                                                                  uint32_t version) const;

    /**
     * Binds the org_kde_kwin_appmenu_manager with @p name and @p version.
     * If the @p name does not exist or is not for the appmenu manager interface,
     * @c null will be returned.
     *
     * Prefer using createAppMenuManager instead.
     * @see createAppMenuManager
     * @since 0.0.542
     **/
    org_kde_kwin_appmenu_manager* bindAppMenuManager(uint32_t name, uint32_t version) const;

    /**
     * Binds the org_kde_kwin_server_decoration_palette_manager with @p name and @p version.
     * If the @p name does not exist or is not for the server side decoration palette manager
     * interface,
     * @c null will be returned.
     *
     * Prefer using createServerSideDecorationPaletteManager instead.
     * @see createServerSideDecorationPaletteManager
     * @since 0.0.542
     **/
    org_kde_kwin_server_decoration_palette_manager*
    bindServerSideDecorationPaletteManager(uint32_t name, uint32_t version) const;

    /**
     * Binds the zxdg_output_v1 with @p name and @p version.
     * If the @p name does not exist,
     * @c null will be returned.
     *
     * Prefer using createXdgOutputManager instead.
     * @see createXdgOutputManager
     * @since 0.0.547
     **/
    zxdg_output_manager_v1* bindXdgOutputUnstableV1(uint32_t name, uint32_t version) const;

    /**
     * Binds the zxdg_decoration_manager_v1 with @p name and @p version.
     * If the @p name does not exist,
     * @c null will be returned.
     *
     * Prefer using createXdgDecorationManager instead.
     * @see createXdgDecorationManager
     * @since 0.0.554
     **/
    zxdg_decoration_manager_v1* bindXdgDecorationUnstableV1(uint32_t name, uint32_t version) const;

    /**
     * Binds the zwp_keyboard_shortcuts_inhibit_manager_v1 with @p name and @p version.
     * If the @p name does not exist,
     * @c null will be returned.
     *
     * Prefer using createXdgDecorationManager instead.
     * @see createXdgDecorationManager
     * @since 0.0.554
     **/
    zwp_keyboard_shortcuts_inhibit_manager_v1*
    bindKeyboardShortcutsInhibitManagerV1(uint32_t name, uint32_t version) const;

    /** Binds the zwp_linux_dmabuf_v1 with @p name and @p version.
     * If the @p name does not exist,
     * @c null will be returned.
     *
     * Prefer using createLinuxDmabufV1 instead.
     * @see createLinuxDmabufV1
     * @since 0.520.0
     **/
    zwp_linux_dmabuf_v1* bindLinuxDmabufV1(uint32_t name, uint32_t version) const;

    ///@}

    /**
     * @name Convenient factory methods for global objects.
     **/
    ///@{
    /**
     * Creates a Compositor and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the wl_compositor interface,
     * the returned Compositor will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the wl_compositor interface to bind
     * @param version The version or the wl_compositor interface to use
     * @param parent The parent for Compositor
     *
     * @returns The created Compositor.
     **/
    Compositor* createCompositor(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a Seat and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the wl_seat interface,
     * the returned Seat will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the wl_seat interface to bind
     * @param version The version or the wl_seat interface to use
     * @param parent The parent for Seat
     *
     * @returns The created Seat.
     **/
    Shell* createShell(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a Compositor and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the wl_compositor interface,
     * the returned Compositor will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the wl_compositor interface to bind
     * @param version The version or the wl_compositor interface to use
     * @param parent The parent for Compositor
     *
     * @returns The created Compositor.
     **/
    Seat* createSeat(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a ShmPool and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the wl_shm interface,
     * the returned ShmPool will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the wl_shm interface to bind
     * @param version The version or the wl_shm interface to use
     * @param parent The parent for ShmPool
     *
     * @returns The created ShmPool.
     **/
    ShmPool* createShmPool(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a SubCompositor and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the wl_subcompositor interface,
     * the returned SubCompositor will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the wl_subcompositor interface to bind
     * @param version The version or the wl_subcompositor interface to use
     * @param parent The parent for SubCompositor
     *
     * @returns The created SubCompositor.
     **/
    SubCompositor* createSubCompositor(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates an Output and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the wl_output interface,
     * the returned Output will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the wl_output interface to bind
     * @param version The version or the wl_output interface to use
     * @param parent The parent for Output
     *
     * @returns The created Output.
     **/
    Output* createOutput(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates an OutputManagementV1 and sets it up to manage the interface identified
     * by @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the zkwinft_output_management_v1 interface,
     * the returned OutputManagementV1 will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the zkwinft_output_management_v1 interface to bind
     * @param version The version or the zkwinft_output_management_v1 interface to use
     * @param parent The parent for OutputManagementV1
     *
     * @returns The created OutputManagementV1.
     **/
    OutputManagementV1*
    createOutputManagementV1(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates an OutputDeviceV1 and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the zkwinft_output_device_v1 interface,
     * the returned OutputDeviceV1 will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the zkwinft_output_device_v1 interface to bind
     * @param version The version or the zkwinft_output_device_v1 interface to use
     * @param parent The parent for OutputDeviceV1
     *
     * @returns The created OutputDeviceV1.
     **/
    OutputDeviceV1* createOutputDeviceV1(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates an OutputManagementV1 and sets it up to manage the interface identified
     * by @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the zkwinft_output_management_v1 interface,
     * the returned OutputManagementV1 will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the zkwinft_output_management_v1 interface to bind
     * @param version The version or the zkwinft_output_management_v1 interface to use
     * @param parent The parent for OutputManagementV1
     *
     * @returns The created OutputManagementV1.
     */
    WlrOutputManagerV1*
    createWlrOutputManagerV1(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a FullscreenShell and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the _wl_fullscreen_shell interface,
     * the returned FullscreenShell will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the _wl_fullscreen_shell interface to bind
     * @param version The version or the _wl_fullscreen_shell interface to use
     * @param parent The parent for FullscreenShell
     *
     * @returns The created FullscreenShell.
     * @since 5.5
     **/
    FullscreenShell*
    createFullscreenShell(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a data_control_manager_v1 and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the zwlr_data_control_manager_v1 interface,
     * the returned data_control_manager_v1 will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the zwlr_data_control_manager_v1 interface to bind
     * @param version The version or the zwlr_data_control_manager_v1 interface to use
     * @param parent The parent for data_control_manager_v1
     *
     * @returns The created data_control_manager_v1.
     * @since 0.523.0
     **/
    data_control_manager_v1*
    createDataControlManagerV1(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a DataDeviceManager and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the wl_data_device_manager interface,
     * the returned DataDeviceManager will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the wl_data_device_manager interface to bind
     * @param version The version or the wl_data_device_manager interface to use
     * @param parent The parent for DataDeviceManager
     *
     * @returns The created DataDeviceManager.
     **/
    DataDeviceManager*
    createDataDeviceManager(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a drm_lease_device_v1 and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * This factory method supports the following interfaces:
     * @li wp_drm_lease_device_v1
     *
     * If @p name is for one of the supported interfaces the corresponding manager will be created,
     * otherwise @c null will be returned.
     *
     * @param name The name of the interface to bind
     * @param version The version of the interface to use
     * @param parent The parent for the drm_lease_device_v1
     *
     * @returns The created drm_lease_device_v1
     * @since 0.0.523
     **/
    drm_lease_device_v1*
    createDrmLeaseDeviceV1(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a plasma_activation_feedback and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_plasma_activation_feedback
     * interface, the returned plasma_activation_feedback will not be valid. Therefore it's
     * recommended to call isValid on the created instance.
     *
     * @param name The name of the org_kde_plasma_activation_feedback interface to bind
     * @param version The version or the org_kde_plasma_activation_feedback interface to use
     * @param parent The parent for plasma_activation_feedback
     *
     * @returns The created plasma_activation_feedback.
     **/
    plasma_activation_feedback*
    createPlasmaActivationFeedback(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a PlasmaShell and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_plasma_shell interface,
     * the returned PlasmaShell will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the org_kde_plasma_shell interface to bind
     * @param version The version or the org_kde_plasma_shell interface to use
     * @param parent The parent for PlasmaShell
     *
     * @returns The created PlasmaShell.
     * @since 5.4
     **/
    PlasmaShell* createPlasmaShell(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a PlasmaVirtualDesktopManagement and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_plasma_virtual_desktop_management
     * interface, the returned VirtualDesktop will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the org_kde_plasma_virtual_desktop_management interface to bind
     * @param version The version or the org_kde_plasma_virtual_desktop_management interface to use
     * @param parent The parent for PlasmaShell
     *
     * @returns The created PlasmaShell.
     * @since 0.0.552
     **/
    PlasmaVirtualDesktopManagement*
    createPlasmaVirtualDesktopManagement(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a PlasmaWindowManagement and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_plasma_window_management interface,
     * the returned PlasmaWindowManagement will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the org_kde_plasma_window_management interface to bind
     * @param version The version or the org_kde_plasma_window_management interface to use
     * @param parent The parent for PlasmaWindowManagement
     *
     * @returns The created PlasmaWindowManagement.
     * @since 5.4
     **/
    PlasmaWindowManagement*
    createPlasmaWindowManagement(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates an Idle and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_kwin_idle interface,
     * the returned Idle will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the org_kde_kwin_idle interface to bind
     * @param version The version or the org_kde_kwin_idle interface to use
     * @param parent The parent for Idle
     *
     * @returns The created Idle.
     * @since 5.4
     **/
    Idle* createIdle(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates an idle_notifier_v1 and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the ext_idle_notifier_v1 interface,
     * the returned idle_notifier_v1 will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the ext_idle_notifier_v1 interface to bind
     * @param version The version or the ext_idle_notifier_v1 interface to use
     * @param parent The parent for idle_notifier_v1
     *
     * @returns The created idle_notifier_v1.
     * @since 5.4
     **/
    idle_notifier_v1*
    createIdleNotifierV1(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a input_method_manager_v2 and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * This factory method supports the following interfaces:
     * @li zwp_input_method_manager_v2
     *
     * If @p name is for one of the supported interfaces the corresponding manager will be created,
     * otherwise @c null will be returned.
     *
     * @param name The name of the interface to bind
     * @param version The version of the interface to use
     * @param parent The parent for the input_method_manager_v2
     *
     * @returns The created input_method_manager_v2
     * @since 0.523.0
     **/
    input_method_manager_v2*
    createInputMethodManagerV2(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a KEystate and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_kwin_keystate interface,
     * the returned Idle will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the org_kde_kwin_keystate interface to bind
     * @param version The version or the org_kde_kwin_keystate interface to use
     * @param parent The parent for Idle
     *
     * @returns The created Idle.
     * @since 5.4
     **/
    Keystate* createKeystate(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a RemoteAccessManager and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_kwin_remote_access_manager
     * interface, the returned RemoteAccessManager will not be valid. Therefore it's recommended to
     * call isValid on the created instance.
     *
     * @param name The name of the org_kde_kwin_remote_access_manager interface to bind
     * @param version The version or the org_kde_kwin_remote_access_manager interface to use
     * @param parent The parent for RemoteAccessManager
     *
     * @returns The created RemoteAccessManager.
     * @since 0.0.545
     **/
    RemoteAccessManager*
    createRemoteAccessManager(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a FakeInput and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_kwin_fake_input interface,
     * the returned FakeInput will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the org_kde_kwin_fake_input interface to bind
     * @param version The version or the org_kde_kwin_fake_input interface to use
     * @param parent The parent for FakeInput
     *
     * @returns The created FakeInput.
     * @since 5.4
     **/
    FakeInput* createFakeInput(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a ShadowManager and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_kwin_shadow_manager interface,
     * the returned ShadowManager will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the org_kde_kwin_shadow_manager interface to bind
     * @param version The version or the org_kde_kwin_shadow_manager interface to use
     * @param parent The parent for ShadowManager
     *
     * @returns The created ShadowManager.
     * @since 5.4
     **/
    ShadowManager* createShadowManager(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a LayerShellV1 and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the zwlr_layer_shell_v1 interface,
     * the returned LayerShellV1 will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the zwlr_layer_shell_v1 interface to bind
     * @param version The version or the zwlr_layer_shell_v1 interface to use
     * @param parent The parent for LayerShellV1
     *
     * @returns The created LayerShellV1.
     * @since 0.522.0
     **/
    LayerShellV1* createLayerShellV1(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a BlurManager and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_kwin_blur_manager interface,
     * the returned BlurManager will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the org_kde_kwin_blur_manager interface to bind
     * @param version The version or the org_kde_kwin_blur_manager interface to use
     * @param parent The parent for BlurManager
     *
     * @returns The created BlurManager.
     * @since 5.5
     **/
    BlurManager* createBlurManager(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a ContrastManager and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_kwin_contrast_manager interface,
     * the returned ContrastManager will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the org_kde_kwin_contrast_manager interface to bind
     * @param version The version or the org_kde_kwin_contrast_manager interface to use
     * @param parent The parent for ContrastManager
     *
     * @returns The created ContrastManager.
     * @since 5.5
     **/
    ContrastManager*
    createContrastManager(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a SlideManager and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_kwin_slide_manager interface,
     * the returned SlideManager will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the org_kde_kwin_slide_manager interface to bind
     * @param version The version or the org_kde_kwin_slide_manager interface to use
     * @param parent The parent for SlideManager
     *
     * @returns The created SlideManager.
     * @since 5.5
     **/
    SlideManager* createSlideManager(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a DpmsManager and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_kwin_dpms_manager interface,
     * the returned DpmsManager will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the org_kde_kwin_dpms_manager interface to bind
     * @param version The version or the org_kde_kwin_dpms_manager interface to use
     * @param parent The parent for DpmsManager
     *
     * @returns The created DpmsManager.
     * @since 5.5
     **/
    DpmsManager* createDpmsManager(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a TextInputManagerV2 and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * This factory method supports the following interfaces:
     * @li zwp_text_input_manager_v2
     *
     * If @p name is for one of the supported interfaces the corresponding manager will be created,
     * otherwise @c null will be returned.
     *
     * @param name The name of the interface to bind
     * @param version The version of the interface to use
     * @param parent The parent for the TextInputManagerV2
     *
     * @returns The created TextInputManagerV2
     * @since 0.0.523
     **/
    TextInputManagerV2*
    createTextInputManagerV2(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a text_input_manager_v3 and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * This factory method supports the following interfaces:
     * @li zwp_text_input_manager_v3
     *
     * If @p name is for one of the supported interfaces the corresponding manager will be created,
     * otherwise @c null will be returned.
     *
     * @param name The name of the interface to bind
     * @param version The version of the interface to use
     * @param parent The parent for the text_input_manager_v3
     *
     * @returns The created text_input_manager_v3
     * @since 0.523.0
     **/
    text_input_manager_v3*
    createTextInputManagerV3(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a Viewporter and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the wp_viewporter interface,
     * the returned Viewporter will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the interface to bind
     * @param version The version of the interface to use
     * @param parent The parent for the Viewporter
     *
     * @returns The created Viewporter
     * @since 0.518.0
     **/
    Viewporter* createViewporter(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a text_input_manager_v3 and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * This factory method supports the following interfaces:
     * @li zwp_virtual_keyboard_manager_v1
     *
     * If @p name is for one of the supported interfaces the corresponding manager will be created,
     * otherwise @c null will be returned.
     *
     * @param name The name of the interface to bind
     * @param version The version of the interface to use
     * @param parent The parent for the virtual_keyboard_manager_v1
     *
     * @returns The created virtual_keyboard_manager_v1
     * @since 0.524.0
     **/
    virtual_keyboard_manager_v1*
    createVirtualKeyboardManagerV1(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates an XdgShell and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * This factory method supports the following interfaces:
     * @li xdg_shell (Unstable version 5)
     *
     * If @p name is for one of the supported interfaces the corresponding shell will be created,
     * otherwise @c null will be returned.
     *
     * @param name The name of the interface to bind
     * @param version The version of the interface to use
     * @param parent The parent for the XdgShell
     *
     * @returns The created XdgShell
     * @since 0.0.525
     **/
    XdgShell* createXdgShell(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a RelativePointerManager and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * This factory method supports the following interfaces:
     * @li zwp_relative_pointer_manager_v1
     *
     * If @p name is for one of the supported interfaces the corresponding manager will be created,
     * otherwise @c null will be returned.
     *
     * @param name The name of the interface to bind
     * @param version The version of the interface to use
     * @param parent The parent for the RelativePointerManager
     *
     * @returns The created RelativePointerManager
     * @since 0.0.528
     **/
    RelativePointerManager*
    createRelativePointerManager(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a PointerGestures and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * This factory method supports the following interfaces:
     * @li zwp_pointer_gestures_v1
     *
     * If @p name is for one of the supported interfaces the corresponding manager will be created,
     * otherwise @c null will be returned.
     *
     * @param name The name of the interface to bind
     * @param version The version of the interface to use
     * @param parent The parent for the PointerGestures
     *
     * @returns The created PointerGestures
     * @since 0.0.529
     **/
    PointerGestures*
    createPointerGestures(quint32 name, quint32 version, QObject* parent = nullptr);
    /**
     * Creates a PointerConstraints and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * This factory method supports the following interfaces:
     * @li zwp_pointer_constraints_v1
     *
     * If @p name is for one of the supported interfaces the corresponding manager will be created,
     * otherwise @c null will be returned.
     *
     * @param name The name of the interface to bind
     * @param version The version of the interface to use
     * @param parent The parent for the PointerConstraints
     *
     * @returns The created PointerConstraints
     * @since 0.0.529
     **/
    PointerConstraints*
    createPointerConstraints(quint32 name, quint32 version, QObject* parent = nullptr);

    /**
     * Creates a PresentationManager and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the wp_presentation interface,
     * the returned PresentationManager will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the wp_presentation interface to bind
     * @param version The version or the wp_presentation interface to use
     * @param parent The parent for PresentationManager
     *
     * @returns The created PresentationManager.
     * @since 0.520.0
     **/
    PresentationManager*
    createPresentationManager(quint32 name, quint32 version, QObject* parent = nullptr);

    /**
     * Creates a PrimarySelectionDeviceManager and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the wl_data_device_manager interface,
     * the returned PrimarySelectionDeviceManager will not be valid. Therefore it's recommended to
     * call isValid on the created instance.
     *
     * @param name The name of the wl_data_device_manager interface to bind
     * @param version The version or the wl_data_device_manager interface to use
     * @param parent The parent for PrimarySelectionDeviceManager
     *
     * @returns The created PrimarySelectionDeviceManager.
     **/
    PrimarySelectionDeviceManager*
    createPrimarySelectionDeviceManager(quint32 name, quint32 version, QObject* parent = nullptr);

    /**
     * Creates a XdgActivationV1 and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the xdg_activation_v1 interface,
     * the returned XdgActivationV1 will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the xdg_activation_v1 interface to bind
     * @param version The version or the xdg_activation_v1 interface to use
     * @param parent The parent for XdgActivationV1
     *
     * @returns The created XdgActivationV1.
     * @since 0.523.0
     **/
    XdgActivationV1*
    createXdgActivationV1(quint32 name, quint32 version, QObject* parent = nullptr);

    /**
     * Creates an XdgExporter and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * This factory method supports the following interfaces:
     * @li zxdg_exporter_v2
     *
     * If @p name is for one of the supported interfaces the corresponding manager will be created,
     * otherwise @c null will be returned.
     *
     * @returns The created XdgExporter
     * @since 0.0.540
     */
    XdgExporter* createXdgExporter(quint32 name, quint32 version, QObject* parent = nullptr);

    /**
     * Creates an XdgImporter and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * This factory method supports the following interfaces:
     * @li zxdg_importer_v2
     *
     * If @p name is for one of the supported interfaces the corresponding manager will be created,
     * otherwise @c null will be returned.
     *
     * @returns The created XdgImporter
     * @since 0.0.540
     */
    XdgImporter* createXdgImporter(quint32 name, quint32 version, QObject* parent = nullptr);

    /**
     * Creates an IdleInhibitManager and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * This factory method supports the following interfaces:
     * @li zwp_idle_inhibit_manager_v1
     *
     * If @p name is for one of the supported interfaces the corresponding manager will be created,
     * otherwise @c null will be returned.
     *
     * @returns The created IdleInhibitManager
     * @since 0.0.541
     */
    IdleInhibitManager*
    createIdleInhibitManager(quint32 name, quint32 version, QObject* parent = nullptr);

    /**
     * Creates a AppMenuManager and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_kwin_appmenu_manager interface,
     * the returned AppMenuManager will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the org_kde_kwin_appmenu_manager interface to bind
     * @param version The version or the org_kde_kwin_appmenu_manager interface to use
     * @param parent The parent for AppMenuManager
     *
     * @returns The created AppMenuManager.
     * @since 0.0.542
     **/
    AppMenuManager* createAppMenuManager(quint32 name, quint32 version, QObject* parent = nullptr);

    /**
     * Creates a ServerSideDecorationPaletteManager and sets it up to manage the interface
     * identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the org_kde_kwin_appmenu_manager interface,
     * the returned ServerSideDecorationPaletteManager will not be valid. Therefore it's recommended
     * to call isValid on the created instance.
     *
     * @param name The name of the org_kde_kwin_server_decoration_palette_manager interface to bind
     * @param version The version or the org_kde_kwin_server_decoration_palette_manager interface to
     * use
     * @param parent The parent for ServerSideDecorationPaletteManager
     *
     * @returns The created ServerSideDecorationPaletteManager.
     * @since 0.0.542
     **/
    ServerSideDecorationPaletteManager* createServerSideDecorationPaletteManager(quint32 name,
                                                                                 quint32 version,
                                                                                 QObject* parent
                                                                                 = nullptr);

    /**
     * Creates an XdgOutputManager and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the zxdg_output_manager_v1 interface,
     * the returned XdgOutputManager will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the zxdg_output_manager_v1 interface to bind
     * @param version The version or the zxdg_output_manager_v1 interface to use
     * @param parent The parent for XdgOuptutManager
     *
     * @returns The created XdgOuptutManager.
     * @since 0.0.547
     **/
    XdgOutputManager*
    createXdgOutputManager(quint32 name, quint32 version, QObject* parent = nullptr);

    /**
     * Creates an XdgDecorationManager and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the zxdg_decoration_manager_v1 interface,
     * the returned XdgDecorationManager will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the zxdg_decoration_manager_v1 interface to bind
     * @param version The version or the zxdg_decoration_manager_v1 interface to use
     * @param parent The parent for XdgDecorationManager
     *
     * @returns The created XdgDecorationManager.
     * @since 0.0.554
     **/
    XdgDecorationManager*
    createXdgDecorationManager(quint32 name, quint32 version, QObject* parent = nullptr);

    /**
     * Creates an KeyboardShortcutsInhibitManagerV1 and sets it up to manage the interface
     * identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the zxdg_decoration_manager_v1 interface,
     * the returned KeyboardShortcutsInhibitManagerV1 will not be valid. Therefore it's recommended
     * to call isValid on the created instance.
     *
     * @param name The name of the zxdg_decoration_manager_v1 interface to bind
     * @param version The version or the zxdg_decoration_manager_v1 interface to use
     * @param parent The parent for KeyboardShortcutsInhibitManagerV1
     *
     * @returns The created KeyboardShortcutsInhibitManagerV1.
     * @since 0.0.554
     **/
    KeyboardShortcutsInhibitManagerV1* createKeyboardShortcutsInhibitManagerV1(quint32 name,
                                                                               quint32 version,
                                                                               QObject* parent
                                                                               = nullptr);

    /** Creates an LinuxDmabufV1 and sets it up to manage the interface identified by
     * @p name and @p version.
     *
     * Note: in case @p name is invalid or isn't for the zwp_linux_dmabuf_v1 interface,
     * the returned LinuxDmabufV1 will not be valid. Therefore it's recommended to call
     * isValid on the created instance.
     *
     * @param name The name of the zwp_linux_dmabuf_v1 interface to bind
     * @param version The version or the zwp_linux_dmabuf_v1 interface to use
     * @param parent The parent for LinuxDmabufV1
     *
     * @returns The created LinuxDmabufV1.
     * @since 0.520.0
     **/
    LinuxDmabufV1* createLinuxDmabufV1(quint32 name, quint32 version, QObject* parent = nullptr);

    ///@}

    /**
     * cast operator to the low-level Wayland @c wl_registry
     **/
    operator wl_registry*();
    /**
     * cast operator to the low-level Wayland @c wl_registry
     **/
    operator wl_registry*() const;
    /**
     * @returns access to the low-level Wayland @c wl_registry
     **/
    wl_registry* registry();

Q_SIGNALS:
    /**
     * @name Interface announced signals.
     **/
    ///@{
    /**
     * Emitted whenever a wl_compositor interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void compositorAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a wl_shell interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void shellAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a wl_seat interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void seatAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a wl_shm interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void shmAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a wl_subcompositor interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void subCompositorAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a wl_output interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void outputAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a _wl_fullscreen_shell interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void fullscreenShellAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a zwlr_data_control_manager_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.523.0
     **/
    void dataControlManagerV1Announced(quint32 name, quint32 version);
    /**
     * Emitted whenever a wl_data_device_manager interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void dataDeviceManagerAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a wp_drm_lease_device_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.523
     **/
    void drmLeaseDeviceV1Announced(quint32 name, quint32 version);
    /**
     * Emitted whenever a zwlr_layer_shell_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.522.0
     **/
    void layerShellV1Announced(quint32 name, quint32 version);

    /**
     * Emitted whenever a zkwinft_output_management_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void outputManagementV1Announced(quint32 name, quint32 version);
    /**
     * Emitted whenever a zkwinft_output_device_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void outputDeviceV1Announced(quint32 name, quint32 version);

    /**
     * Emitted whenever a zwlr_output_manager_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void wlrOutputManagerV1Announced(quint32 name, quint32 version);

    /**
     * Emitted whenever a org_kde_plasma_activation_feedback interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void plasmaActivationFeedbackAnnounced(quint32 name, quint32 version);

    /**
     * Emitted whenever a org_kde_plasma_shell interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 5.4
     **/
    void plasmaShellAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a org_kde_plasma_virtual_desktop_management interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.552
     **/
    void plasmaVirtualDesktopManagementAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a org_kde_plasma_window_management interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 5.4
     **/
    void plasmaWindowManagementAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a org_kde_kwin_idle interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 5.4
     **/
    void idleAnnounced(quint32 name, quint32 version);
    void idleNotifierV1Announced(quint32 name, quint32 version);
    /**
     * Emitted whenever a zwp_input_method_manager_v2 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.523.0
     **/
    void inputMethodManagerV2Announced(quint32 name, quint32 version);
    /**
     * Emitted whenever a org_kde_kwin_remote_access_manager interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.545
     **/
    void remoteAccessManagerAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a org_kde_kwin_fake_input interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 5.4
     **/
    void fakeInputAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a org_kde_kwin_shadow_manager interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 5.4
     **/
    void shadowAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a org_kde_kwin_blur_manager interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 5.5
     **/
    void blurAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a org_kde_kwin_contrast_manager interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 5.5
     **/
    void contrastAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a org_kde_kwin_slide_manager interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 5.5
     **/
    void slideAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a org_kde_kwin_dpms_manager interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 5.5
     **/
    void dpmsAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a zwp_text_input_manager_v2 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.523
     **/
    void textInputManagerV2Announced(quint32 name, quint32 version);
    /**
     * Emitted whenever a zwp_text_input_manager_v3 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.523.0
     **/
    void textInputManagerV3Announced(quint32 name, quint32 version);
    /**
     * Emitted whenever a wp_viewporter interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.518.0
     **/
    void viewporterAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a zwp_virtual_keyboard_manager_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.524.0
     **/
    void virtualKeyboardManagerV1Announced(quint32 name, quint32 version);
    /**
     * Emitted whenever a zwp_relative_pointer_manager_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.528
     **/
    void relativePointerManagerUnstableV1Announced(quint32 name, quint32 version);
    /**
     * Emitted whenever a zwp_pointer_gestures_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.529
     **/
    void pointerGesturesUnstableV1Announced(quint32 name, quint32 version);
    /**
     * Emitted whenever a zwp_pointer_constraints_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.529
     **/
    void pointerConstraintsUnstableV1Announced(quint32 name, quint32 version);

    /**
     * Emitted whenever a wp_presentation interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.520.0
     **/
    void presentationManagerAnnounced(quint32 name, quint32 version);
    /**
     * Emitted whenever a xdg_activation_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.523.0
     **/
    void xdgActivationV1Announced(quint32 name, quint32 version);
    /**
     * Emitted whenever a zwp_primary_selection_device_manager_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void primarySelectionDeviceManagerAnnounced(quint32 name, quint32 version);

    /**
     * Emitted whenever a zxdg_exporter_v2 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.540
     */
    void exporterUnstableV2Announced(quint32 name, quint32 version);

    /**
     * Emitted whenever a zxdg_importer_v2 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.540
     */
    void importerUnstableV2Announced(quint32 name, quint32 version);

    /**
     * Emitted whenever a zwp_idle_inhibit_manager_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.541
     */
    void idleInhibitManagerUnstableV1Announced(quint32 name, quint32 version);

    /**
     * Emitted whenever a org_kde_kwin_appmenu_manager interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.542
     */
    void appMenuAnnounced(quint32 name, quint32 version);

    /**
     * Emitted whenever a org_kde_kwin_server_decoration_palette_manager interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.542
     */
    void serverSideDecorationPaletteManagerAnnounced(quint32 name, quint32 version);

    /**
     * Emitted whenever a zxdg_output_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.547
     */
    void xdgOutputAnnounced(quint32 name, quint32 version);

    /**
     * Emitted whenever a xdg_wm_base (stable xdg shell) interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.548
     **/
    void xdgShellAnnounced(quint32 name, quint32 version);

    /**
     * Emitted whenever a zxdg_decoration_manager_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.554
     **/
    void xdgDecorationAnnounced(quint32 name, quint32 version);

    /**
     * Emitted whenever a zxdg_decoration_manager_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     * @since 0.0.554
     **/
    void keyboardShortcutsInhibitManagerAnnounced(quint32 name, quint32 version);

    /** Emitted whenever a zwp_linux_dmabuf_v1 interface gets announced.
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void LinuxDmabufV1Announced(quint32 name, quint32 version);

    ///@}

    /**
     * @name Interface removed signals.
     **/
    ///@{
    /**
     * Emitted whenever a wl_compositor interface gets removed.
     * @param name The name for the removed interface
     **/
    void compositorRemoved(quint32 name);
    /**
     * Emitted whenever a wl_shell interface gets removed.
     * @param name The name for the removed interface
     **/
    void shellRemoved(quint32 name);
    /**
     * Emitted whenever a wl_seat interface gets removed.
     * @param name The name for the removed interface
     **/
    void seatRemoved(quint32 name);
    /**
     * Emitted whenever a wl_shm interface gets removed.
     * @param name The name for the removed interface
     **/
    void shmRemoved(quint32 name);
    /**
     * Emitted whenever a wl_subcompositor interface gets removed.
     * @param name The name for the removed interface
     **/
    void subCompositorRemoved(quint32 name);
    /**
     * Emitted whenever a wl_output interface gets removed.
     * @param name The name for the removed interface
     **/
    void outputRemoved(quint32 name);
    /**
     * Emitted whenever a _wl_fullscreen_shell interface gets removed.
     * @param name The name for the removed interface
     **/
    void fullscreenShellRemoved(quint32 name);
    /**
     * Emitted whenever a zwlr_data_control_manager_v1 interface gets removed.
     * @param name The name for the removed interface
     * @since 0.523.0
     **/
    void dataControlManagerV1Removed(quint32 name);
    /**
     * Emitted whenever a wl_data_device_manager interface gets removed.
     * @param name The name for the removed interface
     **/
    void dataDeviceManagerRemoved(quint32 name);
    /**
     * Emitted whenever a wp_drm_lease_device_v1 interface gets removed.
     * @param name The name for the removed interface
     * @since 0.523.0
     **/
    void drmLeaseDeviceV1Removed(quint32 name);
    /**
     * Emitted whenever a zkwinft_output_management_v1 interface gets removed.
     * @param name The name for the removed interface
     **/
    void outputManagementV1Removed(quint32 name);
    /**
     * Emitted whenever a zkwinft_output_device_v1 interface gets removed.
     * @param name The name for the removed interface
     **/
    void outputDeviceV1Removed(quint32 name);

    /**
     * Emitted whenever a zwlr_output_manager_v1 interface gets removed.
     * @param name The name for the removed interface
     **/
    void wlrOutputManagerV1Removed(quint32 name);

    /**
     * Emitted whenever a org_kde_plasma_activation_feedback interface gets removed.
     * @param name The name for the removed interface
     **/
    void plasmaActivationFeedbackRemoved(quint32 name);

    /**
     * Emitted whenever a org_kde_plasma_shell interface gets removed.
     * @param name The name for the removed interface
     * @since 5.4
     **/
    void plasmaShellRemoved(quint32 name);
    /**
     * Emitted whenever a org_kde_plasma_virtual_desktop_management interface gets removed.
     * @param name The name for the removed interface
     * @since 0.0.552
     **/
    void plasmaVirtualDesktopManagementRemoved(quint32 name);
    /**
     * Emitted whenever a org_kde_plasma_window_management interface gets removed.
     * @param name The name for the removed interface
     * @since 5.4
     **/
    void plasmaWindowManagementRemoved(quint32 name);
    /**
     * Emitted whenever a org_kde_kwin_idle interface gets removed.
     * @param name The name for the removed interface
     * @since 5.4
     **/
    void idleRemoved(quint32 name);
    void idleNotifierV1Removed(quint32 name);
    /**
     * Emitted whenever a zwp_input_method_manager_v2 interface gets removed.
     * @param name The name for the removed interface
     * @since 0.523.0
     **/
    void inputMethodManagerV2Removed(quint32 name);
    /**
     * Emitted whenever a org_kde_kwin_remote_access_manager interface gets removed.
     * @param name The name for the removed interface
     * @since 0.0.545
     **/
    void remoteAccessManagerRemoved(quint32 name);
    /**
     * Emitted whenever a org_kde_kwin_fake_input interface gets removed.
     * @param name The name for the removed interface
     * @since 5.4
     **/
    void fakeInputRemoved(quint32 name);
    /**
     * Emitted whenever a zwlr_layer_shell_v1 interface gets removed.
     * @param name The name for the removed interface
     * @since 0.522.0
     **/
    void layerShellV1Removed(quint32 name);
    /**
     * Emitted whenever a org_kde_kwin_shadow_manager interface gets removed.
     * @param name The name for the removed interface
     * @since 5.4
     **/
    void shadowRemoved(quint32 name);
    /**
     * Emitted whenever a org_kde_kwin_blur_manager interface gets removed.
     * @param name The name for the removed interface
     * @since 5.5
     **/
    void blurRemoved(quint32 name);
    /**
     * Emitted whenever a org_kde_kwin_contrast_manager interface gets removed.
     * @param name The name for the removed interface
     * @since 5.5
     **/
    void contrastRemoved(quint32 name);
    /**
     * Emitted whenever a org_kde_kwin_slide_manager interface gets removed.
     * @param name The name for the removed interface
     * @since 5.5
     **/
    void slideRemoved(quint32 name);
    /**
     * Emitted whenever a org_kde_kwin_dpms_manager interface gets removed.
     * @param name The name for the removed interface
     * @since 5.5
     **/
    void dpmsRemoved(quint32 name);
    /**
     * Emitted whenever a zwp_text_input_manager_v2 interface gets removed.
     * @param name The name for the removed interface
     * @since 0.0.523
     **/
    void textInputManagerV2Removed(quint32 name);
    /**
     * Emitted whenever a zwp_text_input_manager_v3 interface gets removed.
     * @param name The name for the removed interface
     * @since 0.523.0
     **/
    void textInputManagerV3Removed(quint32 name);
    /**
     * Emitted whenever a wp_viewporter interface gets removed.
     * @param name The name for the removed interface
     * @since 0.518.0
     **/
    void viewporterRemoved(quint32 name);
    /**
     * Emitted whenever a zwp_virtual_keyboard_manager_v1 interface gets removed.
     * @param name The name for the removed interface
     * @since 0.524.0
     **/
    void virtualKeyboardManagerV1Removed(quint32 name);
    /**
     * Emitted whenever a zwp_relative_pointer_manager_v1 interface gets removed.
     * @param name The name for the removed interface
     * @since 0.0.528
     **/
    void relativePointerManagerUnstableV1Removed(quint32 name);
    /**
     * Emitted whenever a zwp_pointer_gestures_v1 interface gets removed.
     * @param name The name for the removed interface
     * @since 0.0.529
     **/
    void pointerGesturesUnstableV1Removed(quint32 name);
    /**
     * Emitted whenever a zwp_pointer_constraints_v1 interface gets removed.
     * @param name The name for the removed interface
     * @since 0.0.529
     **/
    void pointerConstraintsUnstableV1Removed(quint32 name);

    /**
     * Emitted whenever a wp_presentation interface gets removed.
     * @param name The name for the removed interface
     * @since 0.520.0
     **/
    void presentationManagerRemoved(quint32 name);

    /**
     * Emitted whenever a zwp_primary_selection_device_manager_v1 interface gets removed.
     * @param name The name for the removed interface
     **/
    void primarySelectionDeviceManagerRemoved(quint32 name);

    /**
     * Emitted whenever a zxdg_exporter_v2 interface gets removed.
     * @param name The name for the removed interface
     * @since 0.0.540
     **/
    void exporterUnstableV2Removed(quint32 name);

    /**
     * Emitted whenever a zxdg_importer_v2 interface gets removed.
     * @param name The name for the removed interface
     * @since 0.0.540
     **/
    void importerUnstableV2Removed(quint32 name);

    /**
     * Emitted whenever a zwp_idle_inhibit_manager_v1 interface gets removed.
     * @param name The name of the removed interface
     * @since 0.0.541
     **/
    void idleInhibitManagerUnstableV1Removed(quint32 name);

    /**
     * Emitted whenever a org_kde_kwin_appmenu_manager gets removed.
     * @param name The name of the removed interface
     * @since 0.0.542
     **/
    void appMenuRemoved(quint32 name);

    /**
     * Emitted whenever a org_kde_kwin_server_decoration_palette_manager gets removed.
     * @param name The name of the removed interface
     * @since 0.0.542
     **/
    void serverSideDecorationPaletteManagerRemoved(quint32 name);

    /**
     * Emitted whenever a xdg_activation_v1 interface gets removed.
     * @param name The name for the removed interface
     * @since 0.523.0
     **/
    void xdgActivationV1Removed(quint32 name);
    /**
     * Emitted whenever a zxdg_output_v1 gets removed.
     * @param name The name of the removed interface
     * @since 0.0.547
     **/
    void xdgOutputRemoved(quint32 name);
    /**
     * Emitted whenever an xdg_wm_base (stable xdgshell) interface gets removed.
     * @param name The name for the removed interface
     * @since 0.0.548
     **/
    void xdgShellRemoved(quint32 name);

    /**
     * Emitted whenever a zxdg_decoration_manager_v1 gets removed.
     * @param name The name of the removed interface
     * @since 0.0.554
     **/
    void xdgDecorationRemoved(quint32 name);

    /**
     * Emitted whenever a zxdg_decoration_manager_v1 gets removed.
     * @param name The name of the removed interface
     * @since 0.0.554
     **/
    void keyboardShortcutsInhibitManagerRemoved(quint32 name);

    /** Emitted whenever a zwp_linux_dmabuf_v1 gets removed.
     * @param name The name of the removed interface
     **/
    void LinuxDmabufV1Removed(quint32 name);

    void keystateAnnounced(quint32 name, quint32 version);
    void keystateRemoved(quint32 name);

    ///@}
    /**
     * Generic announced signal which gets emitted whenever an interface gets
     * announced.
     *
     * This signal is emitted before the dedicated signals are handled. If one
     * wants to know about one of the well-known interfaces use the dedicated
     * signals instead. Especially the bind methods might fail before the dedicated
     * signals are emitted.
     *
     * @param interface The interface (e.g. wl_compositor) which is announced
     * @param name The name for the announced interface
     * @param version The maximum supported version of the announced interface
     **/
    void interfaceAnnounced(QByteArray interface, quint32 name, quint32 version);
    /**
     * Generic removal signal which gets emitted whenever an interface gets removed.
     *
     * This signal is emitted after the dedicated signals are handled.
     *
     * @param name The name for the removed interface
     **/
    void interfaceRemoved(quint32 name);
    /**
     * Emitted when the Wayland display is done flushing the initial interface
     * callbacks, announcing wl_display properties. This can be used to compress
     * events. Note that this signal is emitted only after announcing interfaces,
     * such as outputs, but not after receiving callbacks of interface properties,
     * such as the output's geometry, modes, etc..
     * This signal is emitted from the wl_display_sync callback.
     **/
    void interfacesAnnounced();

Q_SIGNALS:
    /*
     * Emitted when the registry has been released.
     */
    void registryReleased();

private:
    class Private;
    std::unique_ptr<Private> d;
};

}
}

#endif
