/****************************************************************************
** Meta object code from reading C++ file 'openbabel.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 "../../../../../../avogadrolibs/avogadro/qtplugins/openbabel/openbabel.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 'openbabel.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_ZN8Avogadro9QtPlugins9OpenBabelE_t {};
} // unnamed namespace

template <> constexpr inline auto Avogadro::QtPlugins::OpenBabel::qt_create_metaobjectdata<qt_meta_tag_ZN8Avogadro9QtPlugins9OpenBabelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Avogadro::QtPlugins::OpenBabel",
        "setMolecule",
        "",
        "QtGui::Molecule*",
        "mol",
        "readMolecule",
        "QtGui::Molecule&",
        "refreshReadFormats",
        "handleReadFormatUpdate",
        "QMultiMap<QString,QString>",
        "fmts",
        "refreshWriteFormats",
        "handleWriteFormatUpdate",
        "refreshForceFields",
        "handleForceFieldsUpdate",
        "ffMap",
        "refreshCharges",
        "handleChargesUpdate",
        "chargeMap",
        "onConfigureGeometryOptimization",
        "onConfigureConformerSearch",
        "onOptimizeGeometry",
        "onOptimizeGeometryStatusUpdate",
        "step",
        "numSteps",
        "energy",
        "lastEnergy",
        "onOptimizeGeometryFinished",
        "output",
        "onGenerateConformers",
        "onConformerStatusUpdate",
        "onGenerateConformersFinished",
        "onPerceiveBonds",
        "onPerceiveBondsFinished",
        "onAddHydrogens",
        "onAddHydrogensPh",
        "onRemoveHydrogens",
        "onHydrogenOperationFinished",
        "cml"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'setMolecule'
        QtMocHelpers::SlotData<void(QtGui::Molecule *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'readMolecule'
        QtMocHelpers::SlotData<bool(QtGui::Molecule &)>(5, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 6, 4 },
        }}),
        // Slot 'refreshReadFormats'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'handleReadFormatUpdate'
        QtMocHelpers::SlotData<void(const QMultiMap<QString,QString> &)>(8, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Slot 'refreshWriteFormats'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'handleWriteFormatUpdate'
        QtMocHelpers::SlotData<void(const QMultiMap<QString,QString> &)>(12, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Slot 'refreshForceFields'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'handleForceFieldsUpdate'
        QtMocHelpers::SlotData<void(const QMultiMap<QString,QString> &)>(14, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 9, 15 },
        }}),
        // Slot 'refreshCharges'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'handleChargesUpdate'
        QtMocHelpers::SlotData<void(const QMultiMap<QString,QString> &)>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 9, 18 },
        }}),
        // Slot 'onConfigureGeometryOptimization'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onConfigureConformerSearch'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onOptimizeGeometry'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onOptimizeGeometryStatusUpdate'
        QtMocHelpers::SlotData<void(int, int, double, double)>(22, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 23 }, { QMetaType::Int, 24 }, { QMetaType::Double, 25 }, { QMetaType::Double, 26 },
        }}),
        // Slot 'onOptimizeGeometryFinished'
        QtMocHelpers::SlotData<void(const QByteArray &)>(27, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QByteArray, 28 },
        }}),
        // Slot 'onGenerateConformers'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onConformerStatusUpdate'
        QtMocHelpers::SlotData<void(int, int, double, double)>(30, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 23 }, { QMetaType::Int, 24 }, { QMetaType::Double, 25 }, { QMetaType::Double, 26 },
        }}),
        // Slot 'onGenerateConformersFinished'
        QtMocHelpers::SlotData<void(const QByteArray &)>(31, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QByteArray, 28 },
        }}),
        // Slot 'onPerceiveBonds'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onPerceiveBondsFinished'
        QtMocHelpers::SlotData<void(const QByteArray &)>(33, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QByteArray, 28 },
        }}),
        // Slot 'onAddHydrogens'
        QtMocHelpers::SlotData<void()>(34, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onAddHydrogensPh'
        QtMocHelpers::SlotData<void()>(35, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onRemoveHydrogens'
        QtMocHelpers::SlotData<void()>(36, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onHydrogenOperationFinished'
        QtMocHelpers::SlotData<void(const QByteArray &)>(37, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QByteArray, 38 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<OpenBabel, qt_meta_tag_ZN8Avogadro9QtPlugins9OpenBabelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Avogadro::QtPlugins::OpenBabel::staticMetaObject = { {
    QMetaObject::SuperData::link<QtGui::ExtensionPlugin::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9QtPlugins9OpenBabelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9QtPlugins9OpenBabelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Avogadro9QtPlugins9OpenBabelE_t>.metaTypes,
    nullptr
} };

void Avogadro::QtPlugins::OpenBabel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<OpenBabel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->setMolecule((*reinterpret_cast<std::add_pointer_t<QtGui::Molecule*>>(_a[1]))); break;
        case 1: { bool _r = _t->readMolecule((*reinterpret_cast<std::add_pointer_t<QtGui::Molecule&>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 2: _t->refreshReadFormats(); break;
        case 3: _t->handleReadFormatUpdate((*reinterpret_cast<std::add_pointer_t<QMultiMap<QString,QString>>>(_a[1]))); break;
        case 4: _t->refreshWriteFormats(); break;
        case 5: _t->handleWriteFormatUpdate((*reinterpret_cast<std::add_pointer_t<QMultiMap<QString,QString>>>(_a[1]))); break;
        case 6: _t->refreshForceFields(); break;
        case 7: _t->handleForceFieldsUpdate((*reinterpret_cast<std::add_pointer_t<QMultiMap<QString,QString>>>(_a[1]))); break;
        case 8: _t->refreshCharges(); break;
        case 9: _t->handleChargesUpdate((*reinterpret_cast<std::add_pointer_t<QMultiMap<QString,QString>>>(_a[1]))); break;
        case 10: _t->onConfigureGeometryOptimization(); break;
        case 11: _t->onConfigureConformerSearch(); break;
        case 12: _t->onOptimizeGeometry(); break;
        case 13: _t->onOptimizeGeometryStatusUpdate((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<double>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<double>>(_a[4]))); break;
        case 14: _t->onOptimizeGeometryFinished((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 15: _t->onGenerateConformers(); break;
        case 16: _t->onConformerStatusUpdate((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<double>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<double>>(_a[4]))); break;
        case 17: _t->onGenerateConformersFinished((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 18: _t->onPerceiveBonds(); break;
        case 19: _t->onPerceiveBondsFinished((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 20: _t->onAddHydrogens(); break;
        case 21: _t->onAddHydrogensPh(); break;
        case 22: _t->onRemoveHydrogens(); break;
        case 23: _t->onHydrogenOperationFinished((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        default: ;
        }
    }
}

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

void *Avogadro::QtPlugins::OpenBabel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9QtPlugins9OpenBabelE_t>.strings))
        return static_cast<void*>(this);
    return QtGui::ExtensionPlugin::qt_metacast(_clname);
}

int Avogadro::QtPlugins::OpenBabel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QtGui::ExtensionPlugin::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 24)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 24;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 24)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 24;
    }
    return _id;
}
QT_WARNING_POP
