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

#include "../../../ImageLounge/src/DkCore/DkPluginInterface.h"
#include <QtGui/qtextcursor.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 'DkPluginInterface.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.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_ZN3nmc16DkPluginViewPortE_t {};
} // unnamed namespace

template <> constexpr inline auto nmc::DkPluginViewPort::qt_create_metaobjectdata<qt_meta_tag_ZN3nmc16DkPluginViewPortE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "nmc::DkPluginViewPort",
        "closePlugin",
        "",
        "askForSaving",
        "loadFile",
        "filePath",
        "loadImage",
        "QImage",
        "image",
        "showInfo",
        "msg"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'closePlugin'
        QtMocHelpers::SignalData<void(bool) const>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Signal 'closePlugin'
        QtMocHelpers::SignalData<void() const>(1, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Signal 'loadFile'
        QtMocHelpers::SignalData<void(const QString &) const>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
        // Signal 'loadImage'
        QtMocHelpers::SignalData<void(const QImage &) const>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Signal 'showInfo'
        QtMocHelpers::SignalData<void(const QString &) const>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 10 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DkPluginViewPort, qt_meta_tag_ZN3nmc16DkPluginViewPortE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject nmc::DkPluginViewPort::staticMetaObject = { {
    QMetaObject::SuperData::link<DkWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3nmc16DkPluginViewPortE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3nmc16DkPluginViewPortE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3nmc16DkPluginViewPortE_t>.metaTypes,
    nullptr
} };

void nmc::DkPluginViewPort::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DkPluginViewPort *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->closePlugin((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->closePlugin(); break;
        case 2: _t->loadFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->loadImage((*reinterpret_cast<std::add_pointer_t<QImage>>(_a[1]))); break;
        case 4: _t->showInfo((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DkPluginViewPort::*)(bool ) const>(_a, &DkPluginViewPort::closePlugin, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DkPluginViewPort::*)(const QString & ) const>(_a, &DkPluginViewPort::loadFile, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (DkPluginViewPort::*)(const QImage & ) const>(_a, &DkPluginViewPort::loadImage, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (DkPluginViewPort::*)(const QString & ) const>(_a, &DkPluginViewPort::showInfo, 4))
            return;
    }
}

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

void *nmc::DkPluginViewPort::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3nmc16DkPluginViewPortE_t>.strings))
        return static_cast<void*>(this);
    return DkWidget::qt_metacast(_clname);
}

int nmc::DkPluginViewPort::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = DkWidget::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 nmc::DkPluginViewPort::closePlugin(bool _t1)const
{
    QMetaObject::activate<void>(const_cast< nmc::DkPluginViewPort *>(this), &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 2
void nmc::DkPluginViewPort::loadFile(const QString & _t1)const
{
    QMetaObject::activate<void>(const_cast< nmc::DkPluginViewPort *>(this), &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void nmc::DkPluginViewPort::loadImage(const QImage & _t1)const
{
    QMetaObject::activate<void>(const_cast< nmc::DkPluginViewPort *>(this), &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void nmc::DkPluginViewPort::showInfo(const QString & _t1)const
{
    QMetaObject::activate<void>(const_cast< nmc::DkPluginViewPort *>(this), &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
