/****************************************************************************
** Meta object code from reading C++ file 'preferenceitemlistmodel.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/app/preferenceitemlistmodel.h"
#include <QtNetwork/QSslError>
#include <QtGui/qtextcursor.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 'preferenceitemlistmodel.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_ZN23PreferenceItemListModelE_t {};
} // unnamed namespace

template <> constexpr inline auto PreferenceItemListModel::qt_create_metaobjectdata<qt_meta_tag_ZN23PreferenceItemListModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PreferenceItemListModel",
        "categoryChanged",
        "",
        "mediaHandlerNameChanged",
        "accountIdChanged",
        "pluginIdChanged",
        "reset",
        "pluginId",
        "category",
        "mediaHandlerName",
        "accountId",
        "Role",
        "PreferenceKey",
        "PreferenceName",
        "PreferenceSummary",
        "PreferenceType",
        "PluginId",
        "PreferenceCurrentValue",
        "CurrentPath",
        "FileFilters",
        "IsImage",
        "Enabled",
        "Type",
        "LIST",
        "PATH",
        "EDITTEXT",
        "SWITCH",
        "DEFAULT"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'categoryChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'mediaHandlerNameChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'accountIdChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'pluginIdChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'reset'
        QtMocHelpers::MethodData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'pluginId'
        QtMocHelpers::PropertyData<QString>(7, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'category'
        QtMocHelpers::PropertyData<QString>(8, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable, 0),
        // property 'mediaHandlerName'
        QtMocHelpers::PropertyData<QString>(9, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable, 1),
        // property 'accountId'
        QtMocHelpers::PropertyData<QString>(10, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable, 2),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Role'
        QtMocHelpers::EnumData<enum Role>(11, 11, QMC::EnumFlags{}).add({
            {   12, Role::PreferenceKey },
            {   13, Role::PreferenceName },
            {   14, Role::PreferenceSummary },
            {   15, Role::PreferenceType },
            {   16, Role::PluginId },
            {   17, Role::PreferenceCurrentValue },
            {   18, Role::CurrentPath },
            {   19, Role::FileFilters },
            {   20, Role::IsImage },
            {   21, Role::Enabled },
        }),
        // enum 'Type'
        QtMocHelpers::EnumData<Type>(22, 22, QMC::EnumFlags{}).add({
            {   23, Type::LIST },
            {   24, Type::PATH },
            {   25, Type::EDITTEXT },
            {   26, Type::SWITCH },
            {   27, Type::DEFAULT },
        }),
    };
    return QtMocHelpers::metaObjectData<PreferenceItemListModel, qt_meta_tag_ZN23PreferenceItemListModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PreferenceItemListModel::staticMetaObject = { {
    QMetaObject::SuperData::link<AbstractListModelBase::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN23PreferenceItemListModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN23PreferenceItemListModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN23PreferenceItemListModelE_t>.metaTypes,
    nullptr
} };

void PreferenceItemListModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PreferenceItemListModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->categoryChanged(); break;
        case 1: _t->mediaHandlerNameChanged(); break;
        case 2: _t->accountIdChanged(); break;
        case 3: _t->pluginIdChanged(); break;
        case 4: _t->reset(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PreferenceItemListModel::*)()>(_a, &PreferenceItemListModel::categoryChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreferenceItemListModel::*)()>(_a, &PreferenceItemListModel::mediaHandlerNameChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreferenceItemListModel::*)()>(_a, &PreferenceItemListModel::accountIdChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreferenceItemListModel::*)()>(_a, &PreferenceItemListModel::pluginIdChanged, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->pluginId(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->category_; break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->mediaHandlerName_; break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->accountId_; break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setPluginId(*reinterpret_cast<QString*>(_v)); break;
        case 1:
            if (QtMocHelpers::setProperty(_t->category_, *reinterpret_cast<QString*>(_v)))
                Q_EMIT _t->categoryChanged();
            break;
        case 2:
            if (QtMocHelpers::setProperty(_t->mediaHandlerName_, *reinterpret_cast<QString*>(_v)))
                Q_EMIT _t->mediaHandlerNameChanged();
            break;
        case 3:
            if (QtMocHelpers::setProperty(_t->accountId_, *reinterpret_cast<QString*>(_v)))
                Q_EMIT _t->accountIdChanged();
            break;
        default: break;
        }
    }
}

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

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

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

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

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

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

// SIGNAL 3
void PreferenceItemListModel::pluginIdChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
