/****************************************************************************
** Meta object code from reading C++ file 'yubikeywriter.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.18)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include <memory>
#include "../../../src/yubikeywriter.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'yubikeywriter.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.18. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_YubiKeyWriter_t {
    QByteArrayData data[24];
    char stringdata0[231];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_YubiKeyWriter_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_YubiKeyWriter_t qt_meta_stringdata_YubiKeyWriter = {
    {
QT_MOC_LITERAL(0, 0, 13), // "YubiKeyWriter"
QT_MOC_LITERAL(1, 14, 13), // "configWritten"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 7), // "written"
QT_MOC_LITERAL(4, 37, 3), // "msg"
QT_MOC_LITERAL(5, 41, 13), // "errorOccurred"
QT_MOC_LITERAL(6, 55, 4), // "text"
QT_MOC_LITERAL(7, 60, 11), // "diagnostics"
QT_MOC_LITERAL(8, 72, 11), // "writeConfig"
QT_MOC_LITERAL(9, 84, 14), // "YubiKeyConfig*"
QT_MOC_LITERAL(10, 99, 8), // "ykConfig"
QT_MOC_LITERAL(11, 108, 12), // "exportConfig"
QT_MOC_LITERAL(12, 121, 19), // "doChallengeResponse"
QT_MOC_LITERAL(13, 141, 9), // "challenge"
QT_MOC_LITERAL(14, 151, 8), // "QString&"
QT_MOC_LITERAL(15, 160, 8), // "response"
QT_MOC_LITERAL(16, 169, 4), // "slot"
QT_MOC_LITERAL(17, 174, 4), // "hmac"
QT_MOC_LITERAL(18, 179, 9), // "writeNdef"
QT_MOC_LITERAL(19, 189, 3), // "uri"
QT_MOC_LITERAL(20, 193, 8), // "language"
QT_MOC_LITERAL(21, 202, 7), // "payload"
QT_MOC_LITERAL(22, 210, 7), // "accCode"
QT_MOC_LITERAL(23, 218, 12) // "deleteConfig"

    },
    "YubiKeyWriter\0configWritten\0\0written\0"
    "msg\0errorOccurred\0text\0diagnostics\0"
    "writeConfig\0YubiKeyConfig*\0ykConfig\0"
    "exportConfig\0doChallengeResponse\0"
    "challenge\0QString&\0response\0slot\0hmac\0"
    "writeNdef\0uri\0language\0payload\0accCode\0"
    "deleteConfig"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_YubiKeyWriter[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       8,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    2,   54,    2, 0x06 /* Public */,
       5,    1,   59,    2, 0x06 /* Public */,
       7,    1,   62,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    1,   65,    2, 0x0a /* Public */,
      11,    1,   68,    2, 0x0a /* Public */,
      12,    4,   71,    2, 0x0a /* Public */,
      18,    5,   80,    2, 0x0a /* Public */,
      23,    2,   91,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::Bool, QMetaType::QString,    3,    4,
    QMetaType::Void, QMetaType::QString,    6,
    QMetaType::Void, QMetaType::QString,    6,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 9,   10,
    QMetaType::Void, 0x80000000 | 9,   10,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 14, QMetaType::Int, QMetaType::Bool,   13,   15,   16,   17,
    QMetaType::Void, QMetaType::Bool, QMetaType::QString, QMetaType::QString, QMetaType::QString, QMetaType::Int,   19,   20,   21,   22,   16,
    QMetaType::Void, QMetaType::Int, QMetaType::QString,   16,   22,

       0        // eod
};

void YubiKeyWriter::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<YubiKeyWriter *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->configWritten((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 1: _t->errorOccurred((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->diagnostics((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->writeConfig((*reinterpret_cast< YubiKeyConfig*(*)>(_a[1]))); break;
        case 4: _t->exportConfig((*reinterpret_cast< YubiKeyConfig*(*)>(_a[1]))); break;
        case 5: _t->doChallengeResponse((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< bool(*)>(_a[4]))); break;
        case 6: _t->writeNdef((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< const QString(*)>(_a[4])),(*reinterpret_cast< int(*)>(_a[5]))); break;
        case 7: _t->deleteConfig((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< YubiKeyConfig* >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< YubiKeyConfig* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (YubiKeyWriter::*)(bool , const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&YubiKeyWriter::configWritten)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (YubiKeyWriter::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&YubiKeyWriter::errorOccurred)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (YubiKeyWriter::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&YubiKeyWriter::diagnostics)) {
                *result = 2;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject YubiKeyWriter::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_YubiKeyWriter.data,
    qt_meta_data_YubiKeyWriter,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *YubiKeyWriter::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_YubiKeyWriter.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int YubiKeyWriter::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 < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    return _id;
}

// SIGNAL 0
void YubiKeyWriter::configWritten(bool _t1, const QString & _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void YubiKeyWriter::errorOccurred(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void YubiKeyWriter::diagnostics(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
