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

#include <memory>
#include "../../TCPSocketHelper/tcpsockethelper.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'tcpsockethelper.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.13.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_TCPSocketHelper_t {
    QByteArrayData data[17];
    char stringdata0[219];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_TCPSocketHelper_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_TCPSocketHelper_t qt_meta_stringdata_TCPSocketHelper = {
    {
QT_MOC_LITERAL(0, 0, 15), // "TCPSocketHelper"
QT_MOC_LITERAL(1, 16, 12), // "ResponseData"
QT_MOC_LITERAL(2, 29, 0), // ""
QT_MOC_LITERAL(3, 30, 12), // "MessageTypes"
QT_MOC_LITERAL(4, 43, 16), // "ResponseInfoData"
QT_MOC_LITERAL(5, 60, 20), // "TCPSocketIsConnected"
QT_MOC_LITERAL(6, 81, 23), // "TCPSocketIsDisconnected"
QT_MOC_LITERAL(7, 105, 17), // "TCPSocketUnstable"
QT_MOC_LITERAL(8, 123, 8), // "Register"
QT_MOC_LITERAL(9, 132, 7), // "Binding"
QT_MOC_LITERAL(10, 140, 3), // "epc"
QT_MOC_LITERAL(11, 144, 8), // "carPlnum"
QT_MOC_LITERAL(12, 153, 11), // "onConnected"
QT_MOC_LITERAL(13, 165, 11), // "onReadyRead"
QT_MOC_LITERAL(14, 177, 14), // "onDisconnected"
QT_MOC_LITERAL(15, 192, 14), // "checkHeartBeat"
QT_MOC_LITERAL(16, 207, 11) // "LatencyTest"

    },
    "TCPSocketHelper\0ResponseData\0\0"
    "MessageTypes\0ResponseInfoData\0"
    "TCPSocketIsConnected\0TCPSocketIsDisconnected\0"
    "TCPSocketUnstable\0Register\0Binding\0"
    "epc\0carPlnum\0onConnected\0onReadyRead\0"
    "onDisconnected\0checkHeartBeat\0LatencyTest"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_TCPSocketHelper[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      11,   14, // methods
       0,    0, // properties
       1,   96, // enums/sets
       0,    0, // constructors
       0,       // flags
       5,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    3,   69,    2, 0x06 /* Public */,
       4,    3,   76,    2, 0x06 /* Public */,
       5,    0,   83,    2, 0x06 /* Public */,
       6,    0,   84,    2, 0x06 /* Public */,
       7,    0,   85,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    0,   86,    2, 0x0a /* Public */,
       9,    2,   87,    2, 0x0a /* Public */,
      12,    0,   92,    2, 0x08 /* Private */,
      13,    0,   93,    2, 0x08 /* Private */,
      14,    0,   94,    2, 0x08 /* Private */,
      15,    0,   95,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, QMetaType::Short, QMetaType::QByteArray,    2,    2,    2,
    QMetaType::Void, 0x80000000 | 3, QMetaType::Short, QMetaType::QByteArray,    2,    2,    2,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,   10,   11,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // enums: name, alias, flags, count, data
       3,    3, 0x0,    1,  101,

 // enum data: key, value
      16, uint(TCPSocketHelper::LatencyTest),

       0        // eod
};

void TCPSocketHelper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<TCPSocketHelper *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->ResponseData((*reinterpret_cast< MessageTypes(*)>(_a[1])),(*reinterpret_cast< short(*)>(_a[2])),(*reinterpret_cast< QByteArray(*)>(_a[3]))); break;
        case 1: _t->ResponseInfoData((*reinterpret_cast< MessageTypes(*)>(_a[1])),(*reinterpret_cast< short(*)>(_a[2])),(*reinterpret_cast< QByteArray(*)>(_a[3]))); break;
        case 2: _t->TCPSocketIsConnected(); break;
        case 3: _t->TCPSocketIsDisconnected(); break;
        case 4: _t->TCPSocketUnstable(); break;
        case 5: _t->Register(); break;
        case 6: _t->Binding((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
        case 7: _t->onConnected(); break;
        case 8: _t->onReadyRead(); break;
        case 9: _t->onDisconnected(); break;
        case 10: _t->checkHeartBeat(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (TCPSocketHelper::*)(MessageTypes , short , QByteArray );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPSocketHelper::ResponseData)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (TCPSocketHelper::*)(MessageTypes , short , QByteArray );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPSocketHelper::ResponseInfoData)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (TCPSocketHelper::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPSocketHelper::TCPSocketIsConnected)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (TCPSocketHelper::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPSocketHelper::TCPSocketIsDisconnected)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (TCPSocketHelper::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPSocketHelper::TCPSocketUnstable)) {
                *result = 4;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject TCPSocketHelper::staticMetaObject = { {
    &QObject::staticMetaObject,
    qt_meta_stringdata_TCPSocketHelper.data,
    qt_meta_data_TCPSocketHelper,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

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

// SIGNAL 0
void TCPSocketHelper::ResponseData(MessageTypes _t1, short _t2, QByteArray _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void TCPSocketHelper::ResponseInfoData(MessageTypes _t1, short _t2, QByteArray _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

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

// SIGNAL 3
void TCPSocketHelper::TCPSocketIsDisconnected()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void TCPSocketHelper::TCPSocketUnstable()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
