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

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

template <> constexpr inline auto lrc::api::ContactModel::qt_create_metaobjectdata<qt_meta_tag_ZN3lrc3api12ContactModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "lrc::api::ContactModel",
        "contactUpdated",
        "",
        "uri",
        "contactAdded",
        "contactUri",
        "pendingContactAccepted",
        "contactRemoved",
        "newCall",
        "from",
        "callId",
        "isOutgoing",
        "toUri",
        "newAccountMessage",
        "accountId",
        "msgId",
        "MapStringString",
        "payloads",
        "newAccountTransfer",
        "fileId",
        "datatransfer::Info",
        "info",
        "bannedStatusChanged",
        "banned",
        "profileUpdated"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'contactUpdated'
        QtMocHelpers::SignalData<void(const QString &) const>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'contactAdded'
        QtMocHelpers::SignalData<void(const QString &) const>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
        // Signal 'pendingContactAccepted'
        QtMocHelpers::SignalData<void(const QString &) const>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
        // Signal 'contactRemoved'
        QtMocHelpers::SignalData<void(const QString &) const>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
        // Signal 'newCall'
        QtMocHelpers::SignalData<void(const QString &, const QString &, bool, const QString &) const>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 }, { QMetaType::QString, 10 }, { QMetaType::Bool, 11 }, { QMetaType::QString, 12 },
        }}),
        // Signal 'newAccountMessage'
        QtMocHelpers::SignalData<void(const QString &, const QString &, const QString &, const MapStringString &) const>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 14 }, { QMetaType::QString, 9 }, { QMetaType::QString, 15 }, { 0x80000000 | 16, 17 },
        }}),
        // Signal 'newAccountTransfer'
        QtMocHelpers::SignalData<void(const QString &, datatransfer::Info) const>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 19 }, { 0x80000000 | 20, 21 },
        }}),
        // Signal 'bannedStatusChanged'
        QtMocHelpers::SignalData<void(const QString &, bool) const>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 }, { QMetaType::Bool, 23 },
        }}),
        // Signal 'profileUpdated'
        QtMocHelpers::SignalData<void(const QString &) const>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ContactModel, qt_meta_tag_ZN3lrc3api12ContactModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject lrc::api::ContactModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lrc3api12ContactModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lrc3api12ContactModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3lrc3api12ContactModelE_t>.metaTypes,
    nullptr
} };

void lrc::api::ContactModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ContactModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->contactUpdated((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->contactAdded((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->pendingContactAccepted((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->contactRemoved((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->newCall((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4]))); break;
        case 5: _t->newAccountMessage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<MapStringString>>(_a[4]))); break;
        case 6: _t->newAccountTransfer((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<datatransfer::Info>>(_a[2]))); break;
        case 7: _t->bannedStatusChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 8: _t->profileUpdated((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ContactModel::*)(const QString & ) const>(_a, &ContactModel::contactUpdated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContactModel::*)(const QString & ) const>(_a, &ContactModel::contactAdded, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContactModel::*)(const QString & ) const>(_a, &ContactModel::pendingContactAccepted, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContactModel::*)(const QString & ) const>(_a, &ContactModel::contactRemoved, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContactModel::*)(const QString & , const QString & , bool , const QString & ) const>(_a, &ContactModel::newCall, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContactModel::*)(const QString & , const QString & , const QString & , const MapStringString & ) const>(_a, &ContactModel::newAccountMessage, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContactModel::*)(const QString & , datatransfer::Info ) const>(_a, &ContactModel::newAccountTransfer, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContactModel::*)(const QString & , bool ) const>(_a, &ContactModel::bannedStatusChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContactModel::*)(const QString & ) const>(_a, &ContactModel::profileUpdated, 8))
            return;
    }
}

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

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

int lrc::api::ContactModel::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 < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 9;
    }
    return _id;
}

// SIGNAL 0
void lrc::api::ContactModel::contactUpdated(const QString & _t1)const
{
    QMetaObject::activate<void>(const_cast< lrc::api::ContactModel *>(this), &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void lrc::api::ContactModel::contactAdded(const QString & _t1)const
{
    QMetaObject::activate<void>(const_cast< lrc::api::ContactModel *>(this), &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void lrc::api::ContactModel::pendingContactAccepted(const QString & _t1)const
{
    QMetaObject::activate<void>(const_cast< lrc::api::ContactModel *>(this), &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void lrc::api::ContactModel::contactRemoved(const QString & _t1)const
{
    QMetaObject::activate<void>(const_cast< lrc::api::ContactModel *>(this), &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void lrc::api::ContactModel::newCall(const QString & _t1, const QString & _t2, bool _t3, const QString & _t4)const
{
    QMetaObject::activate<void>(const_cast< lrc::api::ContactModel *>(this), &staticMetaObject, 4, nullptr, _t1, _t2, _t3, _t4);
}

// SIGNAL 5
void lrc::api::ContactModel::newAccountMessage(const QString & _t1, const QString & _t2, const QString & _t3, const MapStringString & _t4)const
{
    QMetaObject::activate<void>(const_cast< lrc::api::ContactModel *>(this), &staticMetaObject, 5, nullptr, _t1, _t2, _t3, _t4);
}

// SIGNAL 6
void lrc::api::ContactModel::newAccountTransfer(const QString & _t1, datatransfer::Info _t2)const
{
    QMetaObject::activate<void>(const_cast< lrc::api::ContactModel *>(this), &staticMetaObject, 6, nullptr, _t1, _t2);
}

// SIGNAL 7
void lrc::api::ContactModel::bannedStatusChanged(const QString & _t1, bool _t2)const
{
    QMetaObject::activate<void>(const_cast< lrc::api::ContactModel *>(this), &staticMetaObject, 7, nullptr, _t1, _t2);
}

// SIGNAL 8
void lrc::api::ContactModel::profileUpdated(const QString & _t1)const
{
    QMetaObject::activate<void>(const_cast< lrc::api::ContactModel *>(this), &staticMetaObject, 8, nullptr, _t1);
}
QT_WARNING_POP
