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

#include "../../../nheko/src/SingleImagePackModel.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


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

template <> constexpr inline auto SingleImagePackModel::qt_create_metaobjectdata<qt_meta_tag_ZN20SingleImagePackModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SingleImagePackModel",
        "QML.Element",
        "auto",
        "QML.Creatable",
        "false",
        "QML.UncreatableReason",
        "",
        "globallyEnabledChanged",
        "statekeyChanged",
        "attributionChanged",
        "packnameChanged",
        "avatarUrlChanged",
        "isEmotePackChanged",
        "isStickerPackChanged",
        "addImage",
        "std::string",
        "uri",
        "filename",
        "mtx::common::ImageInfo",
        "info",
        "avatarUploaded",
        "addImageCb",
        "save",
        "remove",
        "addStickers",
        "QList<QUrl>",
        "files",
        "index",
        "setAvatar",
        "QUrl",
        "file",
        "roomid",
        "fromSpace",
        "statekey",
        "attribution",
        "packname",
        "avatarUrl",
        "isStickerPack",
        "isEmotePack",
        "isGloballyEnabled",
        "canEdit",
        "Roles",
        "Url",
        "ShortCode",
        "Body",
        "IsEmote",
        "IsSticker"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'globallyEnabledChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'statekeyChanged'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'attributionChanged'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'packnameChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'avatarUrlChanged'
        QtMocHelpers::SignalData<void()>(11, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isEmotePackChanged'
        QtMocHelpers::SignalData<void()>(12, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isStickerPackChanged'
        QtMocHelpers::SignalData<void()>(13, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'addImage'
        QtMocHelpers::SignalData<void(std::string, std::string, mtx::common::ImageInfo)>(14, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 }, { 0x80000000 | 15, 17 }, { 0x80000000 | 18, 19 },
        }}),
        // Signal 'avatarUploaded'
        QtMocHelpers::SignalData<void(QString)>(20, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 16 },
        }}),
        // Slot 'addImageCb'
        QtMocHelpers::SlotData<void(std::string, std::string, mtx::common::ImageInfo)>(21, 6, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 15, 16 }, { 0x80000000 | 15, 17 }, { 0x80000000 | 18, 19 },
        }}),
        // Method 'save'
        QtMocHelpers::MethodData<void()>(22, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'remove'
        QtMocHelpers::MethodData<void()>(23, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'addStickers'
        QtMocHelpers::MethodData<void(QList<QUrl>)>(24, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 25, 26 },
        }}),
        // Method 'remove'
        QtMocHelpers::MethodData<void(int)>(23, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 27 },
        }}),
        // Method 'setAvatar'
        QtMocHelpers::MethodData<void(QUrl)>(28, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 29, 30 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'roomid'
        QtMocHelpers::PropertyData<QString>(31, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'fromSpace'
        QtMocHelpers::PropertyData<bool>(32, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'statekey'
        QtMocHelpers::PropertyData<QString>(33, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'attribution'
        QtMocHelpers::PropertyData<QString>(34, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'packname'
        QtMocHelpers::PropertyData<QString>(35, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'avatarUrl'
        QtMocHelpers::PropertyData<QString>(36, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'isStickerPack'
        QtMocHelpers::PropertyData<bool>(37, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
        // property 'isEmotePack'
        QtMocHelpers::PropertyData<bool>(38, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
        // property 'isGloballyEnabled'
        QtMocHelpers::PropertyData<bool>(39, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable, 0),
        // property 'canEdit'
        QtMocHelpers::PropertyData<bool>(40, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Roles'
        QtMocHelpers::EnumData<enum Roles>(41, 41, QMC::EnumFlags{}).add({
            {   42, Roles::Url },
            {   43, Roles::ShortCode },
            {   44, Roles::Body },
            {   45, Roles::IsEmote },
            {   46, Roles::IsSticker },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
            {    5,    6 },
    });
    return QtMocHelpers::metaObjectData<SingleImagePackModel, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject SingleImagePackModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20SingleImagePackModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20SingleImagePackModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN20SingleImagePackModelE_t>.metaTypes,
    nullptr
} };

void SingleImagePackModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SingleImagePackModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->globallyEnabledChanged(); break;
        case 1: _t->statekeyChanged(); break;
        case 2: _t->attributionChanged(); break;
        case 3: _t->packnameChanged(); break;
        case 4: _t->avatarUrlChanged(); break;
        case 5: _t->isEmotePackChanged(); break;
        case 6: _t->isStickerPackChanged(); break;
        case 7: _t->addImage((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<std::string>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<mtx::common::ImageInfo>>(_a[3]))); break;
        case 8: _t->avatarUploaded((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: _t->addImageCb((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<std::string>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<mtx::common::ImageInfo>>(_a[3]))); break;
        case 10: _t->save(); break;
        case 11: _t->remove(); break;
        case 12: _t->addStickers((*reinterpret_cast<std::add_pointer_t<QList<QUrl>>>(_a[1]))); break;
        case 13: _t->remove((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 14: _t->setAvatar((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SingleImagePackModel::*)()>(_a, &SingleImagePackModel::globallyEnabledChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SingleImagePackModel::*)()>(_a, &SingleImagePackModel::statekeyChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (SingleImagePackModel::*)()>(_a, &SingleImagePackModel::attributionChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (SingleImagePackModel::*)()>(_a, &SingleImagePackModel::packnameChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (SingleImagePackModel::*)()>(_a, &SingleImagePackModel::avatarUrlChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (SingleImagePackModel::*)()>(_a, &SingleImagePackModel::isEmotePackChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (SingleImagePackModel::*)()>(_a, &SingleImagePackModel::isStickerPackChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (SingleImagePackModel::*)(std::string , std::string , mtx::common::ImageInfo )>(_a, &SingleImagePackModel::addImage, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (SingleImagePackModel::*)(QString )>(_a, &SingleImagePackModel::avatarUploaded, 8))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->roomid(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->fromSpace(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->statekey(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->attribution(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->packname(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->avatarUrl(); break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->isStickerPack(); break;
        case 7: *reinterpret_cast<bool*>(_v) = _t->isEmotePack(); break;
        case 8: *reinterpret_cast<bool*>(_v) = _t->isGloballyEnabled(); break;
        case 9: *reinterpret_cast<bool*>(_v) = _t->canEdit(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 2: _t->setStatekey(*reinterpret_cast<QString*>(_v)); break;
        case 3: _t->setAttribution(*reinterpret_cast<QString*>(_v)); break;
        case 4: _t->setPackname(*reinterpret_cast<QString*>(_v)); break;
        case 5: _t->setAvatarUrl(*reinterpret_cast<QString*>(_v)); break;
        case 6: _t->setIsStickerPack(*reinterpret_cast<bool*>(_v)); break;
        case 7: _t->setIsEmotePack(*reinterpret_cast<bool*>(_v)); break;
        case 8: _t->setGloballyEnabled(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

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

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

// SIGNAL 2
void SingleImagePackModel::attributionChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void SingleImagePackModel::packnameChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void SingleImagePackModel::avatarUrlChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void SingleImagePackModel::isEmotePackChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void SingleImagePackModel::isStickerPackChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void SingleImagePackModel::addImage(std::string _t1, std::string _t2, mtx::common::ImageInfo _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1, _t2, _t3);
}

// SIGNAL 8
void SingleImagePackModel::avatarUploaded(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}
QT_WARNING_POP
