/****************************************************************************
** Meta object code from reading C++ file 'cache_adaptor.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 "../../cache_adaptor.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 'cache_adaptor.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_ZN12QtGuiPrivate12CacheAdaptorE_t {};
} // unnamed namespace

template <> constexpr inline auto QtGuiPrivate::CacheAdaptor::qt_create_metaobjectdata<qt_meta_tag_ZN12QtGuiPrivate12CacheAdaptorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QtGuiPrivate::CacheAdaptor",
        "D-Bus Interface",
        "org.a11y.atspi.Cache",
        "D-Bus Introspection",
        "  <interface name=\"org.a11y.atspi.Cache\">\n    <method name=\"Ge"
        "tItems\">\n      <arg direction=\"out\" type=\"a((so)(so)a(so)assu"
        "sau)\" name=\"nodes\"/>\n      <annotation value=\"QSpiAccessibleC"
        "acheArray\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n    <"
        "/method>\n    <signal name=\"AddAccessible\">\n      <arg type=\"("
        "(so)(so)a(so)assusau)\" name=\"nodeAdded\"/>\n      <annotation va"
        "lue=\"QSpiAccessibleCacheItem\" name=\"org.qtproject.QtDBus.QtType"
        "Name.Out0\"/>\n    </signal>\n    <signal name=\"RemoveAccessible\""
        ">\n      <arg type=\"(so)\" name=\"nodeRemoved\"/>\n      <annotat"
        "ion value=\"QSpiObjectReference\" name=\"org.qtproject.QtDBus.QtTy"
        "peName.Out0\"/>\n    </signal>\n  </interface>\n",
        "AddAccessible",
        "",
        "QSpiAccessibleCacheItem",
        "nodeAdded",
        "RemoveAccessible",
        "QSpiObjectReference",
        "nodeRemoved",
        "GetItems",
        "QSpiAccessibleCacheArray"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'AddAccessible'
        QtMocHelpers::SignalData<void(const QSpiAccessibleCacheItem &)>(5, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Signal 'RemoveAccessible'
        QtMocHelpers::SignalData<void(const QSpiObjectReference &)>(9, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'GetItems'
        QtMocHelpers::SlotData<QSpiAccessibleCacheArray()>(12, 6, QMC::AccessPublic, 0x80000000 | 13),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<CacheAdaptor, qt_meta_tag_ZN12QtGuiPrivate12CacheAdaptorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject QtGuiPrivate::CacheAdaptor::staticMetaObject = { {
    QMetaObject::SuperData::link<QDBusAbstractAdaptor::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12QtGuiPrivate12CacheAdaptorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12QtGuiPrivate12CacheAdaptorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12QtGuiPrivate12CacheAdaptorE_t>.metaTypes,
    nullptr
} };

void QtGuiPrivate::CacheAdaptor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CacheAdaptor *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->AddAccessible((*reinterpret_cast<std::add_pointer_t<QSpiAccessibleCacheItem>>(_a[1]))); break;
        case 1: _t->RemoveAccessible((*reinterpret_cast<std::add_pointer_t<QSpiObjectReference>>(_a[1]))); break;
        case 2: { QSpiAccessibleCacheArray _r = _t->GetItems();
            if (_a[0]) *reinterpret_cast<QSpiAccessibleCacheArray*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QSpiAccessibleCacheItem >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QSpiObjectReference >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (CacheAdaptor::*)(const QSpiAccessibleCacheItem & )>(_a, &CacheAdaptor::AddAccessible, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (CacheAdaptor::*)(const QSpiObjectReference & )>(_a, &CacheAdaptor::RemoveAccessible, 1))
            return;
    }
}

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

void *QtGuiPrivate::CacheAdaptor::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12QtGuiPrivate12CacheAdaptorE_t>.strings))
        return static_cast<void*>(this);
    return QDBusAbstractAdaptor::qt_metacast(_clname);
}

int QtGuiPrivate::CacheAdaptor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QDBusAbstractAdaptor::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    return _id;
}

// SIGNAL 0
void QtGuiPrivate::CacheAdaptor::AddAccessible(const QSpiAccessibleCacheItem & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void QtGuiPrivate::CacheAdaptor::RemoveAccessible(const QSpiObjectReference & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
QT_WARNING_POP
