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

#include "../../../pdfmixtool-v1.2.2/src/operations/merge.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 'merge.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.2. 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_ZN5MergeE_t {};
} // unnamed namespace

template <> constexpr inline auto Merge::qt_create_metaobjectdata<qt_meta_tag_ZN5MergeE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Merge",
        "update_multipage_profiles",
        "",
        "profile_created",
        "index",
        "new_profile_triggered",
        "load_json_files_list",
        "filename",
        "load_files_list_pressed",
        "save_files_list_pressed",
        "move_up",
        "move_down",
        "remove_pdf_file",
        "edit_menu_activated",
        "view_menu_activated",
        "update_output_pages_count",
        "generate_pdf_button_pressed"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'update_multipage_profiles'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'profile_created'
        QtMocHelpers::SlotData<void(int)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 4 },
        }}),
        // Slot 'new_profile_triggered'
        QtMocHelpers::SlotData<void(int)>(5, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Int, 4 },
        }}),
        // Slot 'load_json_files_list'
        QtMocHelpers::SlotData<bool(const QString &)>(6, 2, QMC::AccessProtected, QMetaType::Bool, {{
            { QMetaType::QString, 7 },
        }}),
        // Slot 'load_files_list_pressed'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'save_files_list_pressed'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'move_up'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'move_down'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'remove_pdf_file'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'edit_menu_activated'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'view_menu_activated'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'update_output_pages_count'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'generate_pdf_button_pressed'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Merge, qt_meta_tag_ZN5MergeE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Merge::staticMetaObject = { {
    QMetaObject::SuperData::link<AbstractOperation::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5MergeE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5MergeE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5MergeE_t>.metaTypes,
    nullptr
} };

void Merge::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Merge *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->update_multipage_profiles(); break;
        case 1: _t->profile_created((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 2: _t->new_profile_triggered((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: { bool _r = _t->load_json_files_list((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 4: _t->load_files_list_pressed(); break;
        case 5: _t->save_files_list_pressed(); break;
        case 6: _t->move_up(); break;
        case 7: _t->move_down(); break;
        case 8: _t->remove_pdf_file(); break;
        case 9: _t->edit_menu_activated(); break;
        case 10: _t->view_menu_activated(); break;
        case 11: _t->update_output_pages_count(); break;
        case 12: _t->generate_pdf_button_pressed(); break;
        default: ;
        }
    }
}

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

void *Merge::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5MergeE_t>.strings))
        return static_cast<void*>(this);
    return AbstractOperation::qt_metacast(_clname);
}

int Merge::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = AbstractOperation::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 13;
    }
    return _id;
}
QT_WARNING_POP
