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

#include "../../../jami-client-qt/src/core/api/messagelistmodel.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 'messagelistmodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.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_ZN3lrc3api16MessageListModelE_t {};
} // unnamed namespace

template <> constexpr inline auto lrc::api::MessageListModel::qt_create_metaobjectdata<qt_meta_tag_ZN3lrc3api16MessageListModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "lrc::api::MessageListModel",
        "data",
        "QVariant",
        "",
        "id",
        "role"
    };

    QtMocHelpers::UintData qt_methods {
        // Method 'data'
        QtMocHelpers::MethodData<QVariant(const QString &, int) const>(1, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { QMetaType::QString, 4 }, { QMetaType::Int, 5 },
        }}),
        // Method 'data'
        QtMocHelpers::MethodData<QVariant(const QString &) const>(1, 3, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 2, {{
            { QMetaType::QString, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<MessageListModel, qt_meta_tag_ZN3lrc3api16MessageListModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject lrc::api::MessageListModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lrc3api16MessageListModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lrc3api16MessageListModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3lrc3api16MessageListModelE_t>.metaTypes,
    nullptr
} };

void lrc::api::MessageListModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MessageListModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { QVariant _r = _t->data((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        case 1: { QVariant _r = _t->data((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

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

int lrc::api::MessageListModel::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 < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 2;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN3lrc3api11MessageListE_t {};
} // unnamed namespace

template <> constexpr inline auto lrc::api::MessageList::qt_create_metaobjectdata<qt_meta_tag_ZN3lrc3api11MessageListE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "lrc::api::MessageList",
        "Role",
        "DummyRole",
        "Id",
        "Author",
        "Body",
        "ParentId",
        "Timestamp",
        "Duration",
        "Type",
        "Status",
        "TransferStatus",
        "IsRead",
        "ContactAction",
        "ActionUri",
        "ConfId",
        "DeviceId",
        "LinkPreviewInfo",
        "ParsedBody",
        "PreviousBodies",
        "Reactions",
        "ReplyTo",
        "ReplyToBody",
        "ReplyToAuthor",
        "TotalSize",
        "TransferName",
        "TID",
        "DocumentId",
        "FileExtension",
        "Readers",
        "IsEmojiOnly",
        "IsLastSent",
        "Index",
        "OriginalBody",
        "ParsedOriginalBody",
        "FilterType",
        "FilterStatus"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Role'
        QtMocHelpers::EnumData<Role>(1, 1, QMC::EnumFlags{}).add({
            {    2, Role::DummyRole },
            {    3, Role::Id },
            {    4, Role::Author },
            {    5, Role::Body },
            {    6, Role::ParentId },
            {    7, Role::Timestamp },
            {    8, Role::Duration },
            {    9, Role::Type },
            {   10, Role::Status },
            {   11, Role::TransferStatus },
            {   12, Role::IsRead },
            {   13, Role::ContactAction },
            {   14, Role::ActionUri },
            {   15, Role::ConfId },
            {   16, Role::DeviceId },
            {   17, Role::LinkPreviewInfo },
            {   18, Role::ParsedBody },
            {   19, Role::PreviousBodies },
            {   20, Role::Reactions },
            {   21, Role::ReplyTo },
            {   22, Role::ReplyToBody },
            {   23, Role::ReplyToAuthor },
            {   24, Role::TotalSize },
            {   25, Role::TransferName },
            {   26, Role::TID },
            {   27, Role::DocumentId },
            {   28, Role::FileExtension },
            {   29, Role::Readers },
            {   30, Role::IsEmojiOnly },
            {   31, Role::IsLastSent },
            {   32, Role::Index },
            {   33, Role::OriginalBody },
            {   34, Role::ParsedOriginalBody },
            {   35, Role::FilterType },
            {   36, Role::FilterStatus },
        }),
    };
    return QtMocHelpers::metaObjectData<void, qt_meta_tag_ZN3lrc3api11MessageListE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}

static constexpr auto qt_staticMetaObjectContent_ZN3lrc3api11MessageListE =
    lrc::api::MessageList::qt_create_metaobjectdata<qt_meta_tag_ZN3lrc3api11MessageListE_t>();
static constexpr auto qt_staticMetaObjectStaticContent_ZN3lrc3api11MessageListE =
    qt_staticMetaObjectContent_ZN3lrc3api11MessageListE.staticData;
static constexpr auto qt_staticMetaObjectRelocatingContent_ZN3lrc3api11MessageListE =
    qt_staticMetaObjectContent_ZN3lrc3api11MessageListE.relocatingData;

Q_CONSTINIT const QMetaObject lrc::api::MessageList::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent_ZN3lrc3api11MessageListE.stringdata,
    qt_staticMetaObjectStaticContent_ZN3lrc3api11MessageListE.data,
    nullptr,
    nullptr,
    qt_staticMetaObjectRelocatingContent_ZN3lrc3api11MessageListE.metaTypes,
    nullptr
} };

QT_WARNING_POP
