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

#include "../../../../../neochat-26.07.80/src/libneochat/pollblock.h"
#include <QtGui/qtextcursor.h>
#include <QtNetwork/QSslError>
#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 'pollblock.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.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_ZN6Blocks9PollBlockE_t {};
} // unnamed namespace

template <> constexpr inline auto Blocks::PollBlock::qt_create_metaobjectdata<qt_meta_tag_ZN6Blocks9PollBlockE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Blocks::PollBlock",
        "QML.Element",
        "auto",
        "QML.Creatable",
        "false",
        "QML.UncreatableReason",
        "",
        "questionChanged",
        "hasEndedChanged",
        "answersChanged",
        "totalCountChanged",
        "selectionsChanged",
        "sendPollAnswer",
        "eventId",
        "answerId",
        "endPoll",
        "kind",
        "PollKind::Kind",
        "question",
        "hasEnded",
        "answerModel",
        "PollAnswerModel*",
        "totalCount"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'questionChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hasEndedChanged'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'answersChanged'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'totalCountChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'selectionsChanged'
        QtMocHelpers::SignalData<void()>(11, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'sendPollAnswer'
        QtMocHelpers::MethodData<void(const QString &, const QString &)>(12, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 13 }, { QMetaType::QString, 14 },
        }}),
        // Method 'endPoll'
        QtMocHelpers::MethodData<void() const>(15, 6, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'kind'
        QtMocHelpers::PropertyData<PollKind::Kind>(16, 0x80000000 | 17, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'question'
        QtMocHelpers::PropertyData<QString>(18, QMetaType::QString, QMC::DefaultPropertyFlags, 0),
        // property 'hasEnded'
        QtMocHelpers::PropertyData<bool>(19, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'answerModel'
        QtMocHelpers::PropertyData<PollAnswerModel*>(20, 0x80000000 | 21, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'totalCount'
        QtMocHelpers::PropertyData<int>(22, QMetaType::Int, QMC::DefaultPropertyFlags, 3),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
            {    5,    6 },
    });
    return QtMocHelpers::metaObjectData<PollBlock, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT static const QMetaObject::SuperData qt_meta_extradata_ZN6Blocks9PollBlockE[] = {
    QMetaObject::SuperData::link<PollKind::staticMetaObject>(),
    nullptr
};

Q_CONSTINIT const QMetaObject Blocks::PollBlock::staticMetaObject = { {
    QMetaObject::SuperData::link<Block::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Blocks9PollBlockE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Blocks9PollBlockE_t>.data,
    qt_static_metacall,
    qt_meta_extradata_ZN6Blocks9PollBlockE,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6Blocks9PollBlockE_t>.metaTypes,
    nullptr
} };

void Blocks::PollBlock::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PollBlock *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->questionChanged(); break;
        case 1: _t->hasEndedChanged(); break;
        case 2: _t->answersChanged(); break;
        case 3: _t->totalCountChanged(); break;
        case 4: _t->selectionsChanged(); break;
        case 5: _t->sendPollAnswer((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 6: _t->endPoll(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PollBlock::*)()>(_a, &PollBlock::questionChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PollBlock::*)()>(_a, &PollBlock::hasEndedChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PollBlock::*)()>(_a, &PollBlock::answersChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (PollBlock::*)()>(_a, &PollBlock::totalCountChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (PollBlock::*)()>(_a, &PollBlock::selectionsChanged, 4))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 3:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< PollAnswerModel* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<PollKind::Kind*>(_v) = _t->kind(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->question(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->hasEnded(); break;
        case 3: *reinterpret_cast<PollAnswerModel**>(_v) = _t->answerModel(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->totalCount(); break;
        default: break;
        }
    }
}

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

void *Blocks::PollBlock::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Blocks9PollBlockE_t>.strings))
        return static_cast<void*>(this);
    return Block::qt_metacast(_clname);
}

int Blocks::PollBlock::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Block::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 7;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    return _id;
}

// SIGNAL 0
void Blocks::PollBlock::questionChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Blocks::PollBlock::hasEndedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Blocks::PollBlock::answersChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Blocks::PollBlock::totalCountChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void Blocks::PollBlock::selectionsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
