/****************************************************************************
** Meta object code from reading C++ file 'syncthingdir.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 "../../../../../../../syncthingtray/syncthingconnector/syncthingdir.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 'syncthingdir.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_ZN4Data19SyncthingStatisticsE_t {};
} // unnamed namespace

template <> constexpr inline auto Data::SyncthingStatistics::qt_create_metaobjectdata<qt_meta_tag_ZN4Data19SyncthingStatisticsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Data::SyncthingStatistics",
        "bytes",
        "bytesAsString",
        "deletes",
        "dirs",
        "files",
        "symlinks",
        "total"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'bytes'
        QtMocHelpers::PropertyData<quint64>(1, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'bytesAsString'
        QtMocHelpers::PropertyData<QString>(2, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'deletes'
        QtMocHelpers::PropertyData<quint64>(3, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'dirs'
        QtMocHelpers::PropertyData<quint64>(4, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'files'
        QtMocHelpers::PropertyData<quint64>(5, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'symlinks'
        QtMocHelpers::PropertyData<quint64>(6, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'total'
        QtMocHelpers::PropertyData<quint64>(7, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Writable),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SyncthingStatistics, qt_meta_tag_ZN4Data19SyncthingStatisticsE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Data::SyncthingStatistics::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4Data19SyncthingStatisticsE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4Data19SyncthingStatisticsE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4Data19SyncthingStatisticsE_t>.metaTypes,
    nullptr
} };

void Data::SyncthingStatistics::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = reinterpret_cast<SyncthingStatistics *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<quint64*>(_v) = _t->bytes; break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->bytesAsString(); break;
        case 2: *reinterpret_cast<quint64*>(_v) = _t->deletes; break;
        case 3: *reinterpret_cast<quint64*>(_v) = _t->dirs; break;
        case 4: *reinterpret_cast<quint64*>(_v) = _t->files; break;
        case 5: *reinterpret_cast<quint64*>(_v) = _t->symlinks; break;
        case 6: *reinterpret_cast<quint64*>(_v) = _t->total; break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: QtMocHelpers::setProperty(_t->bytes, *reinterpret_cast<quint64*>(_v)); break;
        case 2: QtMocHelpers::setProperty(_t->deletes, *reinterpret_cast<quint64*>(_v)); break;
        case 3: QtMocHelpers::setProperty(_t->dirs, *reinterpret_cast<quint64*>(_v)); break;
        case 4: QtMocHelpers::setProperty(_t->files, *reinterpret_cast<quint64*>(_v)); break;
        case 5: QtMocHelpers::setProperty(_t->symlinks, *reinterpret_cast<quint64*>(_v)); break;
        case 6: QtMocHelpers::setProperty(_t->total, *reinterpret_cast<quint64*>(_v)); break;
        default: break;
        }
    }
}
namespace {
struct qt_meta_tag_ZN4Data29SyncthingOverallDirStatisticsE_t {};
} // unnamed namespace

template <> constexpr inline auto Data::SyncthingOverallDirStatistics::qt_create_metaobjectdata<qt_meta_tag_ZN4Data29SyncthingOverallDirStatisticsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Data::SyncthingOverallDirStatistics",
        "local",
        "SyncthingStatistics",
        "global",
        "needed",
        "completionPercentage"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'local'
        QtMocHelpers::PropertyData<SyncthingStatistics>(1, 0x80000000 | 2, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
        // property 'global'
        QtMocHelpers::PropertyData<SyncthingStatistics>(3, 0x80000000 | 2, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
        // property 'needed'
        QtMocHelpers::PropertyData<SyncthingStatistics>(4, 0x80000000 | 2, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
        // property 'completionPercentage'
        QtMocHelpers::PropertyData<int>(5, QMetaType::Int, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SyncthingOverallDirStatistics, qt_meta_tag_ZN4Data29SyncthingOverallDirStatisticsE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Data::SyncthingOverallDirStatistics::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4Data29SyncthingOverallDirStatisticsE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4Data29SyncthingOverallDirStatisticsE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4Data29SyncthingOverallDirStatisticsE_t>.metaTypes,
    nullptr
} };

void Data::SyncthingOverallDirStatistics::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = reinterpret_cast<SyncthingOverallDirStatistics *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<SyncthingStatistics*>(_v) = _t->local; break;
        case 1: *reinterpret_cast<SyncthingStatistics*>(_v) = _t->global; break;
        case 2: *reinterpret_cast<SyncthingStatistics*>(_v) = _t->needed; break;
        case 3: *reinterpret_cast<int*>(_v) = _t->computeCompletionPercentage(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: QtMocHelpers::setProperty(_t->local, *reinterpret_cast<SyncthingStatistics*>(_v)); break;
        case 1: QtMocHelpers::setProperty(_t->global, *reinterpret_cast<SyncthingStatistics*>(_v)); break;
        case 2: QtMocHelpers::setProperty(_t->needed, *reinterpret_cast<SyncthingStatistics*>(_v)); break;
        default: break;
        }
    }
}
QT_WARNING_POP
