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

#include "qml_material/util/pool.hpp"
#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 'pool.hpp' 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_ZN12qml_material4PoolE_t {};
} // unnamed namespace

template <> constexpr inline auto qml_material::Pool::qt_create_metaobjectdata<qt_meta_tag_ZN12qml_material4PoolE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "qml_material::Pool",
        "QML.Element",
        "auto",
        "objectAdded",
        "",
        "obj",
        "QVariant",
        "key",
        "asyncChanged",
        "queueAdded",
        "onQueueAdded",
        "onUncacheObjectDeleted",
        "contains",
        "get",
        "add",
        "QVariantMap",
        "autoKey",
        "addWithKey",
        "url_module_comp",
        "removeObject",
        "clear",
        "async"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'objectAdded'
        QtMocHelpers::SignalData<void(QObject *, const QVariant &)>(3, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QObjectStar, 5 }, { 0x80000000 | 6, 7 },
        }}),
        // Signal 'asyncChanged'
        QtMocHelpers::SignalData<void(bool)>(8, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 4 },
        }}),
        // Signal 'queueAdded'
        QtMocHelpers::SignalData<void(qint64)>(9, 4, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::LongLong, 4 },
        }}),
        // Slot 'onQueueAdded'
        QtMocHelpers::SlotData<void(qint64)>(10, 4, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::LongLong, 4 },
        }}),
        // Slot 'onUncacheObjectDeleted'
        QtMocHelpers::SlotData<void(QObject *)>(11, 4, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QObjectStar, 4 },
        }}),
        // Method 'contains'
        QtMocHelpers::MethodData<bool(const QString &) const>(12, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 7 },
        }}),
        // Method 'get'
        QtMocHelpers::MethodData<QObject *(const QString &) const>(13, 4, QMC::AccessPublic, QMetaType::QObjectStar, {{
            { QMetaType::QString, 7 },
        }}),
        // Method 'add'
        QtMocHelpers::MethodData<void(const QVariant &, const QVariantMap &, bool)>(14, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 4 }, { 0x80000000 | 15, 4 }, { QMetaType::Bool, 16 },
        }}),
        // Method 'add'
        QtMocHelpers::MethodData<void(const QVariant &, const QVariantMap &)>(14, 4, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 6, 4 }, { 0x80000000 | 15, 4 },
        }}),
        // Method 'addWithKey'
        QtMocHelpers::MethodData<void(const QString &, const QVariant &, const QVariantMap &)>(17, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 }, { 0x80000000 | 6, 18 }, { 0x80000000 | 15, 4 },
        }}),
        // Method 'removeObject'
        QtMocHelpers::MethodData<bool(QObject *)>(19, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QObjectStar, 4 },
        }}),
        // Method 'clear'
        QtMocHelpers::MethodData<void()>(20, 4, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'async'
        QtMocHelpers::PropertyData<bool>(21, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final, 1),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<Pool, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject qml_material::Pool::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material4PoolE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material4PoolE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12qml_material4PoolE_t>.metaTypes,
    nullptr
} };

void qml_material::Pool::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Pool *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->objectAdded((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[2]))); break;
        case 1: _t->asyncChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->queueAdded((*reinterpret_cast<std::add_pointer_t<qint64>>(_a[1]))); break;
        case 3: _t->onQueueAdded((*reinterpret_cast<std::add_pointer_t<qint64>>(_a[1]))); break;
        case 4: _t->onUncacheObjectDeleted((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1]))); break;
        case 5: { bool _r = _t->contains((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 6: { QObject* _r = _t->get((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = std::move(_r); }  break;
        case 7: _t->add((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3]))); break;
        case 8: _t->add((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[2]))); break;
        case 9: _t->addWithKey((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[3]))); break;
        case 10: { bool _r = _t->removeObject((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 11: _t->clear(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Pool::*)(QObject * , const QVariant & )>(_a, &Pool::objectAdded, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Pool::*)(bool )>(_a, &Pool::asyncChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Pool::*)(qint64 )>(_a, &Pool::queueAdded, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->async(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setAsync(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

const QMetaObject *qml_material::Pool::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *qml_material::Pool::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material4PoolE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int qml_material::Pool::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 < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 12;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    return _id;
}

// SIGNAL 0
void qml_material::Pool::objectAdded(QObject * _t1, const QVariant & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void qml_material::Pool::asyncChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void qml_material::Pool::queueAdded(qint64 _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
