/****************************************************************************
** Meta object code from reading C++ file 'kb.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 "../../../../../ckb-next-0.6.2/src/gui/kb.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 'kb.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_ZN2KbE_t {};
} // unnamed namespace

template <> constexpr inline auto Kb::qt_create_metaobjectdata<qt_meta_tag_ZN2KbE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Kb",
        "infoUpdated",
        "",
        "profileAdded",
        "profileRenamed",
        "batteryChanged",
        "batteryLevel",
        "BatteryStatus",
        "batteryStatus",
        "batteryChangedLed",
        "profileChanged",
        "profileAboutToChange",
        "modeChanged",
        "fwUpdateProgress",
        "current",
        "total",
        "fwUpdateFinished",
        "succeeded",
        "frameUpdate",
        "autoSave",
        "readNotify",
        "line",
        "deleteHw",
        "deletePrevious",
        "updateBattery"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'infoUpdated'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'profileAdded'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'profileRenamed'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'batteryChanged'
        QtMocHelpers::SignalData<void(uint, BatteryStatus)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 6 }, { 0x80000000 | 7, 8 },
        }}),
        // Signal 'batteryChangedLed'
        QtMocHelpers::SignalData<void(uint, BatteryStatus)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 6 }, { 0x80000000 | 7, 8 },
        }}),
        // Signal 'profileChanged'
        QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'profileAboutToChange'
        QtMocHelpers::SignalData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'modeChanged'
        QtMocHelpers::SignalData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'fwUpdateProgress'
        QtMocHelpers::SignalData<void(int, int)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 14 }, { QMetaType::Int, 15 },
        }}),
        // Signal 'fwUpdateFinished'
        QtMocHelpers::SignalData<void(bool)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 17 },
        }}),
        // Slot 'frameUpdate'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'autoSave'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'readNotify'
        QtMocHelpers::SlotData<void(const QString &)>(20, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 21 },
        }}),
        // Slot 'deleteHw'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'deletePrevious'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updateBattery'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Kb, qt_meta_tag_ZN2KbE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Kb::staticMetaObject = { {
    QMetaObject::SuperData::link<QThread::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN2KbE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN2KbE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN2KbE_t>.metaTypes,
    nullptr
} };

void Kb::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Kb *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->infoUpdated(); break;
        case 1: _t->profileAdded(); break;
        case 2: _t->profileRenamed(); break;
        case 3: _t->batteryChanged((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<BatteryStatus>>(_a[2]))); break;
        case 4: _t->batteryChangedLed((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<BatteryStatus>>(_a[2]))); break;
        case 5: _t->profileChanged(); break;
        case 6: _t->profileAboutToChange(); break;
        case 7: _t->modeChanged(); break;
        case 8: _t->fwUpdateProgress((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 9: _t->fwUpdateFinished((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 10: _t->frameUpdate(); break;
        case 11: _t->autoSave(); break;
        case 12: _t->readNotify((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 13: _t->deleteHw(); break;
        case 14: _t->deletePrevious(); break;
        case 15: _t->updateBattery(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Kb::*)()>(_a, &Kb::infoUpdated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Kb::*)()>(_a, &Kb::profileAdded, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Kb::*)()>(_a, &Kb::profileRenamed, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Kb::*)(uint , BatteryStatus )>(_a, &Kb::batteryChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Kb::*)(uint , BatteryStatus )>(_a, &Kb::batteryChangedLed, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Kb::*)()>(_a, &Kb::profileChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Kb::*)()>(_a, &Kb::profileAboutToChange, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (Kb::*)()>(_a, &Kb::modeChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (Kb::*)(int , int )>(_a, &Kb::fwUpdateProgress, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (Kb::*)(bool )>(_a, &Kb::fwUpdateFinished, 9))
            return;
    }
}

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

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

int Kb::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QThread::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 16)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 16;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 16)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 16;
    }
    return _id;
}

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

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

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

// SIGNAL 3
void Kb::batteryChanged(uint _t1, BatteryStatus _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}

// SIGNAL 4
void Kb::batteryChangedLed(uint _t1, BatteryStatus _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2);
}

// SIGNAL 5
void Kb::profileChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void Kb::profileAboutToChange()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void Kb::modeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void Kb::fwUpdateProgress(int _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1, _t2);
}

// SIGNAL 9
void Kb::fwUpdateFinished(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1);
}
QT_WARNING_POP
