/****************************************************************************
** Meta object code from reading C++ file 'offline.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 "../../../../PackageKit-Qt/src/offline.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 'offline.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_ZN10PackageKit7OfflineE_t {};
} // unnamed namespace

template <> constexpr inline auto PackageKit::Offline::qt_create_metaobjectdata<qt_meta_tag_ZN10PackageKit7OfflineE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PackageKit::Offline",
        "preparedUpdates",
        "",
        "updates",
        "changed",
        "initializeProperties",
        "QVariantMap",
        "updateProperties",
        "preparedUpgrade",
        "triggerAction",
        "Action",
        "updatePrepared",
        "updateTriggered",
        "upgradePrepared",
        "upgradeTriggered",
        "ActionUnset",
        "ActionPowerOff",
        "ActionReboot"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'preparedUpdates'
        QtMocHelpers::SignalData<void(const QStringList &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 3 },
        }}),
        // Signal 'changed'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'initializeProperties'
        QtMocHelpers::SlotData<void(QVariantMap)>(5, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 2 },
        }}),
        // Slot 'updateProperties'
        QtMocHelpers::SlotData<void(QString, QVariantMap, QStringList)>(7, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 2 }, { 0x80000000 | 6, 2 }, { QMetaType::QStringList, 2 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'preparedUpgrade'
        QtMocHelpers::PropertyData<QVariantMap>(8, 0x80000000 | 6, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'triggerAction'
        QtMocHelpers::PropertyData<enum Action>(9, 0x80000000 | 10, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'updatePrepared'
        QtMocHelpers::PropertyData<bool>(11, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'updateTriggered'
        QtMocHelpers::PropertyData<bool>(12, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'upgradePrepared'
        QtMocHelpers::PropertyData<bool>(13, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'upgradeTriggered'
        QtMocHelpers::PropertyData<bool>(14, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Action'
        QtMocHelpers::EnumData<enum Action>(10, 10, QMC::EnumFlags{}).add({
            {   15, Action::ActionUnset },
            {   16, Action::ActionPowerOff },
            {   17, Action::ActionReboot },
        }),
    };
    return QtMocHelpers::metaObjectData<Offline, qt_meta_tag_ZN10PackageKit7OfflineE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PackageKit::Offline::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10PackageKit7OfflineE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10PackageKit7OfflineE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10PackageKit7OfflineE_t>.metaTypes,
    nullptr
} };

void PackageKit::Offline::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Offline *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->preparedUpdates((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 1: _t->changed(); break;
        case 2: _t->d_func()->initializeProperties((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 3: _t->d_func()->updateProperties((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[3]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Offline::*)(const QStringList & )>(_a, &Offline::preparedUpdates, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Offline::*)()>(_a, &Offline::changed, 1))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QVariantMap*>(_v) = _t->preparedUpgrade(); break;
        case 1: *reinterpret_cast<enum Action*>(_v) = _t->triggerAction(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->updatePrepared(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->updateTriggered(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->upgradePrepared(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->upgradeTriggered(); break;
        default: break;
        }
    }
}

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

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

int PackageKit::Offline::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 < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 4;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    }
    return _id;
}

// SIGNAL 0
void PackageKit::Offline::preparedUpdates(const QStringList & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void PackageKit::Offline::changed()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
