/****************************************************************************
** Meta object code from reading C++ file 'dsystemtime.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 "../../../include/systemtime/dsystemtime.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 'dsystemtime.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_ZN3Dtk18DSYSTIME_NAMESPACE11DSystemTimeE_t {};
} // unnamed namespace

template <> constexpr inline auto Dtk::DSYSTIME_NAMESPACE::DSystemTime::qt_create_metaobjectdata<qt_meta_tag_ZN3Dtk18DSYSTIME_NAMESPACE11DSystemTimeE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Dtk::DSYSTIME_NAMESPACE::DSystemTime",
        "listTimezones",
        "DExpected<QStringList>",
        "",
        "setLocalRTC",
        "DExpected<void>",
        "localRTC",
        "fixSystem",
        "interactive",
        "enableNTP",
        "useNTP",
        "setRelativeTime",
        "usecUTC",
        "setAbsoluteTime",
        "time",
        "setTimezone",
        "timezone",
        "canNTP",
        "NTP",
        "NTPSynchronized",
        "RTCTimeUSec",
        "timeDate",
        "fallbackNTPServers",
        "linkNTPServers",
        "systemNTPServers",
        "frequency",
        "serverName",
        "serverAddress",
        "Address",
        "NTPMessage",
        "Message",
        "pollIntervalMaxUSec",
        "pollIntervalMinUSec",
        "pollIntervalUSec",
        "rootDistanceMaxUSec"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'listTimezones'
        QtMocHelpers::SlotData<DExpected<QStringList>() const>(1, 3, QMC::AccessPublic, 0x80000000 | 2),
        // Slot 'setLocalRTC'
        QtMocHelpers::SlotData<DExpected<void>(bool, bool, bool)>(4, 3, QMC::AccessPublic, 0x80000000 | 5, {{
            { QMetaType::Bool, 6 }, { QMetaType::Bool, 7 }, { QMetaType::Bool, 8 },
        }}),
        // Slot 'enableNTP'
        QtMocHelpers::SlotData<DExpected<void>(bool, bool)>(9, 3, QMC::AccessPublic, 0x80000000 | 5, {{
            { QMetaType::Bool, 10 }, { QMetaType::Bool, 8 },
        }}),
        // Slot 'setRelativeTime'
        QtMocHelpers::SlotData<DExpected<void>(qint64, bool)>(11, 3, QMC::AccessPublic, 0x80000000 | 5, {{
            { QMetaType::LongLong, 12 }, { QMetaType::Bool, 8 },
        }}),
        // Slot 'setAbsoluteTime'
        QtMocHelpers::SlotData<DExpected<void>(const QDateTime &, bool)>(13, 3, QMC::AccessPublic, 0x80000000 | 5, {{
            { QMetaType::QDateTime, 14 }, { QMetaType::Bool, 8 },
        }}),
        // Slot 'setTimezone'
        QtMocHelpers::SlotData<DExpected<void>(const QString &, bool)>(15, 3, QMC::AccessPublic, 0x80000000 | 5, {{
            { QMetaType::QString, 16 }, { QMetaType::Bool, 8 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'canNTP'
        QtMocHelpers::PropertyData<bool>(17, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'localRTC'
        QtMocHelpers::PropertyData<bool>(6, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'NTP'
        QtMocHelpers::PropertyData<bool>(18, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'NTPSynchronized'
        QtMocHelpers::PropertyData<bool>(19, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'timezone'
        QtMocHelpers::PropertyData<QString>(16, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'RTCTimeUSec'
        QtMocHelpers::PropertyData<quint64>(20, QMetaType::ULongLong, QMC::DefaultPropertyFlags),
        // property 'timeDate'
        QtMocHelpers::PropertyData<QDateTime>(21, QMetaType::QDateTime, QMC::DefaultPropertyFlags),
        // property 'fallbackNTPServers'
        QtMocHelpers::PropertyData<QStringList>(22, QMetaType::QStringList, QMC::DefaultPropertyFlags),
        // property 'linkNTPServers'
        QtMocHelpers::PropertyData<QStringList>(23, QMetaType::QStringList, QMC::DefaultPropertyFlags),
        // property 'systemNTPServers'
        QtMocHelpers::PropertyData<QStringList>(24, QMetaType::QStringList, QMC::DefaultPropertyFlags),
        // property 'frequency'
        QtMocHelpers::PropertyData<qint64>(25, QMetaType::LongLong, QMC::DefaultPropertyFlags),
        // property 'serverName'
        QtMocHelpers::PropertyData<QString>(26, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'serverAddress'
        QtMocHelpers::PropertyData<Address>(27, 0x80000000 | 28, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'NTPMessage'
        QtMocHelpers::PropertyData<Message>(29, 0x80000000 | 30, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'pollIntervalMaxUSec'
        QtMocHelpers::PropertyData<quint64>(31, QMetaType::ULongLong, QMC::DefaultPropertyFlags),
        // property 'pollIntervalMinUSec'
        QtMocHelpers::PropertyData<quint64>(32, QMetaType::ULongLong, QMC::DefaultPropertyFlags),
        // property 'pollIntervalUSec'
        QtMocHelpers::PropertyData<quint64>(33, QMetaType::ULongLong, QMC::DefaultPropertyFlags),
        // property 'rootDistanceMaxUSec'
        QtMocHelpers::PropertyData<quint64>(34, QMetaType::ULongLong, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DSystemTime, qt_meta_tag_ZN3Dtk18DSYSTIME_NAMESPACE11DSystemTimeE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Dtk::DSYSTIME_NAMESPACE::DSystemTime::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Dtk18DSYSTIME_NAMESPACE11DSystemTimeE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Dtk18DSYSTIME_NAMESPACE11DSystemTimeE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3Dtk18DSYSTIME_NAMESPACE11DSystemTimeE_t>.metaTypes,
    nullptr
} };

void Dtk::DSYSTIME_NAMESPACE::DSystemTime::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DSystemTime *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { DExpected<QStringList> _r = _t->listTimezones();
            if (_a[0]) *reinterpret_cast<DExpected<QStringList>*>(_a[0]) = std::move(_r); }  break;
        case 1: { DExpected<void> _r = _t->setLocalRTC((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3])));
            if (_a[0]) *reinterpret_cast<DExpected<void>*>(_a[0]) = std::move(_r); }  break;
        case 2: { DExpected<void> _r = _t->enableNTP((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])));
            if (_a[0]) *reinterpret_cast<DExpected<void>*>(_a[0]) = std::move(_r); }  break;
        case 3: { DExpected<void> _r = _t->setRelativeTime((*reinterpret_cast<std::add_pointer_t<qint64>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])));
            if (_a[0]) *reinterpret_cast<DExpected<void>*>(_a[0]) = std::move(_r); }  break;
        case 4: { DExpected<void> _r = _t->setAbsoluteTime((*reinterpret_cast<std::add_pointer_t<QDateTime>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])));
            if (_a[0]) *reinterpret_cast<DExpected<void>*>(_a[0]) = std::move(_r); }  break;
        case 5: { DExpected<void> _r = _t->setTimezone((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])));
            if (_a[0]) *reinterpret_cast<DExpected<void>*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->canNTP(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->localRTC(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->NTP(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->NTPSynchronized(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->timezone(); break;
        case 5: *reinterpret_cast<quint64*>(_v) = _t->RTCTimeUSec(); break;
        case 6: *reinterpret_cast<QDateTime*>(_v) = _t->timeDate(); break;
        case 7: *reinterpret_cast<QStringList*>(_v) = _t->fallbackNTPServers(); break;
        case 8: *reinterpret_cast<QStringList*>(_v) = _t->linkNTPServers(); break;
        case 9: *reinterpret_cast<QStringList*>(_v) = _t->systemNTPServers(); break;
        case 10: *reinterpret_cast<qint64*>(_v) = _t->frequency(); break;
        case 11: *reinterpret_cast<QString*>(_v) = _t->serverName(); break;
        case 12: *reinterpret_cast<Address*>(_v) = _t->serverAddress(); break;
        case 13: *reinterpret_cast<Message*>(_v) = _t->NTPMessage(); break;
        case 14: *reinterpret_cast<quint64*>(_v) = _t->pollIntervalMaxUSec(); break;
        case 15: *reinterpret_cast<quint64*>(_v) = _t->pollIntervalMinUSec(); break;
        case 16: *reinterpret_cast<quint64*>(_v) = _t->pollIntervalUSec(); break;
        case 17: *reinterpret_cast<quint64*>(_v) = _t->rootDistanceMaxUSec(); break;
        default: break;
        }
    }
}

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

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

int Dtk::DSYSTIME_NAMESPACE::DSystemTime::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;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 18;
    }
    return _id;
}
QT_WARNING_POP
