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

#include <memory>
#include "../../../../../../git/examples/wayland/custom-extension/compositor/customextension.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'customextension.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.13.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_CustomExtension_t {
    QByteArrayData data[17];
    char stringdata0[184];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_CustomExtension_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_CustomExtension_t qt_meta_stringdata_CustomExtension = {
    {
QT_MOC_LITERAL(0, 0, 15), // "CustomExtension"
QT_MOC_LITERAL(1, 16, 12), // "surfaceAdded"
QT_MOC_LITERAL(2, 29, 0), // ""
QT_MOC_LITERAL(3, 30, 16), // "QWaylandSurface*"
QT_MOC_LITERAL(4, 47, 7), // "surface"
QT_MOC_LITERAL(5, 55, 6), // "bounce"
QT_MOC_LITERAL(6, 62, 2), // "ms"
QT_MOC_LITERAL(7, 65, 4), // "spin"
QT_MOC_LITERAL(8, 70, 19), // "customObjectCreated"
QT_MOC_LITERAL(9, 90, 22), // "CustomExtensionObject*"
QT_MOC_LITERAL(10, 113, 3), // "obj"
QT_MOC_LITERAL(11, 117, 11), // "setFontSize"
QT_MOC_LITERAL(12, 129, 9), // "pixelSize"
QT_MOC_LITERAL(13, 139, 15), // "showDecorations"
QT_MOC_LITERAL(14, 155, 15), // "QWaylandClient*"
QT_MOC_LITERAL(15, 171, 6), // "client"
QT_MOC_LITERAL(16, 178, 5) // "close"

    },
    "CustomExtension\0surfaceAdded\0\0"
    "QWaylandSurface*\0surface\0bounce\0ms\0"
    "spin\0customObjectCreated\0"
    "CustomExtensionObject*\0obj\0setFontSize\0"
    "pixelSize\0showDecorations\0QWaylandClient*\0"
    "client\0close"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_CustomExtension[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   49,    2, 0x06 /* Public */,
       5,    2,   52,    2, 0x06 /* Public */,
       7,    2,   57,    2, 0x06 /* Public */,
       8,    1,   62,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      11,    2,   65,    2, 0x0a /* Public */,
      13,    2,   70,    2, 0x0a /* Public */,
      16,    1,   75,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3, QMetaType::UInt,    4,    6,
    QMetaType::Void, 0x80000000 | 3, QMetaType::UInt,    4,    6,
    QMetaType::Void, 0x80000000 | 9,   10,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3, QMetaType::UInt,    4,   12,
    QMetaType::Void, 0x80000000 | 14, QMetaType::Bool,   15,    2,
    QMetaType::Void, 0x80000000 | 3,    4,

       0        // eod
};

void CustomExtension::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<CustomExtension *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->surfaceAdded((*reinterpret_cast< QWaylandSurface*(*)>(_a[1]))); break;
        case 1: _t->bounce((*reinterpret_cast< QWaylandSurface*(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2]))); break;
        case 2: _t->spin((*reinterpret_cast< QWaylandSurface*(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2]))); break;
        case 3: _t->customObjectCreated((*reinterpret_cast< CustomExtensionObject*(*)>(_a[1]))); break;
        case 4: _t->setFontSize((*reinterpret_cast< QWaylandSurface*(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2]))); break;
        case 5: _t->showDecorations((*reinterpret_cast< QWaylandClient*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 6: _t->close((*reinterpret_cast< QWaylandSurface*(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< CustomExtensionObject* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (CustomExtension::*)(QWaylandSurface * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CustomExtension::surfaceAdded)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (CustomExtension::*)(QWaylandSurface * , uint );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CustomExtension::bounce)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (CustomExtension::*)(QWaylandSurface * , uint );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CustomExtension::spin)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (CustomExtension::*)(CustomExtensionObject * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CustomExtension::customObjectCreated)) {
                *result = 3;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject CustomExtension::staticMetaObject = { {
    &QWaylandCompositorExtensionTemplate<CustomExtension>::staticMetaObject,
    qt_meta_stringdata_CustomExtension.data,
    qt_meta_data_CustomExtension,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *CustomExtension::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_CustomExtension.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QtWaylandServer::qt_example_extension"))
        return static_cast< QtWaylandServer::qt_example_extension*>(this);
    return QWaylandCompositorExtensionTemplate<CustomExtension>::qt_metacast(_clname);
}

int CustomExtension::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWaylandCompositorExtensionTemplate<CustomExtension>::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    return _id;
}

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

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

// SIGNAL 2
void CustomExtension::spin(QWaylandSurface * _t1, uint _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void CustomExtension::customObjectCreated(CustomExtensionObject * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
struct qt_meta_stringdata_CustomExtensionObject_t {
    QByteArrayData data[10];
    char stringdata0[106];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_CustomExtensionObject_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_CustomExtensionObject_t qt_meta_stringdata_CustomExtensionObject = {
    {
QT_MOC_LITERAL(0, 0, 21), // "CustomExtensionObject"
QT_MOC_LITERAL(1, 22, 12), // "colorChanged"
QT_MOC_LITERAL(2, 35, 0), // ""
QT_MOC_LITERAL(3, 36, 5), // "color"
QT_MOC_LITERAL(4, 42, 17), // "resourceDestroyed"
QT_MOC_LITERAL(5, 60, 11), // "textChanged"
QT_MOC_LITERAL(6, 72, 4), // "text"
QT_MOC_LITERAL(7, 77, 8), // "setColor"
QT_MOC_LITERAL(8, 86, 7), // "setText"
QT_MOC_LITERAL(9, 94, 11) // "sendClicked"

    },
    "CustomExtensionObject\0colorChanged\0\0"
    "color\0resourceDestroyed\0textChanged\0"
    "text\0setColor\0setText\0sendClicked"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_CustomExtensionObject[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       6,   14, // methods
       2,   58, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   44,    2, 0x06 /* Public */,
       4,    0,   47,    2, 0x06 /* Public */,
       5,    1,   48,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       7,    1,   51,    2, 0x0a /* Public */,
       8,    1,   54,    2, 0x0a /* Public */,
       9,    0,   57,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    6,

 // slots: parameters
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void, QMetaType::QString,    6,
    QMetaType::Void,

 // properties: name, type, flags
       3, QMetaType::QString, 0x00495103,
       6, QMetaType::QString, 0x00495103,

 // properties: notify_signal_id
       0,
       2,

       0        // eod
};

void CustomExtensionObject::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<CustomExtensionObject *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->colorChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 1: _t->resourceDestroyed(); break;
        case 2: _t->textChanged((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 3: _t->setColor((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: _t->setText((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 5: _t->sendClicked(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (CustomExtensionObject::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CustomExtensionObject::colorChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (CustomExtensionObject::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CustomExtensionObject::resourceDestroyed)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (CustomExtensionObject::*)(QString );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CustomExtensionObject::textChanged)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<CustomExtensionObject *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->color(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->text(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<CustomExtensionObject *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setColor(*reinterpret_cast< QString*>(_v)); break;
        case 1: _t->setText(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject CustomExtensionObject::staticMetaObject = { {
    &QWaylandCompositorExtensionTemplate<CustomExtensionObject>::staticMetaObject,
    qt_meta_stringdata_CustomExtensionObject.data,
    qt_meta_data_CustomExtensionObject,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *CustomExtensionObject::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_CustomExtensionObject.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QtWaylandServer::qt_example_local_object"))
        return static_cast< QtWaylandServer::qt_example_local_object*>(this);
    return QWaylandCompositorExtensionTemplate<CustomExtensionObject>::qt_metacast(_clname);
}

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

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

// SIGNAL 1
void CustomExtensionObject::resourceDestroyed()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void CustomExtensionObject::textChanged(QString _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
struct qt_meta_stringdata_CustomExtensionQuickExtension_t {
    QByteArrayData data[4];
    char stringdata0[77];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_CustomExtensionQuickExtension_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_CustomExtensionQuickExtension_t qt_meta_stringdata_CustomExtensionQuickExtension = {
    {
QT_MOC_LITERAL(0, 0, 29), // "CustomExtensionQuickExtension"
QT_MOC_LITERAL(1, 30, 15), // "DefaultProperty"
QT_MOC_LITERAL(2, 46, 4), // "data"
QT_MOC_LITERAL(3, 51, 25) // "QQmlListProperty<QObject>"

    },
    "CustomExtensionQuickExtension\0"
    "DefaultProperty\0data\0QQmlListProperty<QObject>"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_CustomExtensionQuickExtension[] = {

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

 // classinfo: key, value
       1,    2,

 // properties: name, type, flags
       2, 0x80000000 | 3, 0x00094009,

       0        // eod
};

void CustomExtensionQuickExtension::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{

#ifndef QT_NO_PROPERTIES
    if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<CustomExtensionQuickExtension *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QQmlListProperty<QObject>*>(_v) = _t->data(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
    Q_UNUSED(_o);
    Q_UNUSED(_id);
    Q_UNUSED(_c);
    Q_UNUSED(_a);
}

QT_INIT_METAOBJECT const QMetaObject CustomExtensionQuickExtension::staticMetaObject = { {
    &CustomExtension::staticMetaObject,
    qt_meta_stringdata_CustomExtensionQuickExtension.data,
    qt_meta_data_CustomExtensionQuickExtension,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *CustomExtensionQuickExtension::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_CustomExtensionQuickExtension.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QQmlParserStatus"))
        return static_cast< QQmlParserStatus*>(this);
    if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus"))
        return static_cast< QQmlParserStatus*>(this);
    return CustomExtension::qt_metacast(_clname);
}

int CustomExtensionQuickExtension::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = CustomExtension::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    
#ifndef QT_NO_PROPERTIES
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 1;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
