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

#include <memory>
#include "../../../XSerialPortWidget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'XSerialPortWidget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.2. 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_XSerialPortWidget_t {
    QByteArrayData data[29];
    char stringdata0[386];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_XSerialPortWidget_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_XSerialPortWidget_t qt_meta_stringdata_XSerialPortWidget = {
    {
QT_MOC_LITERAL(0, 0, 17), // "XSerialPortWidget"
QT_MOC_LITERAL(1, 18, 12), // "ota_recv_cmd"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 8), // "uint8_t*"
QT_MOC_LITERAL(4, 41, 4), // "data"
QT_MOC_LITERAL(5, 46, 8), // "uint16_t"
QT_MOC_LITERAL(6, 55, 3), // "len"
QT_MOC_LITERAL(7, 59, 12), // "ota_send_cmd"
QT_MOC_LITERAL(8, 72, 8), // "cmd_type"
QT_MOC_LITERAL(9, 81, 7), // "command"
QT_MOC_LITERAL(10, 89, 9), // "ota_start"
QT_MOC_LITERAL(11, 99, 8), // "ota_stop"
QT_MOC_LITERAL(12, 108, 7), // "uint8_t"
QT_MOC_LITERAL(13, 116, 6), // "status"
QT_MOC_LITERAL(14, 123, 16), // "app_otas_crc_cal"
QT_MOC_LITERAL(15, 140, 8), // "uint32_t"
QT_MOC_LITERAL(16, 149, 15), // "firmware_length"
QT_MOC_LITERAL(17, 165, 16), // "otatimer_timeout"
QT_MOC_LITERAL(18, 182, 13), // "onNewPortList"
QT_MOC_LITERAL(19, 196, 8), // "portName"
QT_MOC_LITERAL(20, 205, 19), // "serialPortReadReady"
QT_MOC_LITERAL(21, 225, 23), // "on_OpenClose_Bt_clicked"
QT_MOC_LITERAL(22, 249, 7), // "checked"
QT_MOC_LITERAL(23, 257, 25), // "on_burnFileButton_clicked"
QT_MOC_LITERAL(24, 283, 21), // "on_burnButton_clicked"
QT_MOC_LITERAL(25, 305, 38), // "on_languageComboBox_currentTe..."
QT_MOC_LITERAL(26, 344, 3), // "arg"
QT_MOC_LITERAL(27, 348, 31), // "on_comboBox_currentIndexChanged"
QT_MOC_LITERAL(28, 380, 5) // "index"

    },
    "XSerialPortWidget\0ota_recv_cmd\0\0"
    "uint8_t*\0data\0uint16_t\0len\0ota_send_cmd\0"
    "cmd_type\0command\0ota_start\0ota_stop\0"
    "uint8_t\0status\0app_otas_crc_cal\0"
    "uint32_t\0firmware_length\0otatimer_timeout\0"
    "onNewPortList\0portName\0serialPortReadReady\0"
    "on_OpenClose_Bt_clicked\0checked\0"
    "on_burnFileButton_clicked\0"
    "on_burnButton_clicked\0"
    "on_languageComboBox_currentTextChanged\0"
    "arg\0on_comboBox_currentIndexChanged\0"
    "index"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_XSerialPortWidget[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    2,   79,    2, 0x08 /* Private */,
       7,    1,   84,    2, 0x08 /* Private */,
      10,    0,   87,    2, 0x08 /* Private */,
      11,    1,   88,    2, 0x08 /* Private */,
      14,    1,   91,    2, 0x08 /* Private */,
      17,    0,   94,    2, 0x08 /* Private */,
      18,    1,   95,    2, 0x08 /* Private */,
      20,    0,   98,    2, 0x08 /* Private */,
      21,    1,   99,    2, 0x08 /* Private */,
      23,    0,  102,    2, 0x08 /* Private */,
      24,    0,  103,    2, 0x08 /* Private */,
      25,    1,  104,    2, 0x08 /* Private */,
      27,    1,  107,    2, 0x08 /* Private */,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5,    4,    6,
    QMetaType::Void, 0x80000000 | 8,    9,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 12,   13,
    0x80000000 | 15, 0x80000000 | 15,   16,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QStringList,   19,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   22,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   26,
    QMetaType::Void, QMetaType::Int,   28,

       0        // eod
};

void XSerialPortWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<XSerialPortWidget *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->ota_recv_cmd((*reinterpret_cast< uint8_t*(*)>(_a[1])),(*reinterpret_cast< uint16_t(*)>(_a[2]))); break;
        case 1: _t->ota_send_cmd((*reinterpret_cast< cmd_type(*)>(_a[1]))); break;
        case 2: _t->ota_start(); break;
        case 3: _t->ota_stop((*reinterpret_cast< uint8_t(*)>(_a[1]))); break;
        case 4: { uint32_t _r = _t->app_otas_crc_cal((*reinterpret_cast< uint32_t(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< uint32_t*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->otatimer_timeout(); break;
        case 6: _t->onNewPortList((*reinterpret_cast< QStringList(*)>(_a[1]))); break;
        case 7: _t->serialPortReadReady(); break;
        case 8: _t->on_OpenClose_Bt_clicked((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 9: _t->on_burnFileButton_clicked(); break;
        case 10: _t->on_burnButton_clicked(); break;
        case 11: _t->on_languageComboBox_currentTextChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 12: _t->on_comboBox_currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        default: ;
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject XSerialPortWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_meta_stringdata_XSerialPortWidget.data,
    qt_meta_data_XSerialPortWidget,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int XSerialPortWidget::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 < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 13;
    }
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
