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

#include "service/kstchat/KSTChat.h"
#include <QtGui/qtextcursor.h>
#include <QtNetwork/QSslError>
#include <QtCore/qmetatype.h>
#include <QtCore/QSet>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'KSTChat.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. 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_ZN17chatHighlightRuleE_t {};
} // unnamed namespace

template <> constexpr inline auto chatHighlightRule::qt_create_metaobjectdata<qt_meta_tag_ZN17chatHighlightRuleE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "chatHighlightRule"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<chatHighlightRule, qt_meta_tag_ZN17chatHighlightRuleE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject chatHighlightRule::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17chatHighlightRuleE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17chatHighlightRuleE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN17chatHighlightRuleE_t>.metaTypes,
    nullptr
} };

void chatHighlightRule::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<chatHighlightRule *>(_o);
    (void)_t;
    (void)_c;
    (void)_id;
    (void)_a;
}

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

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

int chatHighlightRule::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    return _id;
}
namespace {
struct qt_meta_tag_ZN22chatHighlightEvaluatorE_t {};
} // unnamed namespace

template <> constexpr inline auto chatHighlightEvaluator::qt_create_metaobjectdata<qt_meta_tag_ZN22chatHighlightEvaluatorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "chatHighlightEvaluator",
        "loadRules",
        "",
        "shouldHighlight",
        "KSTChatMsg",
        "msg",
        "QStringList&",
        "matchedRules"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'loadRules'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'shouldHighlight'
        QtMocHelpers::SlotData<bool(const KSTChatMsg &, QStringList &)>(3, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 4, 5 }, { 0x80000000 | 6, 7 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<chatHighlightEvaluator, qt_meta_tag_ZN22chatHighlightEvaluatorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject chatHighlightEvaluator::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN22chatHighlightEvaluatorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN22chatHighlightEvaluatorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN22chatHighlightEvaluatorE_t>.metaTypes,
    nullptr
} };

void chatHighlightEvaluator::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<chatHighlightEvaluator *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->loadRules(); break;
        case 1: { bool _r = _t->shouldHighlight((*reinterpret_cast<std::add_pointer_t<KSTChatMsg>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QStringList&>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< KSTChatMsg >(); break;
            }
            break;
        }
    }
}

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

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

int chatHighlightEvaluator::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 < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN7KSTChatE_t {};
} // unnamed namespace

template <> constexpr inline auto KSTChat::qt_create_metaobjectdata<qt_meta_tag_ZN7KSTChatE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KSTChat",
        "chatConnected",
        "",
        "chatDisconnected",
        "chatError",
        "chatMsg",
        "KSTChatMsg",
        "usersListUpdated",
        "connectChat",
        "disconnectChat",
        "sendMessage",
        "reloadStationProfile",
        "resetDupe",
        "recalculateDupe",
        "recalculateDxccStatus",
        "updateSpotsStatusWhenQSOAdded",
        "QSqlRecord",
        "record",
        "updateSpotsStatusWhenQSODeleted",
        "updateSpotsDxccStatusWhenQSODeleted",
        "QSet<uint>",
        "entities",
        "receiveData",
        "socketConnected",
        "socketError",
        "QAbstractSocket::SocketError",
        "socker_error"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'chatConnected'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'chatDisconnected'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'chatError'
        QtMocHelpers::SignalData<void(QString)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Signal 'chatMsg'
        QtMocHelpers::SignalData<void(KSTChatMsg)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 2 },
        }}),
        // Signal 'usersListUpdated'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'connectChat'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'disconnectChat'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sendMessage'
        QtMocHelpers::SlotData<void(const QString &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Slot 'reloadStationProfile'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'resetDupe'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'recalculateDupe'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'recalculateDxccStatus'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'updateSpotsStatusWhenQSOAdded'
        QtMocHelpers::SlotData<void(const QSqlRecord &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Slot 'updateSpotsStatusWhenQSODeleted'
        QtMocHelpers::SlotData<void(const QSqlRecord &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Slot 'updateSpotsDxccStatusWhenQSODeleted'
        QtMocHelpers::SlotData<void(const QSet<uint> &)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 20, 21 },
        }}),
        // Slot 'receiveData'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'socketConnected'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'socketError'
        QtMocHelpers::SlotData<void(QAbstractSocket::SocketError)>(24, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 25, 26 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KSTChat, qt_meta_tag_ZN7KSTChatE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KSTChat::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7KSTChatE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7KSTChatE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN7KSTChatE_t>.metaTypes,
    nullptr
} };

void KSTChat::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KSTChat *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->chatConnected(); break;
        case 1: _t->chatDisconnected(); break;
        case 2: _t->chatError((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->chatMsg((*reinterpret_cast<std::add_pointer_t<KSTChatMsg>>(_a[1]))); break;
        case 4: _t->usersListUpdated(); break;
        case 5: _t->connectChat(); break;
        case 6: _t->disconnectChat(); break;
        case 7: _t->sendMessage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 8: _t->reloadStationProfile(); break;
        case 9: _t->resetDupe(); break;
        case 10: _t->recalculateDupe(); break;
        case 11: _t->recalculateDxccStatus(); break;
        case 12: _t->updateSpotsStatusWhenQSOAdded((*reinterpret_cast<std::add_pointer_t<QSqlRecord>>(_a[1]))); break;
        case 13: _t->updateSpotsStatusWhenQSODeleted((*reinterpret_cast<std::add_pointer_t<QSqlRecord>>(_a[1]))); break;
        case 14: _t->updateSpotsDxccStatusWhenQSODeleted((*reinterpret_cast<std::add_pointer_t<QSet<uint>>>(_a[1]))); break;
        case 15: _t->receiveData(); break;
        case 16: _t->socketConnected(); break;
        case 17: _t->socketError((*reinterpret_cast<std::add_pointer_t<QAbstractSocket::SocketError>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< KSTChatMsg >(); break;
            }
            break;
        case 14:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QSet<uint> >(); break;
            }
            break;
        case 17:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QAbstractSocket::SocketError >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KSTChat::*)()>(_a, &KSTChat::chatConnected, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSTChat::*)()>(_a, &KSTChat::chatDisconnected, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSTChat::*)(QString )>(_a, &KSTChat::chatError, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSTChat::*)(KSTChatMsg )>(_a, &KSTChat::chatMsg, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSTChat::*)()>(_a, &KSTChat::usersListUpdated, 4))
            return;
    }
}

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

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

int KSTChat::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 < 18)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 18;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 18)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 18;
    }
    return _id;
}

// SIGNAL 0
void KSTChat::chatConnected()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void KSTChat::chatDisconnected()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void KSTChat::chatError(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void KSTChat::chatMsg(KSTChatMsg _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void KSTChat::usersListUpdated()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
