/****************************************************************************
** 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[19];
    char stringdata0[252];
};
#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, 19), // "ReturnBindingStatus"
QT_MOC_LITERAL(9, 143, 6), // "status"
QT_MOC_LITERAL(10, 150, 8), // "Register"
QT_MOC_LITERAL(11, 159, 7), // "Binding"
QT_MOC_LITERAL(12, 167, 13), // "PacketBinding"
QT_MOC_LITERAL(13, 181, 4), // "from"
QT_MOC_LITERAL(14, 186, 11), // "onConnected"
QT_MOC_LITERAL(15, 198, 11), // "onReadyRead"
QT_MOC_LITERAL(16, 210, 14), // "onDisconnected"
QT_MOC_LITERAL(17, 225, 14), // "checkHeartBeat"
QT_MOC_LITERAL(18, 240, 11) // "LatencyTest"

    },
    "TCPSocketHelper\0ResponseData\0\0"
    "MessageTypes\0ResponseInfoData\0"
    "TCPSocketIsConnected\0TCPSocketIsDisconnected\0"
    "TCPSocketUnstable\0ReturnBindingStatus\0"
    "status\0Register\0Binding\0PacketBinding\0"
    "from\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
      12,   14, // methods
       0,    0, // properties
       1,  102, // enums/sets
       0,    0, // constructors
       0,       // flags
       6,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    3,   74,    2, 0x06 /* Public */,
       4,    3,   81,    2, 0x06 /* Public */,
       5,    0,   88,    2, 0x06 /* Public */,
       6,    0,   89,    2, 0x06 /* Public */,
       7,    0,   90,    2, 0x06 /* Public */,
       8,    1,   91,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      10,    0,   94,    2, 0x0a /* Public */,
      11,    1,   95,    2, 0x0a /* Public */,
      14,    0,   98,    2, 0x08 /* Private */,
      15,    0,   99,    2, 0x08 /* Private */,
      16,    0,  100,    2, 0x08 /* Private */,
      17,    0,  101,    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,
    QMetaType::Void, QMetaType::Bool,    9,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 12,   13,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

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

 // enum data: key, value
      18, 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->ReturnBindingStatus((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 6: _t->Register(); break;
        case 7: _t->Binding((*reinterpret_cast< PacketBinding(*)>(_a[1]))); break;
        case 8: _t->onConnected(); break;
        case 9: _t->onReadyRead(); break;
        case 10: _t->onDisconnected(); break;
        case 11: _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;
            }
        }
        {
            using _t = void (TCPSocketHelper::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPSocketHelper::ReturnBindingStatus)) {
                *result = 5;
                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 < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 12;
    }
    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);
}

// SIGNAL 5
void TCPSocketHelper::ReturnBindingStatus(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
