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

#include "../../../../kdnssd-6.26.0/src/avahi_serviceresolver_interface.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'avahi_serviceresolver_interface.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.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_ZN43OrgFreedesktopAvahiServiceResolverInterfaceE_t {};
} // unnamed namespace

template <> constexpr inline auto OrgFreedesktopAvahiServiceResolverInterface::qt_create_metaobjectdata<qt_meta_tag_ZN43OrgFreedesktopAvahiServiceResolverInterfaceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "OrgFreedesktopAvahiServiceResolverInterface",
        "Failure",
        "",
        "error",
        "Found",
        "interface",
        "protocol",
        "name",
        "type",
        "domain",
        "host",
        "aprotocol",
        "address",
        "port",
        "QList<QByteArray>",
        "txt",
        "flags",
        "Free",
        "QDBusReply<void>"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'Failure'
        QtMocHelpers::SignalData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'Found'
        QtMocHelpers::SignalData<void(int, int, const QString &, const QString &, const QString &, const QString &, int, const QString &, ushort, const QList<QByteArray> &, uint)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 5 }, { QMetaType::Int, 6 }, { QMetaType::QString, 7 }, { QMetaType::QString, 8 },
            { QMetaType::QString, 9 }, { QMetaType::QString, 10 }, { QMetaType::Int, 11 }, { QMetaType::QString, 12 },
            { QMetaType::UShort, 13 }, { 0x80000000 | 14, 15 }, { QMetaType::UInt, 16 },
        }}),
        // Slot 'Free'
        QtMocHelpers::SlotData<QDBusReply<void>()>(17, 2, QMC::AccessPublic, 0x80000000 | 18),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<OrgFreedesktopAvahiServiceResolverInterface, qt_meta_tag_ZN43OrgFreedesktopAvahiServiceResolverInterfaceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject OrgFreedesktopAvahiServiceResolverInterface::staticMetaObject = { {
    QMetaObject::SuperData::link<QDBusAbstractInterface::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN43OrgFreedesktopAvahiServiceResolverInterfaceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN43OrgFreedesktopAvahiServiceResolverInterfaceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN43OrgFreedesktopAvahiServiceResolverInterfaceE_t>.metaTypes,
    nullptr
} };

void OrgFreedesktopAvahiServiceResolverInterface::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<OrgFreedesktopAvahiServiceResolverInterface *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->Failure((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->Found((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[5])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[6])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[7])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[8])),(*reinterpret_cast<std::add_pointer_t<ushort>>(_a[9])),(*reinterpret_cast<std::add_pointer_t<QList<QByteArray>>>(_a[10])),(*reinterpret_cast<std::add_pointer_t<uint>>(_a[11]))); break;
        case 2: { QDBusReply<void> _r = _t->Free();
            if (_a[0]) *reinterpret_cast<QDBusReply<void>*>(_a[0]) = std::move(_r); }  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 9:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<QByteArray> >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (OrgFreedesktopAvahiServiceResolverInterface::*)(const QString & )>(_a, &OrgFreedesktopAvahiServiceResolverInterface::Failure, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (OrgFreedesktopAvahiServiceResolverInterface::*)(int , int , const QString & , const QString & , const QString & , const QString & , int , const QString & , ushort , const QList<QByteArray> & , uint )>(_a, &OrgFreedesktopAvahiServiceResolverInterface::Found, 1))
            return;
    }
}

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

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

int OrgFreedesktopAvahiServiceResolverInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QDBusAbstractInterface::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 OrgFreedesktopAvahiServiceResolverInterface::Failure(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void OrgFreedesktopAvahiServiceResolverInterface::Found(int _t1, int _t2, const QString & _t3, const QString & _t4, const QString & _t5, const QString & _t6, int _t7, const QString & _t8, ushort _t9, const QList<QByteArray> & _t10, uint _t11)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2, _t3, _t4, _t5, _t6, _t7, _t8, _t9, _t10, _t11);
}
QT_WARNING_POP
