/****************************************************************************
** Meta object code from reading C++ file 'OPFResource.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 "../../../../src/ResourceObjects/OPFResource.h"
#include <QtGui/qtextcursor.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'OPFResource.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_ZN11OPFResourceE_t {};
} // unnamed namespace

template <> constexpr inline auto OPFResource::qt_create_metaobjectdata<qt_meta_tag_ZN11OPFResourceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "OPFResource",
        "TextChanging",
        "",
        "LoadedFromDisk",
        "SetDCMetadata",
        "QList<MetaEntry>",
        "metadata",
        "AddResource",
        "const Resource*",
        "resource",
        "RemoveResource",
        "BulkRemoveResources",
        "QList<Resource*>",
        "resources",
        "AddGuideSemanticCode",
        "HTMLResource*",
        "html_resource",
        "code",
        "toggle",
        "tgt_id",
        "SetResourceAsCoverImage",
        "ImageResource*",
        "image_resource",
        "UpdateSpineOrder",
        "QList<HTMLResource*>",
        "html_files",
        "ResourceRenamed",
        "old_full_path",
        "BulkResourcesRenamed",
        "QHash<QString,Resource*>",
        "renamedDict",
        "ResourceMoved",
        "BulkResourcesMoved",
        "movedDict",
        "UpdateManifestProperties",
        "UpdateManifestMediaTypes",
        "GetManifestPropertiesForResource",
        "GetManifestPropertiesForPaths",
        "QHash<QString,QString>",
        "RebaseManifestIDs"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'TextChanging'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'LoadedFromDisk'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'SetDCMetadata'
        QtMocHelpers::SlotData<void(const QList<MetaEntry> &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Slot 'AddResource'
        QtMocHelpers::SlotData<void(const Resource *)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Slot 'RemoveResource'
        QtMocHelpers::SlotData<void(const Resource *)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Slot 'BulkRemoveResources'
        QtMocHelpers::SlotData<void(const QList<Resource*>)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'AddGuideSemanticCode'
        QtMocHelpers::SlotData<void(HTMLResource *, QString, bool, QString)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 }, { QMetaType::QString, 17 }, { QMetaType::Bool, 18 }, { QMetaType::QString, 19 },
        }}),
        // Slot 'AddGuideSemanticCode'
        QtMocHelpers::SlotData<void(HTMLResource *, QString, bool)>(14, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 15, 16 }, { QMetaType::QString, 17 }, { QMetaType::Bool, 18 },
        }}),
        // Slot 'AddGuideSemanticCode'
        QtMocHelpers::SlotData<void(HTMLResource *, QString)>(14, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 15, 16 }, { QMetaType::QString, 17 },
        }}),
        // Slot 'SetResourceAsCoverImage'
        QtMocHelpers::SlotData<void(ImageResource *)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 22 },
        }}),
        // Slot 'UpdateSpineOrder'
        QtMocHelpers::SlotData<void(const QList<HTMLResource*>)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 24, 25 },
        }}),
        // Slot 'ResourceRenamed'
        QtMocHelpers::SlotData<void(const Resource *, QString)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 }, { QMetaType::QString, 27 },
        }}),
        // Slot 'BulkResourcesRenamed'
        QtMocHelpers::SlotData<void(const QHash<QString,Resource*>)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 29, 30 },
        }}),
        // Slot 'ResourceMoved'
        QtMocHelpers::SlotData<void(const Resource *, QString)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 }, { QMetaType::QString, 27 },
        }}),
        // Slot 'BulkResourcesMoved'
        QtMocHelpers::SlotData<void(const QHash<QString,Resource*>)>(32, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 29, 33 },
        }}),
        // Slot 'UpdateManifestProperties'
        QtMocHelpers::SlotData<void(const QList<Resource*>)>(34, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'UpdateManifestMediaTypes'
        QtMocHelpers::SlotData<void(const QList<Resource*>)>(35, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'GetManifestPropertiesForResource'
        QtMocHelpers::SlotData<QString(const Resource *)>(36, 2, QMC::AccessPublic, QMetaType::QString, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Slot 'GetManifestPropertiesForPaths'
        QtMocHelpers::SlotData<QHash<QString,QString>()>(37, 2, QMC::AccessPublic, 0x80000000 | 38),
        // Slot 'RebaseManifestIDs'
        QtMocHelpers::SlotData<void()>(39, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<OPFResource, qt_meta_tag_ZN11OPFResourceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject OPFResource::staticMetaObject = { {
    QMetaObject::SuperData::link<XMLResource::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11OPFResourceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11OPFResourceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11OPFResourceE_t>.metaTypes,
    nullptr
} };

void OPFResource::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<OPFResource *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->TextChanging(); break;
        case 1: _t->LoadedFromDisk(); break;
        case 2: _t->SetDCMetadata((*reinterpret_cast<std::add_pointer_t<QList<MetaEntry>>>(_a[1]))); break;
        case 3: _t->AddResource((*reinterpret_cast<std::add_pointer_t<const Resource*>>(_a[1]))); break;
        case 4: _t->RemoveResource((*reinterpret_cast<std::add_pointer_t<const Resource*>>(_a[1]))); break;
        case 5: _t->BulkRemoveResources((*reinterpret_cast<std::add_pointer_t<QList<Resource*>>>(_a[1]))); break;
        case 6: _t->AddGuideSemanticCode((*reinterpret_cast<std::add_pointer_t<HTMLResource*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4]))); break;
        case 7: _t->AddGuideSemanticCode((*reinterpret_cast<std::add_pointer_t<HTMLResource*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3]))); break;
        case 8: _t->AddGuideSemanticCode((*reinterpret_cast<std::add_pointer_t<HTMLResource*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 9: _t->SetResourceAsCoverImage((*reinterpret_cast<std::add_pointer_t<ImageResource*>>(_a[1]))); break;
        case 10: _t->UpdateSpineOrder((*reinterpret_cast<std::add_pointer_t<QList<HTMLResource*>>>(_a[1]))); break;
        case 11: _t->ResourceRenamed((*reinterpret_cast<std::add_pointer_t<const Resource*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 12: _t->BulkResourcesRenamed((*reinterpret_cast<std::add_pointer_t<QHash<QString,Resource*>>>(_a[1]))); break;
        case 13: _t->ResourceMoved((*reinterpret_cast<std::add_pointer_t<const Resource*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 14: _t->BulkResourcesMoved((*reinterpret_cast<std::add_pointer_t<QHash<QString,Resource*>>>(_a[1]))); break;
        case 15: _t->UpdateManifestProperties((*reinterpret_cast<std::add_pointer_t<QList<Resource*>>>(_a[1]))); break;
        case 16: _t->UpdateManifestMediaTypes((*reinterpret_cast<std::add_pointer_t<QList<Resource*>>>(_a[1]))); break;
        case 17: { QString _r = _t->GetManifestPropertiesForResource((*reinterpret_cast<std::add_pointer_t<const Resource*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 18: { QHash<QString,QString> _r = _t->GetManifestPropertiesForPaths();
            if (_a[0]) *reinterpret_cast<QHash<QString,QString>*>(_a[0]) = std::move(_r); }  break;
        case 19: _t->RebaseManifestIDs(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<Resource*> >(); break;
            }
            break;
        case 15:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<Resource*> >(); break;
            }
            break;
        case 16:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<Resource*> >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (OPFResource::*)()>(_a, &OPFResource::TextChanging, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (OPFResource::*)()>(_a, &OPFResource::LoadedFromDisk, 1))
            return;
    }
}

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

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

int OPFResource::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = XMLResource::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    return _id;
}

// SIGNAL 0
void OPFResource::TextChanging()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void OPFResource::LoadedFromDisk()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
