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

#include "../../../../../qtbase/src/gui/platform/unix/qdbuslistener_p.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 'qdbuslistener_p.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.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_ZN13QDBusListenerE_t {};
} // unnamed namespace

template <> constexpr inline auto QDBusListener::qt_create_metaobjectdata<qt_meta_tag_ZN13QDBusListenerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QDBusListener",
        "settingChanged",
        "",
        "QDBusListener::Provider",
        "provider",
        "QDBusListener::Setting",
        "setting",
        "QVariant",
        "value",
        "onSettingChanged",
        "location",
        "key",
        "QDBusVariant",
        "Provider",
        "Kde",
        "Gtk",
        "Gnome",
        "Setting",
        "Theme",
        "ApplicationStyle",
        "ColorScheme",
        "Contrast"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'settingChanged'
        QtMocHelpers::SignalData<void(QDBusListener::Provider, QDBusListener::Setting, const QVariant &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 5, 6 }, { 0x80000000 | 7, 8 },
        }}),
        // Slot 'onSettingChanged'
        QtMocHelpers::SlotData<void(const QString &, const QString &, const QDBusVariant &)>(9, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 10 }, { QMetaType::QString, 11 }, { 0x80000000 | 12, 8 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Provider'
        QtMocHelpers::EnumData<enum Provider>(13, 13, QMC::EnumIsScoped).add({
            {   14, Provider::Kde },
            {   15, Provider::Gtk },
            {   16, Provider::Gnome },
        }),
        // enum 'Setting'
        QtMocHelpers::EnumData<enum Setting>(17, 17, QMC::EnumIsScoped).add({
            {   18, Setting::Theme },
            {   19, Setting::ApplicationStyle },
            {   20, Setting::ColorScheme },
            {   21, Setting::Contrast },
        }),
    };
    return QtMocHelpers::metaObjectData<QDBusListener, qt_meta_tag_ZN13QDBusListenerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QDBusListener::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13QDBusListenerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13QDBusListenerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13QDBusListenerE_t>.metaTypes,
    nullptr
} };

void QDBusListener::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QDBusListener *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->settingChanged((*reinterpret_cast<std::add_pointer_t<QDBusListener::Provider>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QDBusListener::Setting>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[3]))); break;
        case 1: _t->onSettingChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QDBusVariant>>(_a[3]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 2:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QDBusVariant >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QDBusListener::*)(QDBusListener::Provider , QDBusListener::Setting , const QVariant & )>(_a, &QDBusListener::settingChanged, 0))
            return;
    }
}

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

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

int QDBusListener::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 < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    return _id;
}

// SIGNAL 0
void QDBusListener::settingChanged(QDBusListener::Provider _t1, QDBusListener::Setting _t2, const QVariant & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2, _t3);
}
QT_WARNING_POP
