/****************************************************************************
** Meta object code from reading C++ file 'CWKeyer.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 "cwkey/CWKeyer.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 'CWKeyer.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_ZN7CWKeyerE_t {};
} // unnamed namespace

template <> constexpr inline auto CWKeyer::qt_create_metaobjectdata<qt_meta_tag_ZN7CWKeyerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "CWKeyer",
        "cwKeyerError",
        "",
        "cwKeyConnected",
        "cwKeyDisconnected",
        "cwKeyWPMChanged",
        "cwKeyEchoText",
        "cwKeyHWButton",
        "cwKeyHWHaltPressed",
        "start",
        "update",
        "open",
        "close",
        "canStopSending",
        "canEchoChar",
        "rigMustConnected",
        "canSetSpeed",
        "setSpeed",
        "wpm",
        "sendText",
        "immediatelyStop",
        "openImpl",
        "closeImpl",
        "setSpeedImpl",
        "sendTextImpl",
        "immediatelyStopImpl",
        "stopTimerImplt",
        "keyErrorHandler",
        "cwKeyWPMChangedHandler",
        "cwKeyEchoTextHandler",
        "cwKeyHWButton1PressedHandler",
        "cwKeyHWButton2PressedHandler",
        "cwKeyHWButton3PressedHandler",
        "cwKeyHWButton4PressedHandler"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'cwKeyerError'
        QtMocHelpers::SignalData<void(QString, QString)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 }, { QMetaType::QString, 2 },
        }}),
        // Signal 'cwKeyConnected'
        QtMocHelpers::SignalData<void(QString)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Signal 'cwKeyDisconnected'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'cwKeyWPMChanged'
        QtMocHelpers::SignalData<void(qint32)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Signal 'cwKeyEchoText'
        QtMocHelpers::SignalData<void(QString)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Signal 'cwKeyHWButton'
        QtMocHelpers::SignalData<void(int)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Signal 'cwKeyHWHaltPressed'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'start'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'update'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'open'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'close'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'canStopSending'
        QtMocHelpers::SlotData<bool()>(13, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'canEchoChar'
        QtMocHelpers::SlotData<bool()>(14, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'rigMustConnected'
        QtMocHelpers::SlotData<bool()>(15, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'canSetSpeed'
        QtMocHelpers::SlotData<bool()>(16, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'setSpeed'
        QtMocHelpers::SlotData<void(const qint16)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Short, 18 },
        }}),
        // Slot 'sendText'
        QtMocHelpers::SlotData<void(const QString &)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Slot 'immediatelyStop'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'openImpl'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'closeImpl'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'setSpeedImpl'
        QtMocHelpers::SlotData<void(const qint16)>(23, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Short, 18 },
        }}),
        // Slot 'sendTextImpl'
        QtMocHelpers::SlotData<void(const QString &)>(24, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Slot 'immediatelyStopImpl'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'stopTimerImplt'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'keyErrorHandler'
        QtMocHelpers::SlotData<void(const QString &, const QString &)>(27, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 2 }, { QMetaType::QString, 2 },
        }}),
        // Slot 'cwKeyWPMChangedHandler'
        QtMocHelpers::SlotData<void(qint32)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'cwKeyEchoTextHandler'
        QtMocHelpers::SlotData<void(const QString &)>(29, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Slot 'cwKeyHWButton1PressedHandler'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'cwKeyHWButton2PressedHandler'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'cwKeyHWButton3PressedHandler'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'cwKeyHWButton4PressedHandler'
        QtMocHelpers::SlotData<void()>(33, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<CWKeyer, qt_meta_tag_ZN7CWKeyerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject CWKeyer::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7CWKeyerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7CWKeyerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN7CWKeyerE_t>.metaTypes,
    nullptr
} };

void CWKeyer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CWKeyer *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->cwKeyerError((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 1: _t->cwKeyConnected((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->cwKeyDisconnected(); break;
        case 3: _t->cwKeyWPMChanged((*reinterpret_cast<std::add_pointer_t<qint32>>(_a[1]))); break;
        case 4: _t->cwKeyEchoText((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->cwKeyHWButton((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 6: _t->cwKeyHWHaltPressed(); break;
        case 7: _t->start(); break;
        case 8: _t->update(); break;
        case 9: _t->open(); break;
        case 10: _t->close(); break;
        case 11: { bool _r = _t->canStopSending();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 12: { bool _r = _t->canEchoChar();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 13: { bool _r = _t->rigMustConnected();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 14: { bool _r = _t->canSetSpeed();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 15: _t->setSpeed((*reinterpret_cast<std::add_pointer_t<qint16>>(_a[1]))); break;
        case 16: _t->sendText((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 17: _t->immediatelyStop(); break;
        case 18: _t->openImpl(); break;
        case 19: _t->closeImpl(); break;
        case 20: _t->setSpeedImpl((*reinterpret_cast<std::add_pointer_t<qint16>>(_a[1]))); break;
        case 21: _t->sendTextImpl((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 22: _t->immediatelyStopImpl(); break;
        case 23: _t->stopTimerImplt(); break;
        case 24: _t->keyErrorHandler((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 25: _t->cwKeyWPMChangedHandler((*reinterpret_cast<std::add_pointer_t<qint32>>(_a[1]))); break;
        case 26: _t->cwKeyEchoTextHandler((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 27: _t->cwKeyHWButton1PressedHandler(); break;
        case 28: _t->cwKeyHWButton2PressedHandler(); break;
        case 29: _t->cwKeyHWButton3PressedHandler(); break;
        case 30: _t->cwKeyHWButton4PressedHandler(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (CWKeyer::*)(QString , QString )>(_a, &CWKeyer::cwKeyerError, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (CWKeyer::*)(QString )>(_a, &CWKeyer::cwKeyConnected, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (CWKeyer::*)()>(_a, &CWKeyer::cwKeyDisconnected, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (CWKeyer::*)(qint32 )>(_a, &CWKeyer::cwKeyWPMChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (CWKeyer::*)(QString )>(_a, &CWKeyer::cwKeyEchoText, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (CWKeyer::*)(int )>(_a, &CWKeyer::cwKeyHWButton, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (CWKeyer::*)()>(_a, &CWKeyer::cwKeyHWHaltPressed, 6))
            return;
    }
}

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

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

int CWKeyer::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 < 31)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 31;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 31)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 31;
    }
    return _id;
}

// SIGNAL 0
void CWKeyer::cwKeyerError(QString _t1, QString _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void CWKeyer::cwKeyConnected(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

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

// SIGNAL 3
void CWKeyer::cwKeyWPMChanged(qint32 _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void CWKeyer::cwKeyEchoText(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void CWKeyer::cwKeyHWButton(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

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