/****************************************************************************
** Meta object code from reading C++ file 'ScreenCopy.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.11.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../screengrab-3.2.0/src/core/wayland/ScreenCopy.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'ScreenCopy.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN4LXQt7Wayland17ScreenCopyManagerE_t {};
} // unnamed namespace

template <> constexpr inline auto LXQt::Wayland::ScreenCopyManager::qt_create_metaobjectdata<qt_meta_tag_ZN4LXQt7Wayland17ScreenCopyManagerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "LXQt::Wayland::ScreenCopyManager"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ScreenCopyManager, qt_meta_tag_ZN4LXQt7Wayland17ScreenCopyManagerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject LXQt::Wayland::ScreenCopyManager::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt7Wayland17ScreenCopyManagerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt7Wayland17ScreenCopyManagerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4LXQt7Wayland17ScreenCopyManagerE_t>.metaTypes,
    nullptr
} };

void LXQt::Wayland::ScreenCopyManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ScreenCopyManager *>(_o);
    (void)_t;
    (void)_c;
    (void)_id;
    (void)_a;
}

const QMetaObject *LXQt::Wayland::ScreenCopyManager::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *LXQt::Wayland::ScreenCopyManager::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt7Wayland17ScreenCopyManagerE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int LXQt::Wayland::ScreenCopyManager::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    return _id;
}
namespace {
struct qt_meta_tag_ZN4LXQt7Wayland15ScreenCopyFrameE_t {};
} // unnamed namespace

template <> constexpr inline auto LXQt::Wayland::ScreenCopyFrame::qt_create_metaobjectdata<qt_meta_tag_ZN4LXQt7Wayland15ScreenCopyFrameE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "LXQt::Wayland::ScreenCopyFrame",
        "ready",
        "",
        "LXQt::Wayland::ScreenFrameBuffer*",
        "format",
        "uint32_t",
        "failed",
        "damage",
        "QRect",
        "linuxDmabuf",
        "bufferDone"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'ready'
        QtMocHelpers::SignalData<void(LXQt::Wayland::ScreenFrameBuffer *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Signal 'format'
        QtMocHelpers::SignalData<void(uint32_t)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 2 },
        }}),
        // Signal 'failed'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'damage'
        QtMocHelpers::SignalData<void(QRect)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 2 },
        }}),
        // Signal 'linuxDmabuf'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'bufferDone'
        QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ScreenCopyFrame, qt_meta_tag_ZN4LXQt7Wayland15ScreenCopyFrameE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject LXQt::Wayland::ScreenCopyFrame::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt7Wayland15ScreenCopyFrameE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt7Wayland15ScreenCopyFrameE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4LXQt7Wayland15ScreenCopyFrameE_t>.metaTypes,
    nullptr
} };

void LXQt::Wayland::ScreenCopyFrame::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ScreenCopyFrame *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->ready((*reinterpret_cast<std::add_pointer_t<LXQt::Wayland::ScreenFrameBuffer*>>(_a[1]))); break;
        case 1: _t->format((*reinterpret_cast<std::add_pointer_t<uint32_t>>(_a[1]))); break;
        case 2: _t->failed(); break;
        case 3: _t->damage((*reinterpret_cast<std::add_pointer_t<QRect>>(_a[1]))); break;
        case 4: _t->linuxDmabuf(); break;
        case 5: _t->bufferDone(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ScreenCopyFrame::*)(LXQt::Wayland::ScreenFrameBuffer * )>(_a, &ScreenCopyFrame::ready, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScreenCopyFrame::*)(uint32_t )>(_a, &ScreenCopyFrame::format, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScreenCopyFrame::*)()>(_a, &ScreenCopyFrame::failed, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScreenCopyFrame::*)(QRect )>(_a, &ScreenCopyFrame::damage, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScreenCopyFrame::*)()>(_a, &ScreenCopyFrame::linuxDmabuf, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScreenCopyFrame::*)()>(_a, &ScreenCopyFrame::bufferDone, 5))
            return;
    }
}

const QMetaObject *LXQt::Wayland::ScreenCopyFrame::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *LXQt::Wayland::ScreenCopyFrame::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt7Wayland15ScreenCopyFrameE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int LXQt::Wayland::ScreenCopyFrame::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 6)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 6)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 6;
    }
    return _id;
}

// SIGNAL 0
void LXQt::Wayland::ScreenCopyFrame::ready(LXQt::Wayland::ScreenFrameBuffer * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void LXQt::Wayland::ScreenCopyFrame::format(uint32_t _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void LXQt::Wayland::ScreenCopyFrame::failed()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void LXQt::Wayland::ScreenCopyFrame::damage(QRect _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void LXQt::Wayland::ScreenCopyFrame::linuxDmabuf()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void LXQt::Wayland::ScreenCopyFrame::bufferDone()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
