/****************************************************************************
** Meta object code from reading C++ file 'KSTChatWidget.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 "ui/KSTChatWidget.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 'KSTChatWidget.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_ZN13UserListModelE_t {};
} // unnamed namespace

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

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

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

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

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

int UserListModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractTableModel::qt_metacall(_c, _id, _a);
    return _id;
}
namespace {
struct qt_meta_tag_ZN13KSTChatWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto KSTChatWidget::qt_create_metaobjectdata<qt_meta_tag_ZN13KSTChatWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KSTChatWidget",
        "chatClosed",
        "",
        "chatUpdated",
        "QWidget*",
        "valuableMessageUpdated",
        "prepareQSOInfo",
        "userListUpdated",
        "beamingRequested",
        "addChatMessage",
        "KSTChatMsg",
        "sendMessage",
        "updateUserList",
        "setPrivateChatCallsign",
        "reloadStationProfile",
        "setBeamActionVisible",
        "resetDupe",
        "recalculateDupe",
        "recalculateDxccStatus",
        "updateSpotsStatusWhenQSOAdded",
        "QSqlRecord",
        "record",
        "updateSpotsStatusWhenQSODeleted",
        "updateSpotsDxccStatusWhenQSODeleted",
        "QSet<uint>",
        "entities",
        "showChatError",
        "closeChat",
        "displayedColumns",
        "userDoubleClicked",
        "QModelIndex",
        "messageDoubleClicked",
        "prefillQSOAction",
        "highlightPressed",
        "isHighlightCandidate",
        "KSTChatMsg&",
        "editHighlightRules",
        "resetPressed",
        "beamingRequest",
        "clearValuableMessages"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'chatClosed'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'chatUpdated'
        QtMocHelpers::SignalData<void(QWidget *)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 2 },
        }}),
        // Signal 'valuableMessageUpdated'
        QtMocHelpers::SignalData<void(QWidget *)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 2 },
        }}),
        // Signal 'prepareQSOInfo'
        QtMocHelpers::SignalData<void(QString, QString)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 }, { QMetaType::QString, 2 },
        }}),
        // Signal 'userListUpdated'
        QtMocHelpers::SignalData<void(QWidget *)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 2 },
        }}),
        // Signal 'beamingRequested'
        QtMocHelpers::SignalData<void(double)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 2 },
        }}),
        // Slot 'addChatMessage'
        QtMocHelpers::SlotData<void(KSTChatMsg)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 2 },
        }}),
        // Slot 'sendMessage'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'updateUserList'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setPrivateChatCallsign'
        QtMocHelpers::SlotData<void(QString)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Slot 'reloadStationProfile'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setBeamActionVisible'
        QtMocHelpers::SlotData<void(bool)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'resetDupe'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'recalculateDupe'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'recalculateDxccStatus'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'updateSpotsStatusWhenQSOAdded'
        QtMocHelpers::SlotData<void(const QSqlRecord &)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 20, 21 },
        }}),
        // Slot 'updateSpotsStatusWhenQSODeleted'
        QtMocHelpers::SlotData<void(const QSqlRecord &)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 20, 21 },
        }}),
        // Slot 'updateSpotsDxccStatusWhenQSODeleted'
        QtMocHelpers::SlotData<void(const QSet<uint> &)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 24, 25 },
        }}),
        // Slot 'showChatError'
        QtMocHelpers::SlotData<void(const QString &)>(26, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Slot 'closeChat'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'displayedColumns'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'userDoubleClicked'
        QtMocHelpers::SlotData<void(QModelIndex)>(29, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 30, 2 },
        }}),
        // Slot 'messageDoubleClicked'
        QtMocHelpers::SlotData<void(QModelIndex)>(31, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 30, 2 },
        }}),
        // Slot 'prefillQSOAction'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'highlightPressed'
        QtMocHelpers::SlotData<void()>(33, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'isHighlightCandidate'
        QtMocHelpers::SlotData<bool(KSTChatMsg &)>(34, 2, QMC::AccessPrivate, QMetaType::Bool, {{
            { 0x80000000 | 35, 2 },
        }}),
        // Slot 'editHighlightRules'
        QtMocHelpers::SlotData<void()>(36, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'resetPressed'
        QtMocHelpers::SlotData<void()>(37, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'beamingRequest'
        QtMocHelpers::SlotData<void()>(38, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'clearValuableMessages'
        QtMocHelpers::SlotData<void()>(39, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KSTChatWidget, qt_meta_tag_ZN13KSTChatWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KSTChatWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13KSTChatWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13KSTChatWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13KSTChatWidgetE_t>.metaTypes,
    nullptr
} };

void KSTChatWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KSTChatWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->chatClosed(); break;
        case 1: _t->chatUpdated((*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[1]))); break;
        case 2: _t->valuableMessageUpdated((*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[1]))); break;
        case 3: _t->prepareQSOInfo((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 4: _t->userListUpdated((*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[1]))); break;
        case 5: _t->beamingRequested((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 6: _t->addChatMessage((*reinterpret_cast<std::add_pointer_t<KSTChatMsg>>(_a[1]))); break;
        case 7: _t->sendMessage(); break;
        case 8: _t->updateUserList(); break;
        case 9: _t->setPrivateChatCallsign((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 10: _t->reloadStationProfile(); break;
        case 11: _t->setBeamActionVisible((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: _t->resetDupe(); break;
        case 13: _t->recalculateDupe(); break;
        case 14: _t->recalculateDxccStatus(); break;
        case 15: _t->updateSpotsStatusWhenQSOAdded((*reinterpret_cast<std::add_pointer_t<QSqlRecord>>(_a[1]))); break;
        case 16: _t->updateSpotsStatusWhenQSODeleted((*reinterpret_cast<std::add_pointer_t<QSqlRecord>>(_a[1]))); break;
        case 17: _t->updateSpotsDxccStatusWhenQSODeleted((*reinterpret_cast<std::add_pointer_t<QSet<uint>>>(_a[1]))); break;
        case 18: _t->showChatError((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 19: _t->closeChat(); break;
        case 20: _t->displayedColumns(); break;
        case 21: _t->userDoubleClicked((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 22: _t->messageDoubleClicked((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 23: _t->prefillQSOAction(); break;
        case 24: _t->highlightPressed(); break;
        case 25: { bool _r = _t->isHighlightCandidate((*reinterpret_cast<std::add_pointer_t<KSTChatMsg&>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 26: _t->editHighlightRules(); break;
        case 27: _t->resetPressed(); break;
        case 28: _t->beamingRequest(); break;
        case 29: _t->clearValuableMessages(); 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< QWidget* >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QWidget* >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QWidget* >(); break;
            }
            break;
        case 6:
            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 17:
            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;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KSTChatWidget::*)()>(_a, &KSTChatWidget::chatClosed, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSTChatWidget::*)(QWidget * )>(_a, &KSTChatWidget::chatUpdated, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSTChatWidget::*)(QWidget * )>(_a, &KSTChatWidget::valuableMessageUpdated, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSTChatWidget::*)(QString , QString )>(_a, &KSTChatWidget::prepareQSOInfo, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSTChatWidget::*)(QWidget * )>(_a, &KSTChatWidget::userListUpdated, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSTChatWidget::*)(double )>(_a, &KSTChatWidget::beamingRequested, 5))
            return;
    }
}

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

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

int KSTChatWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 30)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 30;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 30)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 30;
    }
    return _id;
}

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

// SIGNAL 1
void KSTChatWidget::chatUpdated(QWidget * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void KSTChatWidget::valuableMessageUpdated(QWidget * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void KSTChatWidget::prepareQSOInfo(QString _t1, QString _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}

// SIGNAL 4
void KSTChatWidget::userListUpdated(QWidget * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void KSTChatWidget::beamingRequested(double _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}
QT_WARNING_POP
