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

#include "../../../../../libkdegames-26.04.2/src/private/kgame/kmessageserver.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kmessageserver.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN14KMessageServerE_t {};
} // unnamed namespace

template <> constexpr inline auto KMessageServer::qt_create_metaobjectdata<qt_meta_tag_ZN14KMessageServerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KMessageServer",
        "clientConnected",
        "",
        "KMessageIO*",
        "client",
        "connectionLost",
        "messageReceived",
        "data",
        "clientID",
        "bool&",
        "unknown",
        "addClient",
        "removeClient",
        "io",
        "broken",
        "deleteClients",
        "removeBrokenClient",
        "getReceivedMessage",
        "msg",
        "processOneMessage"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'clientConnected'
        QtMocHelpers::SignalData<void(KMessageIO *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'connectionLost'
        QtMocHelpers::SignalData<void(KMessageIO *)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'messageReceived'
        QtMocHelpers::SignalData<void(const QByteArray &, quint32, bool &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 7 }, { QMetaType::UInt, 8 }, { 0x80000000 | 9, 10 },
        }}),
        // Slot 'addClient'
        QtMocHelpers::SlotData<void(KMessageIO *)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Slot 'removeClient'
        QtMocHelpers::SlotData<void(KMessageIO *, bool)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 13 }, { QMetaType::Bool, 14 },
        }}),
        // Slot 'deleteClients'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'removeBrokenClient'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'getReceivedMessage'
        QtMocHelpers::SlotData<void(const QByteArray &)>(17, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::QByteArray, 18 },
        }}),
        // Slot 'processOneMessage'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KMessageServer, qt_meta_tag_ZN14KMessageServerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KMessageServer::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14KMessageServerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14KMessageServerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14KMessageServerE_t>.metaTypes,
    nullptr
} };

void KMessageServer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KMessageServer *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->clientConnected((*reinterpret_cast<std::add_pointer_t<KMessageIO*>>(_a[1]))); break;
        case 1: _t->connectionLost((*reinterpret_cast<std::add_pointer_t<KMessageIO*>>(_a[1]))); break;
        case 2: _t->messageReceived((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool&>>(_a[3]))); break;
        case 3: _t->addClient((*reinterpret_cast<std::add_pointer_t<KMessageIO*>>(_a[1]))); break;
        case 4: _t->removeClient((*reinterpret_cast<std::add_pointer_t<KMessageIO*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 5: _t->deleteClients(); break;
        case 6: _t->removeBrokenClient(); break;
        case 7: _t->getReceivedMessage((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 8: _t->processOneMessage(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KMessageServer::*)(KMessageIO * )>(_a, &KMessageServer::clientConnected, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KMessageServer::*)(KMessageIO * )>(_a, &KMessageServer::connectionLost, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KMessageServer::*)(const QByteArray & , quint32 , bool & )>(_a, &KMessageServer::messageReceived, 2))
            return;
    }
}

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

void *KMessageServer::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14KMessageServerE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

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

// SIGNAL 0
void KMessageServer::clientConnected(KMessageIO * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void KMessageServer::connectionLost(KMessageIO * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void KMessageServer::messageReceived(const QByteArray & _t1, quint32 _t2, bool & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2, _t3);
}
QT_WARNING_POP
