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

#include "../../../src/db/dbchangeprocessor.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 'dbchangeprocessor.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.2. 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_ZN17DbChangeProcessorE_t {};
} // unnamed namespace

template <> constexpr inline auto DbChangeProcessor::qt_create_metaobjectdata<qt_meta_tag_ZN17DbChangeProcessorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "DbChangeProcessor",
        "handleMailItemAdded",
        "",
        "WinoMail::Events::MailItemAddedEvent",
        "event",
        "handleMailItemRemoved",
        "WinoMail::Events::MailItemRemovedEvent",
        "handleMailItemUpdated",
        "WinoMail::Events::MailItemUpdatedEvent",
        "handleFolderAdded",
        "WinoMail::Events::FolderAddedEvent",
        "handleFolderRemoved",
        "WinoMail::Events::FolderRemovedEvent",
        "handleFolderUpdated",
        "WinoMail::Events::FolderUpdatedEvent",
        "handleAccountAdded",
        "WinoMail::Events::AccountAddedEvent",
        "handleAccountRemoved",
        "WinoMail::Events::AccountRemovedEvent",
        "handleAccountUpdated",
        "WinoMail::Events::AccountUpdatedEvent",
        "processBatch"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'handleMailItemAdded'
        QtMocHelpers::SlotData<void(const WinoMail::Events::MailItemAddedEvent &)>(1, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'handleMailItemRemoved'
        QtMocHelpers::SlotData<void(const WinoMail::Events::MailItemRemovedEvent &)>(5, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 4 },
        }}),
        // Slot 'handleMailItemUpdated'
        QtMocHelpers::SlotData<void(const WinoMail::Events::MailItemUpdatedEvent &)>(7, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 8, 4 },
        }}),
        // Slot 'handleFolderAdded'
        QtMocHelpers::SlotData<void(const WinoMail::Events::FolderAddedEvent &)>(9, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 10, 4 },
        }}),
        // Slot 'handleFolderRemoved'
        QtMocHelpers::SlotData<void(const WinoMail::Events::FolderRemovedEvent &)>(11, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 12, 4 },
        }}),
        // Slot 'handleFolderUpdated'
        QtMocHelpers::SlotData<void(const WinoMail::Events::FolderUpdatedEvent &)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 14, 4 },
        }}),
        // Slot 'handleAccountAdded'
        QtMocHelpers::SlotData<void(const WinoMail::Events::AccountAddedEvent &)>(15, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 16, 4 },
        }}),
        // Slot 'handleAccountRemoved'
        QtMocHelpers::SlotData<void(const WinoMail::Events::AccountRemovedEvent &)>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 18, 4 },
        }}),
        // Slot 'handleAccountUpdated'
        QtMocHelpers::SlotData<void(const WinoMail::Events::AccountUpdatedEvent &)>(19, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 20, 4 },
        }}),
        // Slot 'processBatch'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DbChangeProcessor, qt_meta_tag_ZN17DbChangeProcessorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject DbChangeProcessor::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17DbChangeProcessorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17DbChangeProcessorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN17DbChangeProcessorE_t>.metaTypes,
    nullptr
} };

void DbChangeProcessor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DbChangeProcessor *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->handleMailItemAdded((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::MailItemAddedEvent>>(_a[1]))); break;
        case 1: _t->handleMailItemRemoved((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::MailItemRemovedEvent>>(_a[1]))); break;
        case 2: _t->handleMailItemUpdated((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::MailItemUpdatedEvent>>(_a[1]))); break;
        case 3: _t->handleFolderAdded((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::FolderAddedEvent>>(_a[1]))); break;
        case 4: _t->handleFolderRemoved((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::FolderRemovedEvent>>(_a[1]))); break;
        case 5: _t->handleFolderUpdated((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::FolderUpdatedEvent>>(_a[1]))); break;
        case 6: _t->handleAccountAdded((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::AccountAddedEvent>>(_a[1]))); break;
        case 7: _t->handleAccountRemoved((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::AccountRemovedEvent>>(_a[1]))); break;
        case 8: _t->handleAccountUpdated((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::AccountUpdatedEvent>>(_a[1]))); break;
        case 9: _t->processBatch(); break;
        default: ;
        }
    }
}

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

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

int DbChangeProcessor::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 < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 10;
    }
    return _id;
}
QT_WARNING_POP
