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

#include "../../../texmaker-6.0.1/src/qpdfdocument.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 'qpdfdocument.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.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_ZN12QPdfDocumentE_t {};
} // unnamed namespace

template <> constexpr inline auto QPdfDocument::qt_create_metaobjectdata<qt_meta_tag_ZN12QPdfDocumentE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QPdfDocument",
        "passwordChanged",
        "",
        "passwordRequired",
        "statusChanged",
        "QPdfDocument::Status",
        "status",
        "pageCountChanged",
        "pageCount",
        "_q_tryLoadingWithSizeFromContentHeader",
        "_q_copyFromSequentialSourceDevice",
        "password",
        "Status",
        "Null",
        "Loading",
        "Ready",
        "Unloading",
        "Error",
        "DocumentError",
        "NoError",
        "UnknownError",
        "FileNotFoundError",
        "InvalidFileFormatError",
        "IncorrectPasswordError",
        "UnsupportedSecuritySchemeError",
        "MetaDataField",
        "Title",
        "Subject",
        "Author",
        "Keywords",
        "Producer",
        "Creator",
        "CreationDate",
        "ModificationDate"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'passwordChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'passwordRequired'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'statusChanged'
        QtMocHelpers::SignalData<void(QPdfDocument::Status)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Signal 'pageCountChanged'
        QtMocHelpers::SignalData<void(int)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 8 },
        }}),
        // Slot '_q_tryLoadingWithSizeFromContentHeader'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot '_q_copyFromSequentialSourceDevice'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'pageCount'
        QtMocHelpers::PropertyData<int>(8, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Final, 3),
        // property 'password'
        QtMocHelpers::PropertyData<QString>(11, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final, 0),
        // property 'status'
        QtMocHelpers::PropertyData<enum Status>(6, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Final, 2),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Status'
        QtMocHelpers::EnumData<enum Status>(12, 12, QMC::EnumFlags{}).add({
            {   13, Status::Null },
            {   14, Status::Loading },
            {   15, Status::Ready },
            {   16, Status::Unloading },
            {   17, Status::Error },
        }),
        // enum 'DocumentError'
        QtMocHelpers::EnumData<enum DocumentError>(18, 18, QMC::EnumFlags{}).add({
            {   19, DocumentError::NoError },
            {   20, DocumentError::UnknownError },
            {   21, DocumentError::FileNotFoundError },
            {   22, DocumentError::InvalidFileFormatError },
            {   23, DocumentError::IncorrectPasswordError },
            {   24, DocumentError::UnsupportedSecuritySchemeError },
        }),
        // enum 'MetaDataField'
        QtMocHelpers::EnumData<enum MetaDataField>(25, 25, QMC::EnumFlags{}).add({
            {   26, MetaDataField::Title },
            {   27, MetaDataField::Subject },
            {   28, MetaDataField::Author },
            {   29, MetaDataField::Keywords },
            {   30, MetaDataField::Producer },
            {   31, MetaDataField::Creator },
            {   32, MetaDataField::CreationDate },
            {   33, MetaDataField::ModificationDate },
        }),
    };
    return QtMocHelpers::metaObjectData<QPdfDocument, qt_meta_tag_ZN12QPdfDocumentE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QPdfDocument::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12QPdfDocumentE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12QPdfDocumentE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12QPdfDocumentE_t>.metaTypes,
    nullptr
} };

void QPdfDocument::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QPdfDocument *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->passwordChanged(); break;
        case 1: _t->passwordRequired(); break;
        case 2: _t->statusChanged((*reinterpret_cast<std::add_pointer_t<QPdfDocument::Status>>(_a[1]))); break;
        case 3: _t->pageCountChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 4: _t->d->_q_tryLoadingWithSizeFromContentHeader(); break;
        case 5: _t->d->_q_copyFromSequentialSourceDevice(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QPdfDocument::*)()>(_a, &QPdfDocument::passwordChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPdfDocument::*)()>(_a, &QPdfDocument::passwordRequired, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPdfDocument::*)(QPdfDocument::Status )>(_a, &QPdfDocument::statusChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPdfDocument::*)(int )>(_a, &QPdfDocument::pageCountChanged, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int*>(_v) = _t->pageCount(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->password(); break;
        case 2: *reinterpret_cast<enum Status*>(_v) = _t->status(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setPassword(*reinterpret_cast<QString*>(_v)); break;
        default: break;
        }
    }
}

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

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

int QPdfDocument::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 < 6)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 6)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 6;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    return _id;
}

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

// SIGNAL 1
void QPdfDocument::passwordRequired()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void QPdfDocument::statusChanged(QPdfDocument::Status _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void QPdfDocument::pageCountChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
