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

#include "../../../../plugins/AQTSampleMachinePlug/AQTSampleMachinePlug.hpp"
#include <QtCore/qmetatype.h>
#include <QtCore/qplugin.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


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


#ifdef QT_MOC_HAS_STRINGDATA
static constexpr auto qt_meta_stringdata_ZN20AQTSampleMachinePlugE = QtMocHelpers::stringData(
    "AQTSampleMachinePlug",
    "messagePublished",
    "",
    "message",
    "index",
    "init",
    "publishOnce",
    "echo",
    "calculate",
    "a",
    "b"
);
#else  // !QT_MOC_HAS_STRINGDATA
#error "qtmochelpers.h not found or too old."
#endif // !QT_MOC_HAS_STRINGDATA

Q_CONSTINIT static const uint qt_meta_data_ZN20AQTSampleMachinePlugE[] = {

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

 // signals: name, argc, parameters, tag, flags, initial metatype offsets
       1,    2,   44,    2, 0x06,    1 /* Public */,

 // methods: name, argc, parameters, tag, flags, initial metatype offsets
       5,    0,   49,    2, 0x02,    4 /* Public */,
       6,    0,   50,    2, 0x02,    5 /* Public */,
       7,    1,   51,    2, 0x02,    6 /* Public */,
       8,    2,   54,    2, 0x02,    8 /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::Int,    3,    4,

 // methods: parameters
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::QString, QMetaType::QString,    3,
    QMetaType::Int, QMetaType::Int, QMetaType::Int,    9,   10,

       0        // eod
};

Q_CONSTINIT const QMetaObject AQTSampleMachinePlug::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_ZN20AQTSampleMachinePlugE.offsetsAndSizes,
    qt_meta_data_ZN20AQTSampleMachinePlugE,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_tag_ZN20AQTSampleMachinePlugE_t,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<AQTSampleMachinePlug, std::true_type>,
        // method 'messagePublished'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
        QtPrivate::TypeAndForceComplete<int, std::false_type>,
        // method 'init'
        QtPrivate::TypeAndForceComplete<bool, std::false_type>,
        // method 'publishOnce'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'echo'
        QtPrivate::TypeAndForceComplete<QString, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
        // method 'calculate'
        QtPrivate::TypeAndForceComplete<int, std::false_type>,
        QtPrivate::TypeAndForceComplete<int, std::false_type>,
        QtPrivate::TypeAndForceComplete<int, std::false_type>
    >,
    nullptr
} };

void AQTSampleMachinePlug::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<AQTSampleMachinePlug *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->messagePublished((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2]))); break;
        case 1: { bool _r = _t->init();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 2: _t->publishOnce(); break;
        case 3: { QString _r = _t->echo((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 4: { int _r = _t->calculate((*reinterpret_cast< std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _q_method_type = void (AQTSampleMachinePlug::*)(const QString & , int );
            if (_q_method_type _q_method = &AQTSampleMachinePlug::messagePublished; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
                *result = 0;
                return;
            }
        }
    }
}

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

void *AQTSampleMachinePlug::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_ZN20AQTSampleMachinePlugE.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "AuseftDDSPluginInterface"))
        return static_cast< AuseftDDSPluginInterface*>(this);
    if (!strcmp(_clname, "Com.Auseft.AuseftDDSPluginInterface"))
        return static_cast< AuseftDDSPluginInterface*>(this);
    return QObject::qt_metacast(_clname);
}

int AQTSampleMachinePlug::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 < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 5;
    }
    return _id;
}

// SIGNAL 0
void AQTSampleMachinePlug::messagePublished(const QString & _t1, int _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, 0, _a);
}

#ifdef QT_MOC_EXPORT_PLUGIN_V2
static constexpr unsigned char qt_pluginMetaDataV2_AQTSampleMachinePlug[] = {
    0xbf, 
    // "IID"
    0x02,  0x78,  0x23,  'C',  'o',  'm',  '.',  'A', 
    'u',  's',  'e',  'f',  't',  '.',  'A',  'u', 
    's',  'e',  'f',  't',  'D',  'D',  'S',  'P', 
    'l',  'u',  'g',  'i',  'n',  'I',  'n',  't', 
    'e',  'r',  'f',  'a',  'c',  'e', 
    // "className"
    0x03,  0x74,  'A',  'Q',  'T',  'S',  'a',  'm', 
    'p',  'l',  'e',  'M',  'a',  'c',  'h',  'i', 
    'n',  'e',  'P',  'l',  'u',  'g', 
    0xff, 
};
QT_MOC_EXPORT_PLUGIN_V2(AQTSampleMachinePlug, AQTSampleMachinePlug, qt_pluginMetaDataV2_AQTSampleMachinePlug)
#else
QT_PLUGIN_METADATA_SECTION
Q_CONSTINIT static constexpr unsigned char qt_pluginMetaData_AQTSampleMachinePlug[] = {
    'Q', 'T', 'M', 'E', 'T', 'A', 'D', 'A', 'T', 'A', ' ', '!',
    // metadata version, Qt version, architectural requirements
    0, QT_VERSION_MAJOR, QT_VERSION_MINOR, qPluginArchRequirements(),
    0xbf, 
    // "IID"
    0x02,  0x78,  0x23,  'C',  'o',  'm',  '.',  'A', 
    'u',  's',  'e',  'f',  't',  '.',  'A',  'u', 
    's',  'e',  'f',  't',  'D',  'D',  'S',  'P', 
    'l',  'u',  'g',  'i',  'n',  'I',  'n',  't', 
    'e',  'r',  'f',  'a',  'c',  'e', 
    // "className"
    0x03,  0x74,  'A',  'Q',  'T',  'S',  'a',  'm', 
    'p',  'l',  'e',  'M',  'a',  'c',  'h',  'i', 
    'n',  'e',  'P',  'l',  'u',  'g', 
    0xff, 
};
QT_MOC_EXPORT_PLUGIN(AQTSampleMachinePlug, AQTSampleMachinePlug)
#endif  // QT_MOC_EXPORT_PLUGIN_V2

QT_WARNING_POP
