/****************************************************************************
** Meta object code from reading C++ file 'forcefield.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/forcefield/forcefield.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 'forcefield.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_ZN8Avogadro9QtPlugins10ForcefieldE_t {};
} // unnamed namespace

template <> constexpr inline auto Avogadro::QtPlugins::Forcefield::qt_create_metaobjectdata<qt_meta_tag_ZN8Avogadro9QtPlugins10ForcefieldE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Avogadro::QtPlugins::Forcefield",
        "refreshScripts",
        "",
        "registerScripts",
        "unregisterScripts",
        "showDialog",
        "registerFeature",
        "type",
        "packageDir",
        "command",
        "identifier",
        "QVariantMap",
        "metadata",
        "unregisterFeature",
        "energy",
        "forces",
        "optimize",
        "freezeSelected",
        "unfreezeSelected",
        "setupConstraints",
        "freezeAxis",
        "axis",
        "freezeX",
        "freezeY",
        "freezeZ",
        "fuseSelected",
        "unfuseSelected",
        "updateActions",
        "onOptimizeChunkDone",
        "Eigen::VectorXd",
        "positions",
        "gradient",
        "converged",
        "onEnergyDone",
        "onForcesDone",
        "onWorkerReady"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'refreshScripts'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'registerScripts'
        QtMocHelpers::SlotData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'unregisterScripts'
        QtMocHelpers::SlotData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'showDialog'
        QtMocHelpers::SlotData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'registerFeature'
        QtMocHelpers::SlotData<void(const QString &, const QString &, const QString &, const QString &, const QVariantMap &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 }, { QMetaType::QString, 8 }, { QMetaType::QString, 9 }, { QMetaType::QString, 10 },
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'unregisterFeature'
        QtMocHelpers::SlotData<void(const QString &, const QString &, const QString &, const QString &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 }, { QMetaType::QString, 8 }, { QMetaType::QString, 9 }, { QMetaType::QString, 10 },
        }}),
        // Slot 'energy'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'forces'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'optimize'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'freezeSelected'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'unfreezeSelected'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'setupConstraints'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'freezeAxis'
        QtMocHelpers::SlotData<void(int)>(20, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 21 },
        }}),
        // Slot 'freezeX'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'freezeY'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'freezeZ'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'fuseSelected'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'unfuseSelected'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updateActions'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onOptimizeChunkDone'
        QtMocHelpers::SlotData<void(Eigen::VectorXd, Eigen::VectorXd, double, bool)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 29, 30 }, { 0x80000000 | 29, 31 }, { QMetaType::Double, 14 }, { QMetaType::Bool, 32 },
        }}),
        // Slot 'onEnergyDone'
        QtMocHelpers::SlotData<void(Eigen::VectorXd, double)>(33, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 29, 31 }, { QMetaType::Double, 14 },
        }}),
        // Slot 'onForcesDone'
        QtMocHelpers::SlotData<void(Eigen::VectorXd, double)>(34, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 29, 31 }, { QMetaType::Double, 14 },
        }}),
        // Slot 'onWorkerReady'
        QtMocHelpers::SlotData<void()>(35, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Forcefield, qt_meta_tag_ZN8Avogadro9QtPlugins10ForcefieldE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Avogadro::QtPlugins::Forcefield::staticMetaObject = { {
    QMetaObject::SuperData::link<QtGui::ExtensionPlugin::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9QtPlugins10ForcefieldE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9QtPlugins10ForcefieldE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Avogadro9QtPlugins10ForcefieldE_t>.metaTypes,
    nullptr
} };

void Avogadro::QtPlugins::Forcefield::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Forcefield *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->refreshScripts(); break;
        case 1: _t->registerScripts(); break;
        case 2: _t->unregisterScripts(); break;
        case 3: _t->showDialog(); break;
        case 4: _t->registerFeature((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[5]))); break;
        case 5: _t->unregisterFeature((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4]))); break;
        case 6: _t->energy(); break;
        case 7: _t->forces(); break;
        case 8: _t->optimize(); break;
        case 9: _t->freezeSelected(); break;
        case 10: _t->unfreezeSelected(); break;
        case 11: _t->setupConstraints(); break;
        case 12: _t->freezeAxis((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 13: _t->freezeX(); break;
        case 14: _t->freezeY(); break;
        case 15: _t->freezeZ(); break;
        case 16: _t->fuseSelected(); break;
        case 17: _t->unfuseSelected(); break;
        case 18: _t->updateActions(); break;
        case 19: _t->onOptimizeChunkDone((*reinterpret_cast<std::add_pointer_t<Eigen::VectorXd>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Eigen::VectorXd>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<double>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[4]))); break;
        case 20: _t->onEnergyDone((*reinterpret_cast<std::add_pointer_t<Eigen::VectorXd>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<double>>(_a[2]))); break;
        case 21: _t->onForcesDone((*reinterpret_cast<std::add_pointer_t<Eigen::VectorXd>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<double>>(_a[2]))); break;
        case 22: _t->onWorkerReady(); break;
        default: ;
        }
    }
}

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

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

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