/****************************************************************************
** Meta object code from reading C++ file 'taskfetchjob.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 "../../../../../libkgapi-26.04.0/src/tasks/taskfetchjob.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 'taskfetchjob.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_ZN6KGAPI212TaskFetchJobE_t {};
} // unnamed namespace

template <> constexpr inline auto KGAPI2::TaskFetchJob::qt_create_metaobjectdata<qt_meta_tag_ZN6KGAPI212TaskFetchJobE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KGAPI2::TaskFetchJob",
        "fetchDeleted",
        "fetchCompleted",
        "fetchOnlyUpdated",
        "completedMax",
        "completedMin",
        "dueMax",
        "dueMin"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'fetchDeleted'
        QtMocHelpers::PropertyData<bool>(1, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'fetchCompleted'
        QtMocHelpers::PropertyData<bool>(2, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'fetchOnlyUpdated'
        QtMocHelpers::PropertyData<quint64>(3, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'completedMax'
        QtMocHelpers::PropertyData<quint64>(4, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'completedMin'
        QtMocHelpers::PropertyData<quint64>(5, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'dueMax'
        QtMocHelpers::PropertyData<quint64>(6, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'dueMin'
        QtMocHelpers::PropertyData<quint64>(7, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<TaskFetchJob, qt_meta_tag_ZN6KGAPI212TaskFetchJobE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KGAPI2::TaskFetchJob::staticMetaObject = { {
    QMetaObject::SuperData::link<KGAPI2::FetchJob::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6KGAPI212TaskFetchJobE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6KGAPI212TaskFetchJobE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6KGAPI212TaskFetchJobE_t>.metaTypes,
    nullptr
} };

void KGAPI2::TaskFetchJob::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<TaskFetchJob *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->fetchDeleted(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->fetchCompleted(); break;
        case 2: *reinterpret_cast<quint64*>(_v) = _t->fetchOnlyUpdated(); break;
        case 3: *reinterpret_cast<quint64*>(_v) = _t->completedMax(); break;
        case 4: *reinterpret_cast<quint64*>(_v) = _t->completedMin(); break;
        case 5: *reinterpret_cast<quint64*>(_v) = _t->dueMax(); break;
        case 6: *reinterpret_cast<quint64*>(_v) = _t->dueMin(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setFetchDeleted(*reinterpret_cast<bool*>(_v)); break;
        case 1: _t->setFetchCompleted(*reinterpret_cast<bool*>(_v)); break;
        case 2: _t->setFetchOnlyUpdated(*reinterpret_cast<quint64*>(_v)); break;
        case 3: _t->setCompletedMax(*reinterpret_cast<quint64*>(_v)); break;
        case 4: _t->setCompletedMin(*reinterpret_cast<quint64*>(_v)); break;
        case 5: _t->setDueMax(*reinterpret_cast<quint64*>(_v)); break;
        case 6: _t->setDueMin(*reinterpret_cast<quint64*>(_v)); break;
        default: break;
        }
    }
}

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

void *KGAPI2::TaskFetchJob::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6KGAPI212TaskFetchJobE_t>.strings))
        return static_cast<void*>(this);
    return KGAPI2::FetchJob::qt_metacast(_clname);
}

int KGAPI2::TaskFetchJob::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KGAPI2::FetchJob::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    return _id;
}
QT_WARNING_POP
