/****************************************************************************
** Meta object code from reading C++ file 'knewpasswordwidget.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 "../../../../kwidgetsaddons-6.26.0/src/knewpasswordwidget.h"
#include <QtGui/qtextcursor.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 'knewpasswordwidget.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_ZN18KNewPasswordWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto KNewPasswordWidget::qt_create_metaobjectdata<qt_meta_tag_ZN18KNewPasswordWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KNewPasswordWidget",
        "passwordStatusChanged",
        "",
        "setAllowEmptyPasswords",
        "allowed",
        "setMinimumPasswordLength",
        "minLength",
        "setMaximumPasswordLength",
        "maxLength",
        "setReasonablePasswordLength",
        "reasonableLength",
        "setPasswordStrengthWarningLevel",
        "warningLevel",
        "setBackgroundWarningColor",
        "QColor",
        "color",
        "setPasswordStrengthMeterVisible",
        "visible",
        "setRevealPasswordAvailable",
        "reveal",
        "setRevealPasswordMode",
        "KPassword::RevealMode",
        "revealPasswordMode",
        "passwordStatus",
        "PasswordStatus",
        "allowEmptyPasswords",
        "minimumPasswordLength",
        "maximumPasswordLength",
        "reasonablePasswordLength",
        "passwordStrengthWarningLevel",
        "backgroundWarningColor",
        "passwordStrengthMeterVisible",
        "revealPasswordAvailable",
        "EmptyPasswordNotAllowed",
        "PasswordTooShort",
        "PasswordNotVerified",
        "WeakPassword",
        "StrongPassword",
        "RevealPasswordMode",
        "OnlyNew",
        "Never",
        "Always"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'passwordStatusChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setAllowEmptyPasswords'
        QtMocHelpers::SlotData<void(bool)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 4 },
        }}),
        // Slot 'setMinimumPasswordLength'
        QtMocHelpers::SlotData<void(int)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 6 },
        }}),
        // Slot 'setMaximumPasswordLength'
        QtMocHelpers::SlotData<void(int)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 8 },
        }}),
        // Slot 'setReasonablePasswordLength'
        QtMocHelpers::SlotData<void(int)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 10 },
        }}),
        // Slot 'setPasswordStrengthWarningLevel'
        QtMocHelpers::SlotData<void(int)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 12 },
        }}),
        // Slot 'setBackgroundWarningColor'
        QtMocHelpers::SlotData<void(const QColor &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
        // Slot 'setPasswordStrengthMeterVisible'
        QtMocHelpers::SlotData<void(bool)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 17 },
        }}),
        // Slot 'setRevealPasswordAvailable'
        QtMocHelpers::SlotData<void(bool)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 19 },
        }}),
        // Slot 'setRevealPasswordMode'
        QtMocHelpers::SlotData<void(KPassword::RevealMode)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 22 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'passwordStatus'
        QtMocHelpers::PropertyData<enum PasswordStatus>(23, 0x80000000 | 24, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'allowEmptyPasswords'
        QtMocHelpers::PropertyData<bool>(25, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'minimumPasswordLength'
        QtMocHelpers::PropertyData<int>(26, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'maximumPasswordLength'
        QtMocHelpers::PropertyData<int>(27, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'reasonablePasswordLength'
        QtMocHelpers::PropertyData<int>(28, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'passwordStrengthWarningLevel'
        QtMocHelpers::PropertyData<int>(29, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'backgroundWarningColor'
        QtMocHelpers::PropertyData<QColor>(30, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'passwordStrengthMeterVisible'
        QtMocHelpers::PropertyData<bool>(31, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'revealPasswordAvailable'
        QtMocHelpers::PropertyData<bool>(32, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'revealPasswordMode'
        QtMocHelpers::PropertyData<KPassword::RevealMode>(22, 0x80000000 | 21, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'PasswordStatus'
        QtMocHelpers::EnumData<enum PasswordStatus>(24, 24, QMC::EnumFlags{}).add({
            {   33, PasswordStatus::EmptyPasswordNotAllowed },
            {   34, PasswordStatus::PasswordTooShort },
            {   35, PasswordStatus::PasswordNotVerified },
            {   36, PasswordStatus::WeakPassword },
            {   37, PasswordStatus::StrongPassword },
        }),
        // enum 'RevealPasswordMode'
        QtMocHelpers::EnumData<enum RevealPasswordMode>(38, 38, QMC::EnumIsScoped).add({
            {   39, RevealPasswordMode::OnlyNew },
            {   40, RevealPasswordMode::Never },
            {   41, RevealPasswordMode::Always },
        }),
    };
    return QtMocHelpers::metaObjectData<KNewPasswordWidget, qt_meta_tag_ZN18KNewPasswordWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT static const QMetaObject::SuperData qt_meta_extradata_ZN18KNewPasswordWidgetE[] = {
    QMetaObject::SuperData::link<KPassword::staticMetaObject>(),
    nullptr
};

Q_CONSTINIT const QMetaObject KNewPasswordWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18KNewPasswordWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18KNewPasswordWidgetE_t>.data,
    qt_static_metacall,
    qt_meta_extradata_ZN18KNewPasswordWidgetE,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN18KNewPasswordWidgetE_t>.metaTypes,
    nullptr
} };

void KNewPasswordWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KNewPasswordWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->passwordStatusChanged(); break;
        case 1: _t->setAllowEmptyPasswords((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->setMinimumPasswordLength((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->setMaximumPasswordLength((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 4: _t->setReasonablePasswordLength((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 5: _t->setPasswordStrengthWarningLevel((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 6: _t->setBackgroundWarningColor((*reinterpret_cast<std::add_pointer_t<QColor>>(_a[1]))); break;
        case 7: _t->setPasswordStrengthMeterVisible((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 8: _t->setRevealPasswordAvailable((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 9: _t->setRevealPasswordMode((*reinterpret_cast<std::add_pointer_t<KPassword::RevealMode>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KNewPasswordWidget::*)()>(_a, &KNewPasswordWidget::passwordStatusChanged, 0))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum PasswordStatus*>(_v) = _t->passwordStatus(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->allowEmptyPasswords(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->minimumPasswordLength(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->maximumPasswordLength(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->reasonablePasswordLength(); break;
        case 5: *reinterpret_cast<int*>(_v) = _t->passwordStrengthWarningLevel(); break;
        case 6: *reinterpret_cast<QColor*>(_v) = _t->backgroundWarningColor(); break;
        case 7: *reinterpret_cast<bool*>(_v) = _t->isPasswordStrengthMeterVisible(); break;
        case 8: *reinterpret_cast<bool*>(_v) = _t->isRevealPasswordAvailable(); break;
        case 9: *reinterpret_cast<KPassword::RevealMode*>(_v) = _t->revealPasswordMode(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setAllowEmptyPasswords(*reinterpret_cast<bool*>(_v)); break;
        case 2: _t->setMinimumPasswordLength(*reinterpret_cast<int*>(_v)); break;
        case 3: _t->setMaximumPasswordLength(*reinterpret_cast<int*>(_v)); break;
        case 4: _t->setReasonablePasswordLength(*reinterpret_cast<int*>(_v)); break;
        case 5: _t->setPasswordStrengthWarningLevel(*reinterpret_cast<int*>(_v)); break;
        case 6: _t->setBackgroundWarningColor(*reinterpret_cast<QColor*>(_v)); break;
        case 7: _t->setPasswordStrengthMeterVisible(*reinterpret_cast<bool*>(_v)); break;
        case 8: _t->setRevealPasswordAvailable(*reinterpret_cast<bool*>(_v)); break;
        case 9: _t->setRevealPasswordMode(*reinterpret_cast<KPassword::RevealMode*>(_v)); break;
        default: break;
        }
    }
}

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

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

int KNewPasswordWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 10;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    return _id;
}

// SIGNAL 0
void KNewPasswordWidget::passwordStatusChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
QT_WARNING_POP
