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

#include <memory>
#include "../../../ServerLMS/multithreadserver.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'multithreadserver.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.14.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_MultiThreadServer_t {
    QByteArrayData data[16];
    char stringdata0[208];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_MultiThreadServer_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_MultiThreadServer_t qt_meta_stringdata_MultiThreadServer = {
    {
QT_MOC_LITERAL(0, 0, 17), // "MultiThreadServer"
QT_MOC_LITERAL(1, 18, 13), // "sigInitClient"
QT_MOC_LITERAL(2, 32, 0), // ""
QT_MOC_LITERAL(3, 33, 10), // "descriptor"
QT_MOC_LITERAL(4, 44, 16), // "ServerLMSWidget*"
QT_MOC_LITERAL(5, 61, 12), // "serverWidget"
QT_MOC_LITERAL(6, 74, 17), // "UpdateController*"
QT_MOC_LITERAL(7, 92, 16), // "updateController"
QT_MOC_LITERAL(8, 109, 11), // "DataParser*"
QT_MOC_LITERAL(9, 121, 10), // "dataParser"
QT_MOC_LITERAL(10, 132, 7), // "Logger*"
QT_MOC_LITERAL(11, 140, 6), // "logger"
QT_MOC_LITERAL(12, 147, 18), // "signalStopSendFile"
QT_MOC_LITERAL(13, 166, 20), // "slotDisconnectClient"
QT_MOC_LITERAL(14, 187, 11), // "peerAddress"
QT_MOC_LITERAL(15, 199, 8) // "peerPort"

    },
    "MultiThreadServer\0sigInitClient\0\0"
    "descriptor\0ServerLMSWidget*\0serverWidget\0"
    "UpdateController*\0updateController\0"
    "DataParser*\0dataParser\0Logger*\0logger\0"
    "signalStopSendFile\0slotDisconnectClient\0"
    "peerAddress\0peerPort"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_MultiThreadServer[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    5,   29,    2, 0x06 /* Public */,
      12,    0,   40,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      13,    2,   41,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int, 0x80000000 | 4, 0x80000000 | 6, 0x80000000 | 8, 0x80000000 | 10,    3,    5,    7,    9,   11,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::QString,   14,   15,

       0        // eod
};

void MultiThreadServer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<MultiThreadServer *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->sigInitClient((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< ServerLMSWidget*(*)>(_a[2])),(*reinterpret_cast< UpdateController*(*)>(_a[3])),(*reinterpret_cast< DataParser*(*)>(_a[4])),(*reinterpret_cast< Logger*(*)>(_a[5]))); break;
        case 1: _t->signalStopSendFile(); break;
        case 2: _t->slotDisconnectClient((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 3:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< DataParser* >(); break;
            case 4:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Logger* >(); break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< ServerLMSWidget* >(); break;
            case 2:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< UpdateController* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (MultiThreadServer::*)(int , ServerLMSWidget * , UpdateController * , DataParser * , Logger * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MultiThreadServer::sigInitClient)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (MultiThreadServer::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MultiThreadServer::signalStopSendFile)) {
                *result = 1;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject MultiThreadServer::staticMetaObject = { {
    QMetaObject::SuperData::link<QTcpServer::staticMetaObject>(),
    qt_meta_stringdata_MultiThreadServer.data,
    qt_meta_data_MultiThreadServer,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int MultiThreadServer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QTcpServer::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    return _id;
}

// SIGNAL 0
void MultiThreadServer::sigInitClient(int _t1, ServerLMSWidget * _t2, UpdateController * _t3, DataParser * _t4, Logger * _t5)
{
    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))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t4))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t5))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void MultiThreadServer::signalStopSendFile()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
