/****************************************************************************
** Meta object code from reading C++ file 'contentmanager.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 "src/contentmanager.h"
#include <QtNetwork/QSslPreSharedKeyAuthenticator>
#include <QtNetwork/QSslError>
#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 'contentmanager.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_ZN14ContentManagerE_t {};
} // unnamed namespace

template <> constexpr inline auto ContentManager::qt_create_metaobjectdata<qt_meta_tag_ZN14ContentManagerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ContentManager",
        "filterParamsChanged",
        "",
        "booksChanged",
        "oneBookChanged",
        "bookRemoved",
        "downloadsChanged",
        "currentLangChanged",
        "pendingRequest",
        "categoriesLoaded",
        "languagesLoaded",
        "LanguageList",
        "localChanged",
        "getTranslations",
        "keys",
        "getBookInfos",
        "BookInfo",
        "id",
        "getBookState",
        "BookState",
        "openBook",
        "openBookPreview",
        "downloadBook",
        "updateLibrary",
        "setSearch",
        "search",
        "setSortBy",
        "sortBy",
        "sortOrderAsc",
        "eraseBook",
        "updateRemoteLibrary",
        "content",
        "updateLanguages",
        "updateCategories",
        "pauseBook",
        "QModelIndex",
        "index",
        "resumeBook",
        "cancelBook",
        "onCustomContextMenu",
        "QPoint",
        "point",
        "openBookWithIndex",
        "updateDownload",
        "bookId",
        "DownloadInfo",
        "downloadInfo",
        "downloadWasCancelled",
        "handleError",
        "errSummary",
        "errDetails",
        "isLocal"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'filterParamsChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'booksChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'oneBookChanged'
        QtMocHelpers::SignalData<void(const QString &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Signal 'bookRemoved'
        QtMocHelpers::SignalData<void(const QString &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Signal 'downloadsChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'currentLangChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'pendingRequest'
        QtMocHelpers::SignalData<void(const bool)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Signal 'categoriesLoaded'
        QtMocHelpers::SignalData<void(QStringList)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 2 },
        }}),
        // Signal 'languagesLoaded'
        QtMocHelpers::SignalData<void(LanguageList)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 2 },
        }}),
        // Signal 'localChanged'
        QtMocHelpers::SignalData<void(const bool)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'getTranslations'
        QtMocHelpers::SlotData<QStringList(const QStringList &)>(13, 2, QMC::AccessPublic, QMetaType::QStringList, {{
            { QMetaType::QStringList, 14 },
        }}),
        // Slot 'getBookInfos'
        QtMocHelpers::SlotData<BookInfo(QString, const QStringList &)>(15, 2, QMC::AccessPublic, 0x80000000 | 16, {{
            { QMetaType::QString, 17 }, { QMetaType::QStringList, 14 },
        }}),
        // Slot 'getBookState'
        QtMocHelpers::SlotData<enum BookState(QString)>(18, 2, QMC::AccessPublic, 0x80000000 | 19, {{
            { QMetaType::QString, 17 },
        }}),
        // Slot 'openBook'
        QtMocHelpers::SlotData<void(const QString &)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 17 },
        }}),
        // Slot 'openBookPreview'
        QtMocHelpers::SlotData<void(const QString &)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 17 },
        }}),
        // Slot 'downloadBook'
        QtMocHelpers::SlotData<void(const QString &)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 17 },
        }}),
        // Slot 'updateLibrary'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setSearch'
        QtMocHelpers::SlotData<void(const QString &)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 25 },
        }}),
        // Slot 'setSortBy'
        QtMocHelpers::SlotData<void(const QString &, const bool)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 27 }, { QMetaType::Bool, 28 },
        }}),
        // Slot 'eraseBook'
        QtMocHelpers::SlotData<void(const QString &)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 17 },
        }}),
        // Slot 'updateRemoteLibrary'
        QtMocHelpers::SlotData<void(const QString &)>(30, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 31 },
        }}),
        // Slot 'updateLanguages'
        QtMocHelpers::SlotData<void(const QString &)>(32, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 31 },
        }}),
        // Slot 'updateCategories'
        QtMocHelpers::SlotData<void(const QString &)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 31 },
        }}),
        // Slot 'pauseBook'
        QtMocHelpers::SlotData<void(const QString &, QModelIndex)>(34, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 17 }, { 0x80000000 | 35, 36 },
        }}),
        // Slot 'resumeBook'
        QtMocHelpers::SlotData<void(const QString &, QModelIndex)>(37, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 17 }, { 0x80000000 | 35, 36 },
        }}),
        // Slot 'cancelBook'
        QtMocHelpers::SlotData<void(const QString &)>(38, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 17 },
        }}),
        // Slot 'onCustomContextMenu'
        QtMocHelpers::SlotData<void(const QPoint &)>(39, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 40, 41 },
        }}),
        // Slot 'openBookWithIndex'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(42, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 35, 36 },
        }}),
        // Slot 'updateDownload'
        QtMocHelpers::SlotData<void(QString, const DownloadInfo &)>(43, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 44 }, { 0x80000000 | 45, 46 },
        }}),
        // Slot 'downloadWasCancelled'
        QtMocHelpers::SlotData<void(const QString &)>(47, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 17 },
        }}),
        // Slot 'handleError'
        QtMocHelpers::SlotData<void(QString, QString)>(48, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 49 }, { QMetaType::QString, 50 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'isLocal'
        QtMocHelpers::PropertyData<bool>(51, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable, 9),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ContentManager, qt_meta_tag_ZN14ContentManagerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ContentManager::staticMetaObject = { {
    QMetaObject::SuperData::link<DownloadManager::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14ContentManagerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14ContentManagerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14ContentManagerE_t>.metaTypes,
    nullptr
} };

void ContentManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ContentManager *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->filterParamsChanged(); break;
        case 1: _t->booksChanged(); break;
        case 2: _t->oneBookChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->bookRemoved((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->downloadsChanged(); break;
        case 5: _t->currentLangChanged(); break;
        case 6: _t->pendingRequest((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 7: _t->categoriesLoaded((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 8: _t->languagesLoaded((*reinterpret_cast<std::add_pointer_t<LanguageList>>(_a[1]))); break;
        case 9: _t->localChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 10: { QStringList _r = _t->getTranslations((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 11: { BookInfo _r = _t->getBookInfos((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[2])));
            if (_a[0]) *reinterpret_cast<BookInfo*>(_a[0]) = std::move(_r); }  break;
        case 12: { enum BookState _r = _t->getBookState((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<enum BookState*>(_a[0]) = std::move(_r); }  break;
        case 13: _t->openBook((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 14: _t->openBookPreview((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 15: _t->downloadBook((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 16: _t->updateLibrary(); break;
        case 17: _t->setSearch((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 18: _t->setSortBy((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 19: _t->eraseBook((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 20: _t->updateRemoteLibrary((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 21: _t->updateLanguages((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 22: _t->updateCategories((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 23: _t->pauseBook((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[2]))); break;
        case 24: _t->resumeBook((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[2]))); break;
        case 25: _t->cancelBook((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 26: _t->onCustomContextMenu((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 27: _t->openBookWithIndex((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 28: _t->updateDownload((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<DownloadInfo>>(_a[2]))); break;
        case 29: _t->downloadWasCancelled((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 30: _t->handleError((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ContentManager::*)()>(_a, &ContentManager::filterParamsChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContentManager::*)()>(_a, &ContentManager::booksChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContentManager::*)(const QString & )>(_a, &ContentManager::oneBookChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContentManager::*)(const QString & )>(_a, &ContentManager::bookRemoved, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContentManager::*)()>(_a, &ContentManager::downloadsChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContentManager::*)()>(_a, &ContentManager::currentLangChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContentManager::*)(const bool )>(_a, &ContentManager::pendingRequest, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContentManager::*)(QStringList )>(_a, &ContentManager::categoriesLoaded, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContentManager::*)(LanguageList )>(_a, &ContentManager::languagesLoaded, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (ContentManager::*)(const bool )>(_a, &ContentManager::localChanged, 9))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isLocal(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setLocal(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int ContentManager::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = DownloadManager::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 31)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 31;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 31)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 31;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    return _id;
}

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

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

// SIGNAL 2
void ContentManager::oneBookChanged(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void ContentManager::bookRemoved(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void ContentManager::downloadsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void ContentManager::currentLangChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void ContentManager::pendingRequest(const bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void ContentManager::categoriesLoaded(QStringList _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void ContentManager::languagesLoaded(LanguageList _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}

// SIGNAL 9
void ContentManager::localChanged(const bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1);
}
QT_WARNING_POP
