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

#include "../../updater/mainwindow.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mainwindow.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.4.1. 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
struct qt_meta_stringdata_MainWindow_t {
    QByteArrayData data[22];
    char stringdata[285];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = {
    {
QT_MOC_LITERAL(0, 0, 10), // "MainWindow"
QT_MOC_LITERAL(1, 11, 9), // "file_load"
QT_MOC_LITERAL(2, 21, 0), // ""
QT_MOC_LITERAL(3, 22, 23), // "on_importButton_clicked"
QT_MOC_LITERAL(4, 46, 21), // "on_openButton_clicked"
QT_MOC_LITERAL(5, 68, 23), // "on_updateButton_clicked"
QT_MOC_LITERAL(6, 92, 21), // "on_TestButton_clicked"
QT_MOC_LITERAL(7, 114, 7), // "sendCom"
QT_MOC_LITERAL(8, 122, 8), // "senddata"
QT_MOC_LITERAL(9, 131, 11), // "StringToHex"
QT_MOC_LITERAL(10, 143, 3), // "str"
QT_MOC_LITERAL(11, 147, 11), // "QByteArray&"
QT_MOC_LITERAL(12, 159, 14), // "ConvertHexChar"
QT_MOC_LITERAL(13, 174, 2), // "ch"
QT_MOC_LITERAL(14, 177, 22), // "on_clearButton_clicked"
QT_MOC_LITERAL(15, 200, 10), // "timeUpdate"
QT_MOC_LITERAL(16, 211, 9), // "Read_Data"
QT_MOC_LITERAL(17, 221, 8), // "com_rece"
QT_MOC_LITERAL(18, 230, 8), // "stopLoop"
QT_MOC_LITERAL(19, 239, 10), // "ClearFlash"
QT_MOC_LITERAL(20, 250, 10), // "Updatedata"
QT_MOC_LITERAL(21, 261, 23) // "on_TestButton_2_clicked"

    },
    "MainWindow\0file_load\0\0on_importButton_clicked\0"
    "on_openButton_clicked\0on_updateButton_clicked\0"
    "on_TestButton_clicked\0sendCom\0senddata\0"
    "StringToHex\0str\0QByteArray&\0ConvertHexChar\0"
    "ch\0on_clearButton_clicked\0timeUpdate\0"
    "Read_Data\0com_rece\0stopLoop\0ClearFlash\0"
    "Updatedata\0on_TestButton_2_clicked"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_MainWindow[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    0,   94,    2, 0x08 /* Private */,
       3,    0,   95,    2, 0x08 /* Private */,
       4,    0,   96,    2, 0x08 /* Private */,
       5,    0,   97,    2, 0x08 /* Private */,
       6,    0,   98,    2, 0x08 /* Private */,
       7,    1,   99,    2, 0x08 /* Private */,
       9,    2,  102,    2, 0x08 /* Private */,
      12,    1,  107,    2, 0x08 /* Private */,
      14,    0,  110,    2, 0x08 /* Private */,
      15,    0,  111,    2, 0x08 /* Private */,
      16,    0,  112,    2, 0x08 /* Private */,
      17,    0,  113,    2, 0x08 /* Private */,
      18,    0,  114,    2, 0x08 /* Private */,
      19,    0,  115,    2, 0x08 /* Private */,
      20,    0,  116,    2, 0x08 /* Private */,
      21,    0,  117,    2, 0x08 /* Private */,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QByteArray,    8,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 11,   10,    8,
    QMetaType::Char, QMetaType::Char,   13,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        MainWindow *_t = static_cast<MainWindow *>(_o);
        switch (_id) {
        case 0: _t->file_load(); break;
        case 1: _t->on_importButton_clicked(); break;
        case 2: _t->on_openButton_clicked(); break;
        case 3: _t->on_updateButton_clicked(); break;
        case 4: _t->on_TestButton_clicked(); break;
        case 5: _t->sendCom((*reinterpret_cast< QByteArray(*)>(_a[1]))); break;
        case 6: _t->StringToHex((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QByteArray(*)>(_a[2]))); break;
        case 7: { char _r = _t->ConvertHexChar((*reinterpret_cast< char(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< char*>(_a[0]) = _r; }  break;
        case 8: _t->on_clearButton_clicked(); break;
        case 9: _t->timeUpdate(); break;
        case 10: _t->Read_Data(); break;
        case 11: _t->com_rece(); break;
        case 12: _t->stopLoop(); break;
        case 13: _t->ClearFlash(); break;
        case 14: _t->Updatedata(); break;
        case 15: _t->on_TestButton_2_clicked(); break;
        default: ;
        }
    }
}

const QMetaObject MainWindow::staticMetaObject = {
    { &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow.data,
      qt_meta_data_MainWindow,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *MainWindow::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata))
        return static_cast<void*>(const_cast< MainWindow*>(this));
    return QMainWindow::qt_metacast(_clname);
}

int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::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;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 16)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 16;
    }
    return _id;
}
QT_END_MOC_NAMESPACE
