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

#include <memory>
#include "../../../../qt3d/src/render/framegraph/qwaitfence.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qwaitfence.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.2. 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_Qt3DRender__QWaitFence_t {
    QByteArrayData data[13];
    char stringdata0[158];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Qt3DRender__QWaitFence_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Qt3DRender__QWaitFence_t qt_meta_stringdata_Qt3DRender__QWaitFence = {
    {
QT_MOC_LITERAL(0, 0, 22), // "Qt3DRender::QWaitFence"
QT_MOC_LITERAL(1, 23, 16), // "waitOnCPUChanged"
QT_MOC_LITERAL(2, 40, 0), // ""
QT_MOC_LITERAL(3, 41, 9), // "waitOnCPU"
QT_MOC_LITERAL(4, 51, 14), // "timeoutChanged"
QT_MOC_LITERAL(5, 66, 17), // "handleTypeChanged"
QT_MOC_LITERAL(6, 84, 10), // "HandleType"
QT_MOC_LITERAL(7, 95, 10), // "handleType"
QT_MOC_LITERAL(8, 106, 13), // "handleChanged"
QT_MOC_LITERAL(9, 120, 6), // "handle"
QT_MOC_LITERAL(10, 127, 7), // "timeout"
QT_MOC_LITERAL(11, 135, 8), // "NoHandle"
QT_MOC_LITERAL(12, 144, 13) // "OpenGLFenceId"

    },
    "Qt3DRender::QWaitFence\0waitOnCPUChanged\0"
    "\0waitOnCPU\0timeoutChanged\0handleTypeChanged\0"
    "HandleType\0handleType\0handleChanged\0"
    "handle\0timeout\0NoHandle\0OpenGLFenceId"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Qt3DRender__QWaitFence[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       4,   14, // methods
       4,   46, // properties
       1,   62, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   34,    2, 0x06 /* Public */,
       4,    1,   37,    2, 0x06 /* Public */,
       5,    1,   40,    2, 0x06 /* Public */,
       8,    1,   43,    2, 0x06 /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::Bool,    3,
    QMetaType::Void, QMetaType::ULongLong,    4,
    QMetaType::Void, 0x80000000 | 6,    7,
    QMetaType::Void, QMetaType::QVariant,    9,

 // properties: name, type, flags
       7, 0x80000000 | 6, 0x0049510b,
       9, QMetaType::QVariant, 0x00495103,
       3, QMetaType::Bool, 0x00495103,
      10, QMetaType::ULongLong, 0x00495103,

 // properties: notify_signal_id
       2,
       3,
       0,
       1,

 // enums: name, alias, flags, count, data
       6,    6, 0x0,    2,   67,

 // enum data: key, value
      11, uint(Qt3DRender::QWaitFence::NoHandle),
      12, uint(Qt3DRender::QWaitFence::OpenGLFenceId),

       0        // eod
};

void Qt3DRender::QWaitFence::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QWaitFence *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->waitOnCPUChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 1: _t->timeoutChanged((*reinterpret_cast< quint64(*)>(_a[1]))); break;
        case 2: _t->handleTypeChanged((*reinterpret_cast< HandleType(*)>(_a[1]))); break;
        case 3: _t->handleChanged((*reinterpret_cast< QVariant(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QWaitFence::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QWaitFence::waitOnCPUChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (QWaitFence::*)(quint64 );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QWaitFence::timeoutChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (QWaitFence::*)(HandleType );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QWaitFence::handleTypeChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (QWaitFence::*)(QVariant );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QWaitFence::handleChanged)) {
                *result = 3;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QWaitFence *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< HandleType*>(_v) = _t->handleType(); break;
        case 1: *reinterpret_cast< QVariant*>(_v) = _t->handle(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->waitOnCPU(); break;
        case 3: *reinterpret_cast< quint64*>(_v) = _t->timeout(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QWaitFence *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setHandleType(*reinterpret_cast< HandleType*>(_v)); break;
        case 1: _t->setHandle(*reinterpret_cast< QVariant*>(_v)); break;
        case 2: _t->setWaitOnCPU(*reinterpret_cast< bool*>(_v)); break;
        case 3: _t->setTimeout(*reinterpret_cast< quint64*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject Qt3DRender::QWaitFence::staticMetaObject = { {
    QMetaObject::SuperData::link<QFrameGraphNode::staticMetaObject>(),
    qt_meta_stringdata_Qt3DRender__QWaitFence.data,
    qt_meta_data_Qt3DRender__QWaitFence,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *Qt3DRender::QWaitFence::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Qt3DRender__QWaitFence.stringdata0))
        return static_cast<void*>(this);
    return QFrameGraphNode::qt_metacast(_clname);
}

int Qt3DRender::QWaitFence::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QFrameGraphNode::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 4;
    }
#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 -= 4;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 4;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void Qt3DRender::QWaitFence::waitOnCPUChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

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

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

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