// This file was generated by qtwaylandscanner
// source file is ext-idle-notify-v1.xml

#ifndef QT_WAYLAND_EXT_IDLE_NOTIFY_V1
#define QT_WAYLAND_EXT_IDLE_NOTIFY_V1

#include "wayland-ext-idle-notify-v1-client-protocol.h"
#include <QByteArray>
#include <QString>

struct wl_registry;

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

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

        virtual ~ext_idle_notifier_v1();

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

        struct ::ext_idle_notifier_v1 *object() { return m_ext_idle_notifier_v1; }
        const struct ::ext_idle_notifier_v1 *object() const { return m_ext_idle_notifier_v1; }
        static ext_idle_notifier_v1 *fromObject(struct ::ext_idle_notifier_v1 *object);

        bool isInitialized() const;

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

        void destroy();
        struct ::ext_idle_notification_v1 *get_idle_notification(uint32_t timeout, struct ::wl_seat *seat);
        struct ::ext_idle_notification_v1 *get_input_idle_notification(uint32_t timeout, struct ::wl_seat *seat);

    private:
        struct ::ext_idle_notifier_v1 *m_ext_idle_notifier_v1;
    };

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

        virtual ~ext_idle_notification_v1();

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

        struct ::ext_idle_notification_v1 *object() { return m_ext_idle_notification_v1; }
        const struct ::ext_idle_notification_v1 *object() const { return m_ext_idle_notification_v1; }
        static ext_idle_notification_v1 *fromObject(struct ::ext_idle_notification_v1 *object);

        bool isInitialized() const;

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

        void destroy();

    protected:
        virtual void ext_idle_notification_v1_idled();
        virtual void ext_idle_notification_v1_resumed();

    private:
        void init_listener();
        static const struct ext_idle_notification_v1_listener m_ext_idle_notification_v1_listener;
        static void handle_idled(
            void *data,
            struct ::ext_idle_notification_v1 *object);
        static void handle_resumed(
            void *data,
            struct ::ext_idle_notification_v1 *object);
        struct ::ext_idle_notification_v1 *m_ext_idle_notification_v1;
    };
}

QT_WARNING_POP
QT_END_NAMESPACE

#endif
