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

#include <memory>
#include "generated/org_freedesktop_policykit1.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'org_freedesktop_policykit1.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.17. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata___PolicyKit1_t {
    QByteArrayData data[33];
    char stringdata0[514];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata___PolicyKit1_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata___PolicyKit1_t qt_meta_stringdata___PolicyKit1 = {
    {
QT_MOC_LITERAL(0, 0, 12), // "__PolicyKit1"
QT_MOC_LITERAL(1, 13, 7), // "Changed"
QT_MOC_LITERAL(2, 21, 0), // ""
QT_MOC_LITERAL(3, 22, 22), // "BackendFeaturesChanged"
QT_MOC_LITERAL(4, 45, 5), // "value"
QT_MOC_LITERAL(5, 51, 18), // "BackendNameChanged"
QT_MOC_LITERAL(6, 70, 21), // "BackendVersionChanged"
QT_MOC_LITERAL(7, 92, 24), // "CancelCheckAuthorization"
QT_MOC_LITERAL(8, 117, 19), // "QDBusPendingReply<>"
QT_MOC_LITERAL(9, 137, 15), // "cancellation_id"
QT_MOC_LITERAL(10, 153, 30), // "CancelCheckAuthorizationQueued"
QT_MOC_LITERAL(11, 184, 18), // "CheckAuthorization"
QT_MOC_LITERAL(12, 203, 31), // "QDBusPendingReply<PolicyResult>"
QT_MOC_LITERAL(13, 235, 13), // "PolicySubject"
QT_MOC_LITERAL(14, 249, 7), // "subject"
QT_MOC_LITERAL(15, 257, 9), // "action_id"
QT_MOC_LITERAL(16, 267, 13), // "PolicyDetails"
QT_MOC_LITERAL(17, 281, 7), // "details"
QT_MOC_LITERAL(18, 289, 5), // "flags"
QT_MOC_LITERAL(19, 295, 32), // "RevokeTemporaryAuthorizationById"
QT_MOC_LITERAL(20, 328, 2), // "id"
QT_MOC_LITERAL(21, 331, 38), // "RevokeTemporaryAuthorizationB..."
QT_MOC_LITERAL(22, 370, 10), // "CallQueued"
QT_MOC_LITERAL(23, 381, 8), // "callName"
QT_MOC_LITERAL(24, 390, 4), // "args"
QT_MOC_LITERAL(25, 395, 21), // "onPendingCallFinished"
QT_MOC_LITERAL(26, 417, 24), // "QDBusPendingCallWatcher*"
QT_MOC_LITERAL(27, 442, 1), // "w"
QT_MOC_LITERAL(28, 444, 17), // "onPropertyChanged"
QT_MOC_LITERAL(29, 462, 8), // "propName"
QT_MOC_LITERAL(30, 471, 15), // "BackendFeatures"
QT_MOC_LITERAL(31, 487, 11), // "BackendName"
QT_MOC_LITERAL(32, 499, 14) // "BackendVersion"

    },
    "__PolicyKit1\0Changed\0\0BackendFeaturesChanged\0"
    "value\0BackendNameChanged\0BackendVersionChanged\0"
    "CancelCheckAuthorization\0QDBusPendingReply<>\0"
    "cancellation_id\0CancelCheckAuthorizationQueued\0"
    "CheckAuthorization\0QDBusPendingReply<PolicyResult>\0"
    "PolicySubject\0subject\0action_id\0"
    "PolicyDetails\0details\0flags\0"
    "RevokeTemporaryAuthorizationById\0id\0"
    "RevokeTemporaryAuthorizationByIdQueued\0"
    "CallQueued\0callName\0args\0onPendingCallFinished\0"
    "QDBusPendingCallWatcher*\0w\0onPropertyChanged\0"
    "propName\0BackendFeatures\0BackendName\0"
    "BackendVersion"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data___PolicyKit1[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      12,   14, // methods
       3,  120, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   74,    2, 0x06 /* Public */,
       3,    1,   75,    2, 0x06 /* Public */,
       5,    1,   78,    2, 0x06 /* Public */,
       6,    1,   81,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       7,    1,   84,    2, 0x0a /* Public */,
      10,    1,   87,    2, 0x0a /* Public */,
      11,    5,   90,    2, 0x0a /* Public */,
      19,    1,  101,    2, 0x0a /* Public */,
      21,    1,  104,    2, 0x0a /* Public */,
      22,    2,  107,    2, 0x0a /* Public */,
      25,    1,  112,    2, 0x08 /* Private */,
      28,    2,  115,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::UInt,    4,
    QMetaType::Void, QMetaType::QString,    4,
    QMetaType::Void, QMetaType::QString,    4,

 // slots: parameters
    0x80000000 | 8, QMetaType::QString,    9,
    QMetaType::Void, QMetaType::QString,    9,
    0x80000000 | 12, 0x80000000 | 13, QMetaType::QString, 0x80000000 | 16, QMetaType::UInt, QMetaType::QString,   14,   15,   17,   18,    9,
    0x80000000 | 8, QMetaType::QString,   20,
    QMetaType::Void, QMetaType::QString,   20,
    QMetaType::Void, QMetaType::QString, QMetaType::QVariantList,   23,   24,
    QMetaType::Void, 0x80000000 | 26,   27,
    QMetaType::Void, QMetaType::QString, QMetaType::QVariant,   29,    4,

 // properties: name, type, flags
      30, QMetaType::UInt, 0x00495001,
      31, QMetaType::QString, 0x00495001,
      32, QMetaType::QString, 0x00495001,

 // properties: notify_signal_id
       1,
       2,
       3,

       0        // eod
};

void __PolicyKit1::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<__PolicyKit1 *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->Changed(); break;
        case 1: _t->BackendFeaturesChanged((*reinterpret_cast< uint(*)>(_a[1]))); break;
        case 2: _t->BackendNameChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->BackendVersionChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: { QDBusPendingReply<> _r = _t->CancelCheckAuthorization((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->CancelCheckAuthorizationQueued((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 6: { QDBusPendingReply<PolicyResult> _r = _t->CheckAuthorization((*reinterpret_cast< PolicySubject(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< PolicyDetails(*)>(_a[3])),(*reinterpret_cast< uint(*)>(_a[4])),(*reinterpret_cast< const QString(*)>(_a[5])));
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<PolicyResult>*>(_a[0]) = std::move(_r); }  break;
        case 7: { QDBusPendingReply<> _r = _t->RevokeTemporaryAuthorizationById((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->RevokeTemporaryAuthorizationByIdQueued((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 9: _t->CallQueued((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QList<QVariant>(*)>(_a[2]))); break;
        case 10: _t->onPendingCallFinished((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break;
        case 11: _t->onPropertyChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QVariant(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< PolicySubject >(); break;
            }
            break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDBusPendingCallWatcher* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (__PolicyKit1::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&__PolicyKit1::Changed)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (__PolicyKit1::*)(uint ) const;
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&__PolicyKit1::BackendFeaturesChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (__PolicyKit1::*)(const QString & ) const;
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&__PolicyKit1::BackendNameChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (__PolicyKit1::*)(const QString & ) const;
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&__PolicyKit1::BackendVersionChanged)) {
                *result = 3;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<__PolicyKit1 *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< uint*>(_v) = _t->backendFeatures(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->backendName(); break;
        case 2: *reinterpret_cast< QString*>(_v) = _t->backendVersion(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject __PolicyKit1::staticMetaObject = { {
    QMetaObject::SuperData::link<DBusExtendedAbstractInterface::staticMetaObject>(),
    qt_meta_stringdata___PolicyKit1.data,
    qt_meta_data___PolicyKit1,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *__PolicyKit1::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata___PolicyKit1.stringdata0))
        return static_cast<void*>(this);
    return DBusExtendedAbstractInterface::qt_metacast(_clname);
}

int __PolicyKit1::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = DBusExtendedAbstractInterface::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 3;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

// SIGNAL 1
void __PolicyKit1::BackendFeaturesChanged(uint _t1)const
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(const_cast< __PolicyKit1 *>(this), &staticMetaObject, 1, _a);
}

// SIGNAL 2
void __PolicyKit1::BackendNameChanged(const QString & _t1)const
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(const_cast< __PolicyKit1 *>(this), &staticMetaObject, 2, _a);
}

// SIGNAL 3
void __PolicyKit1::BackendVersionChanged(const QString & _t1)const
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(const_cast< __PolicyKit1 *>(this), &staticMetaObject, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
