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

#include "../../../../../kommit/src/libkommit/observers/fetchobserver.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 'fetchobserver.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN3Git13FetchObserverE_t {};
} // unnamed namespace

template <> constexpr inline auto Git::FetchObserver::qt_create_metaobjectdata<qt_meta_tag_ZN3Git13FetchObserverE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Git::FetchObserver",
        "message",
        "",
        "credentialRequeted",
        "url",
        "Credential*",
        "cred",
        "transferProgress",
        "const FetchTransferStat*",
        "stat",
        "packProgress",
        "const PackProgress*",
        "p",
        "updateRef",
        "Reference",
        "reference",
        "Oid",
        "a",
        "b",
        "finished"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'message'
        QtMocHelpers::SignalData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 1 },
        }}),
        // Signal 'credentialRequeted'
        QtMocHelpers::SignalData<void(const QString &, Credential *)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 }, { 0x80000000 | 5, 6 },
        }}),
        // Signal 'transferProgress'
        QtMocHelpers::SignalData<void(const FetchTransferStat *)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'packProgress'
        QtMocHelpers::SignalData<void(const PackProgress *)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Signal 'updateRef'
        QtMocHelpers::SignalData<void(const Reference &, const Oid &, const Oid &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 15 }, { 0x80000000 | 16, 17 }, { 0x80000000 | 16, 18 },
        }}),
        // Signal 'finished'
        QtMocHelpers::SignalData<void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<FetchObserver, qt_meta_tag_ZN3Git13FetchObserverE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Git::FetchObserver::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Git13FetchObserverE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Git13FetchObserverE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3Git13FetchObserverE_t>.metaTypes,
    nullptr
} };

void Git::FetchObserver::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<FetchObserver *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->message((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->credentialRequeted((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Credential*>>(_a[2]))); break;
        case 2: _t->transferProgress((*reinterpret_cast<std::add_pointer_t<const FetchTransferStat*>>(_a[1]))); break;
        case 3: _t->packProgress((*reinterpret_cast<std::add_pointer_t<const PackProgress*>>(_a[1]))); break;
        case 4: _t->updateRef((*reinterpret_cast<std::add_pointer_t<Reference>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Oid>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<Oid>>(_a[3]))); break;
        case 5: _t->finished(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (FetchObserver::*)(const QString & )>(_a, &FetchObserver::message, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (FetchObserver::*)(const QString & , Credential * )>(_a, &FetchObserver::credentialRequeted, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (FetchObserver::*)(const FetchTransferStat * )>(_a, &FetchObserver::transferProgress, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (FetchObserver::*)(const PackProgress * )>(_a, &FetchObserver::packProgress, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (FetchObserver::*)(const Reference & , const Oid & , const Oid & )>(_a, &FetchObserver::updateRef, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (FetchObserver::*)()>(_a, &FetchObserver::finished, 5))
            return;
    }
}

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

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

int Git::FetchObserver::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 Git::FetchObserver::message(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Git::FetchObserver::credentialRequeted(const QString & _t1, Credential * _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void Git::FetchObserver::transferProgress(const FetchTransferStat * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Git::FetchObserver::packProgress(const PackProgress * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Git::FetchObserver::updateRef(const Reference & _t1, const Oid & _t2, const Oid & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2, _t3);
}

// SIGNAL 5
void Git::FetchObserver::finished()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
