/****************************************************************************
** Meta object code from reading C++ file 'polkitqt1-authority.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 "../../../../polkit-qt-1-0.201.1/core/polkitqt1-authority.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 'polkitqt1-authority.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_ZN9PolkitQt19AuthorityE_t {};
} // unnamed namespace

template <> constexpr inline auto PolkitQt1::Authority::qt_create_metaobjectdata<qt_meta_tag_ZN9PolkitQt19AuthorityE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PolkitQt1::Authority",
        "configChanged",
        "",
        "consoleKitDBChanged",
        "checkAuthorizationFinished",
        "PolkitQt1::Authority::Result",
        "enumerateActionsFinished",
        "PolkitQt1::ActionDescription::List",
        "registerAuthenticationAgentFinished",
        "unregisterAuthenticationAgentFinished",
        "authenticationAgentResponseFinished",
        "enumerateTemporaryAuthorizationsFinished",
        "PolkitQt1::TemporaryAuthorization::List",
        "revokeTemporaryAuthorizationsFinished",
        "revokeTemporaryAuthorizationFinished",
        "dbusFilter",
        "QDBusMessage",
        "message",
        "Result",
        "Unknown",
        "Yes",
        "No",
        "Challenge",
        "ErrorCode",
        "E_None",
        "E_GetAuthority",
        "E_CheckFailed",
        "E_WrongSubject",
        "E_UnknownResult",
        "E_EnumFailed",
        "E_RegisterFailed",
        "E_UnregisterFailed",
        "E_CookieOrIdentityEmpty",
        "E_AgentResponseFailed",
        "E_RevokeFailed"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'configChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'consoleKitDBChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'checkAuthorizationFinished'
        QtMocHelpers::SignalData<void(PolkitQt1::Authority::Result)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 2 },
        }}),
        // Signal 'enumerateActionsFinished'
        QtMocHelpers::SignalData<void(PolkitQt1::ActionDescription::List)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 2 },
        }}),
        // Signal 'registerAuthenticationAgentFinished'
        QtMocHelpers::SignalData<void(bool)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Signal 'unregisterAuthenticationAgentFinished'
        QtMocHelpers::SignalData<void(bool)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Signal 'authenticationAgentResponseFinished'
        QtMocHelpers::SignalData<void(bool)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Signal 'enumerateTemporaryAuthorizationsFinished'
        QtMocHelpers::SignalData<void(PolkitQt1::TemporaryAuthorization::List)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 2 },
        }}),
        // Signal 'revokeTemporaryAuthorizationsFinished'
        QtMocHelpers::SignalData<void(bool)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Signal 'revokeTemporaryAuthorizationFinished'
        QtMocHelpers::SignalData<void(bool)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'dbusFilter'
        QtMocHelpers::SlotData<void(const QDBusMessage &)>(15, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Result'
        QtMocHelpers::EnumData<enum Result>(18, 18, QMC::EnumFlags{}).add({
            {   19, Result::Unknown },
            {   20, Result::Yes },
            {   21, Result::No },
            {   22, Result::Challenge },
        }),
        // enum 'ErrorCode'
        QtMocHelpers::EnumData<enum ErrorCode>(23, 23, QMC::EnumFlags{}).add({
            {   24, ErrorCode::E_None },
            {   25, ErrorCode::E_GetAuthority },
            {   26, ErrorCode::E_CheckFailed },
            {   27, ErrorCode::E_WrongSubject },
            {   28, ErrorCode::E_UnknownResult },
            {   29, ErrorCode::E_EnumFailed },
            {   30, ErrorCode::E_RegisterFailed },
            {   31, ErrorCode::E_UnregisterFailed },
            {   32, ErrorCode::E_CookieOrIdentityEmpty },
            {   33, ErrorCode::E_AgentResponseFailed },
            {   34, ErrorCode::E_RevokeFailed },
        }),
    };
    return QtMocHelpers::metaObjectData<Authority, qt_meta_tag_ZN9PolkitQt19AuthorityE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PolkitQt1::Authority::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9PolkitQt19AuthorityE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9PolkitQt19AuthorityE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9PolkitQt19AuthorityE_t>.metaTypes,
    nullptr
} };

void PolkitQt1::Authority::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Authority *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->configChanged(); break;
        case 1: _t->consoleKitDBChanged(); break;
        case 2: _t->checkAuthorizationFinished((*reinterpret_cast<std::add_pointer_t<PolkitQt1::Authority::Result>>(_a[1]))); break;
        case 3: _t->enumerateActionsFinished((*reinterpret_cast<std::add_pointer_t<PolkitQt1::ActionDescription::List>>(_a[1]))); break;
        case 4: _t->registerAuthenticationAgentFinished((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 5: _t->unregisterAuthenticationAgentFinished((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: _t->authenticationAgentResponseFinished((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 7: _t->enumerateTemporaryAuthorizationsFinished((*reinterpret_cast<std::add_pointer_t<PolkitQt1::TemporaryAuthorization::List>>(_a[1]))); break;
        case 8: _t->revokeTemporaryAuthorizationsFinished((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 9: _t->revokeTemporaryAuthorizationFinished((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 10: _t->d->dbusFilter((*reinterpret_cast<std::add_pointer_t<QDBusMessage>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< PolkitQt1::ActionDescription::List >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< PolkitQt1::TemporaryAuthorization::List >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Authority::*)()>(_a, &Authority::configChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Authority::*)()>(_a, &Authority::consoleKitDBChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Authority::*)(PolkitQt1::Authority::Result )>(_a, &Authority::checkAuthorizationFinished, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Authority::*)(PolkitQt1::ActionDescription::List )>(_a, &Authority::enumerateActionsFinished, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Authority::*)(bool )>(_a, &Authority::registerAuthenticationAgentFinished, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Authority::*)(bool )>(_a, &Authority::unregisterAuthenticationAgentFinished, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Authority::*)(bool )>(_a, &Authority::authenticationAgentResponseFinished, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (Authority::*)(PolkitQt1::TemporaryAuthorization::List )>(_a, &Authority::enumerateTemporaryAuthorizationsFinished, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (Authority::*)(bool )>(_a, &Authority::revokeTemporaryAuthorizationsFinished, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (Authority::*)(bool )>(_a, &Authority::revokeTemporaryAuthorizationFinished, 9))
            return;
    }
}

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

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

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

// SIGNAL 0
void PolkitQt1::Authority::configChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void PolkitQt1::Authority::consoleKitDBChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void PolkitQt1::Authority::checkAuthorizationFinished(PolkitQt1::Authority::Result _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void PolkitQt1::Authority::enumerateActionsFinished(PolkitQt1::ActionDescription::List _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void PolkitQt1::Authority::registerAuthenticationAgentFinished(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void PolkitQt1::Authority::unregisterAuthenticationAgentFinished(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void PolkitQt1::Authority::authenticationAgentResponseFinished(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void PolkitQt1::Authority::enumerateTemporaryAuthorizationsFinished(PolkitQt1::TemporaryAuthorization::List _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void PolkitQt1::Authority::revokeTemporaryAuthorizationsFinished(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}

// SIGNAL 9
void PolkitQt1::Authority::revokeTemporaryAuthorizationFinished(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1);
}
QT_WARNING_POP
