/****************************************************************************
** Meta object code from reading C++ file 'hashhelper.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 "../../../../hash-o-matic/src/hashhelper.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 'hashhelper.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_ZN13SignatureInfoE_t {};
} // unnamed namespace

template <> constexpr inline auto SignatureInfo::qt_create_metaobjectdata<qt_meta_tag_ZN13SignatureInfoE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SignatureInfo",
        "keyId",
        "keyMissing",
        "keyRevoked",
        "keyExpired",
        "sigExpired",
        "crlMissing",
        "crlTooOld",
        "details",
        "signers",
        "signatureIsGood",
        "isCompliant",
        "keyTrust",
        "GpgME::Signature::Validity"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'keyId'
        QtMocHelpers::PropertyData<QByteArray>(1, QMetaType::QByteArray, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'keyMissing'
        QtMocHelpers::PropertyData<bool>(2, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'keyRevoked'
        QtMocHelpers::PropertyData<bool>(3, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'keyExpired'
        QtMocHelpers::PropertyData<bool>(4, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'sigExpired'
        QtMocHelpers::PropertyData<bool>(5, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'crlMissing'
        QtMocHelpers::PropertyData<bool>(6, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'crlTooOld'
        QtMocHelpers::PropertyData<bool>(7, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'details'
        QtMocHelpers::PropertyData<QString>(8, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'signers'
        QtMocHelpers::PropertyData<QString>(9, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'signatureIsGood'
        QtMocHelpers::PropertyData<bool>(10, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'isCompliant'
        QtMocHelpers::PropertyData<bool>(11, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'keyTrust'
        QtMocHelpers::PropertyData<GpgME::Signature::Validity>(12, 0x80000000 | 13, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SignatureInfo, qt_meta_tag_ZN13SignatureInfoE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject SignatureInfo::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13SignatureInfoE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13SignatureInfoE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13SignatureInfoE_t>.metaTypes,
    nullptr
} };

void SignatureInfo::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = reinterpret_cast<SignatureInfo *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QByteArray*>(_v) = _t->keyId; break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->keyMissing; break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->keyRevoked; break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->keyExpired; break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->sigExpired; break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->crlMissing; break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->crlTooOld; break;
        case 7: *reinterpret_cast<QString*>(_v) = _t->details; break;
        case 8: *reinterpret_cast<QString*>(_v) = _t->signers; break;
        case 9: *reinterpret_cast<bool*>(_v) = _t->signatureIsGood; break;
        case 10: *reinterpret_cast<bool*>(_v) = _t->isCompliant; break;
        case 11: *reinterpret_cast<GpgME::Signature::Validity*>(_v) = _t->keyTrust; break;
        default: break;
        }
    }
}
namespace {
struct qt_meta_tag_ZN10HashHelperE_t {};
} // unnamed namespace

template <> constexpr inline auto HashHelper::qt_create_metaobjectdata<qt_meta_tag_ZN10HashHelperE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "HashHelper",
        "QML.Element",
        "auto",
        "fileChanged",
        "",
        "sigFileChanged",
        "md5sumChanged",
        "sha1sumChanged",
        "sha256sumChanged",
        "errorOccured",
        "error",
        "signatureChanged",
        "file",
        "QUrl",
        "fileName",
        "minetypeIcon",
        "sigFile",
        "sigFileName",
        "sigMinetypeIcon",
        "md5sum",
        "sha1sum",
        "sha256sum",
        "gpgAvailable",
        "hasSignature",
        "signatureInfo",
        "SignatureInfo"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'fileChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sigFileChanged'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'md5sumChanged'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sha1sumChanged'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sha256sumChanged'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'errorOccured'
        QtMocHelpers::SignalData<void(const QString &)>(9, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 10 },
        }}),
        // Signal 'signatureChanged'
        QtMocHelpers::SignalData<void()>(11, 4, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'file'
        QtMocHelpers::PropertyData<QUrl>(12, 0x80000000 | 13, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'fileName'
        QtMocHelpers::PropertyData<QString>(14, QMetaType::QString, QMC::DefaultPropertyFlags, 0),
        // property 'minetypeIcon'
        QtMocHelpers::PropertyData<QString>(15, QMetaType::QString, QMC::DefaultPropertyFlags, 0),
        // property 'sigFile'
        QtMocHelpers::PropertyData<QUrl>(16, 0x80000000 | 13, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'sigFileName'
        QtMocHelpers::PropertyData<QString>(17, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'sigMinetypeIcon'
        QtMocHelpers::PropertyData<QString>(18, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'md5sum'
        QtMocHelpers::PropertyData<QString>(19, QMetaType::QString, QMC::DefaultPropertyFlags, 2),
        // property 'sha1sum'
        QtMocHelpers::PropertyData<QString>(20, QMetaType::QString, QMC::DefaultPropertyFlags, 3),
        // property 'sha256sum'
        QtMocHelpers::PropertyData<QString>(21, QMetaType::QString, QMC::DefaultPropertyFlags, 4),
        // property 'gpgAvailable'
        QtMocHelpers::PropertyData<bool>(22, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'hasSignature'
        QtMocHelpers::PropertyData<bool>(23, QMetaType::Bool, QMC::DefaultPropertyFlags, 0),
        // property 'signatureInfo'
        QtMocHelpers::PropertyData<SignatureInfo>(24, 0x80000000 | 25, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 6),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<HashHelper, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject HashHelper::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10HashHelperE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10HashHelperE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10HashHelperE_t>.metaTypes,
    nullptr
} };

void HashHelper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<HashHelper *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->fileChanged(); break;
        case 1: _t->sigFileChanged(); break;
        case 2: _t->md5sumChanged(); break;
        case 3: _t->sha1sumChanged(); break;
        case 4: _t->sha256sumChanged(); break;
        case 5: _t->errorOccured((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->signatureChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (HashHelper::*)()>(_a, &HashHelper::fileChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (HashHelper::*)()>(_a, &HashHelper::sigFileChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (HashHelper::*)()>(_a, &HashHelper::md5sumChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (HashHelper::*)()>(_a, &HashHelper::sha1sumChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (HashHelper::*)()>(_a, &HashHelper::sha256sumChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (HashHelper::*)(const QString & )>(_a, &HashHelper::errorOccured, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (HashHelper::*)()>(_a, &HashHelper::signatureChanged, 6))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QUrl*>(_v) = _t->file(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->fileName(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->minetypeIcon(); break;
        case 3: *reinterpret_cast<QUrl*>(_v) = _t->sigFile(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->sigFileName(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->sigMinetypeIcon(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->md5sum(); break;
        case 7: *reinterpret_cast<QString*>(_v) = _t->sha1sum(); break;
        case 8: *reinterpret_cast<QString*>(_v) = _t->sha256sum(); break;
        case 9: *reinterpret_cast<bool*>(_v) = _t->gpgAvailable(); break;
        case 10: *reinterpret_cast<bool*>(_v) = _t->hasSignature(); break;
        case 11: *reinterpret_cast<SignatureInfo*>(_v) = _t->signatureInfo(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setFile(*reinterpret_cast<QUrl*>(_v)); break;
        case 3: _t->setSigFile(*reinterpret_cast<QUrl*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

// SIGNAL 0
void HashHelper::fileChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void HashHelper::sigFileChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void HashHelper::md5sumChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void HashHelper::sha1sumChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void HashHelper::sha256sumChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void HashHelper::errorOccured(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void HashHelper::signatureChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
QT_WARNING_POP
