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

template <> constexpr inline auto Avogadro::QtGui::ExtensionPlugin::qt_create_metaobjectdata<qt_meta_tag_ZN8Avogadro5QtGui15ExtensionPluginE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Avogadro::QtGui::ExtensionPlugin",
        "moleculeReady",
        "",
        "numberOfMolecules",
        "fileFormatsReady",
        "requestActiveTool",
        "toolName",
        "requestActiveDisplayTypes",
        "displayTypes",
        "registerCommand",
        "command",
        "description",
        "commandFinished",
        "message",
        "actionsChanged",
        "setMolecule",
        "QtGui::Molecule*",
        "mol",
        "readMolecule",
        "QtGui::Molecule&",
        "setScene",
        "Rendering::Scene*",
        "scene",
        "setCamera",
        "Rendering::Camera*",
        "camera",
        "setActiveWidget",
        "QWidget*",
        "widget",
        "handleCommand",
        "QVariantMap",
        "options"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'moleculeReady'
        QtMocHelpers::SignalData<void(int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Signal 'fileFormatsReady'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'requestActiveTool'
        QtMocHelpers::SignalData<void(QString)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 },
        }}),
        // Signal 'requestActiveDisplayTypes'
        QtMocHelpers::SignalData<void(QStringList)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 8 },
        }}),
        // Signal 'registerCommand'
        QtMocHelpers::SignalData<void(QString, QString)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 10 }, { QMetaType::QString, 11 },
        }}),
        // Signal 'commandFinished'
        QtMocHelpers::SignalData<void(const QString &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 13 },
        }}),
        // Signal 'commandFinished'
        QtMocHelpers::SignalData<void()>(12, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Signal 'actionsChanged'
        QtMocHelpers::SignalData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setMolecule'
        QtMocHelpers::SlotData<void(QtGui::Molecule *)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Slot 'readMolecule'
        QtMocHelpers::SlotData<bool(QtGui::Molecule &)>(18, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 19, 17 },
        }}),
        // Slot 'setScene'
        QtMocHelpers::SlotData<void(Rendering::Scene *)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 22 },
        }}),
        // Slot 'setCamera'
        QtMocHelpers::SlotData<void(Rendering::Camera *)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 24, 25 },
        }}),
        // Slot 'setActiveWidget'
        QtMocHelpers::SlotData<void(QWidget *)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 27, 28 },
        }}),
        // Slot 'handleCommand'
        QtMocHelpers::SlotData<bool(const QString &, const QVariantMap &)>(29, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 10 }, { 0x80000000 | 30, 31 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ExtensionPlugin, qt_meta_tag_ZN8Avogadro5QtGui15ExtensionPluginE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Avogadro::QtGui::ExtensionPlugin::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro5QtGui15ExtensionPluginE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro5QtGui15ExtensionPluginE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Avogadro5QtGui15ExtensionPluginE_t>.metaTypes,
    nullptr
} };

void Avogadro::QtGui::ExtensionPlugin::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ExtensionPlugin *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->moleculeReady((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 1: _t->fileFormatsReady(); break;
        case 2: _t->requestActiveTool((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->requestActiveDisplayTypes((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 4: _t->registerCommand((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 5: _t->commandFinished((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->commandFinished(); break;
        case 7: _t->actionsChanged(); break;
        case 8: _t->setMolecule((*reinterpret_cast<std::add_pointer_t<QtGui::Molecule*>>(_a[1]))); break;
        case 9: { 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 10: _t->setScene((*reinterpret_cast<std::add_pointer_t<Rendering::Scene*>>(_a[1]))); break;
        case 11: _t->setCamera((*reinterpret_cast<std::add_pointer_t<Rendering::Camera*>>(_a[1]))); break;
        case 12: _t->setActiveWidget((*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[1]))); break;
        case 13: { bool _r = _t->handleCommand((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ExtensionPlugin::*)(int )>(_a, &ExtensionPlugin::moleculeReady, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ExtensionPlugin::*)()>(_a, &ExtensionPlugin::fileFormatsReady, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ExtensionPlugin::*)(QString )>(_a, &ExtensionPlugin::requestActiveTool, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ExtensionPlugin::*)(QStringList )>(_a, &ExtensionPlugin::requestActiveDisplayTypes, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ExtensionPlugin::*)(QString , QString )>(_a, &ExtensionPlugin::registerCommand, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ExtensionPlugin::*)(const QString & )>(_a, &ExtensionPlugin::commandFinished, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (ExtensionPlugin::*)()>(_a, &ExtensionPlugin::actionsChanged, 7))
            return;
    }
}

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

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

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

// SIGNAL 0
void Avogadro::QtGui::ExtensionPlugin::moleculeReady(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Avogadro::QtGui::ExtensionPlugin::fileFormatsReady()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Avogadro::QtGui::ExtensionPlugin::requestActiveTool(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Avogadro::QtGui::ExtensionPlugin::requestActiveDisplayTypes(QStringList _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Avogadro::QtGui::ExtensionPlugin::registerCommand(QString _t1, QString _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2);
}

// SIGNAL 5
void Avogadro::QtGui::ExtensionPlugin::commandFinished(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 7
void Avogadro::QtGui::ExtensionPlugin::actionsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}
QT_WARNING_POP
