/****************************************************************************
** Meta object code from reading C++ file 'SetsWidget.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/ui/movie_sets/SetsWidget.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 'SetsWidget.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_ZN10SetsWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto SetsWidget::qt_create_metaobjectdata<qt_meta_tag_ZN10SetsWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SetsWidget",
        "setActionSaveEnabled",
        "",
        "MainWidgets",
        "sigJumpToMovie",
        "Movie*",
        "movie",
        "loadSets",
        "saveSet",
        "splitter",
        "QSplitter*",
        "onSetSelected",
        "clear",
        "onSortTitleChanged",
        "QTableWidgetItem*",
        "item",
        "onAddMovieSet",
        "onRemoveMovieSet",
        "onAddMovie",
        "onRemoveMovie",
        "chooseSetPoster",
        "chooseSetBackdrop",
        "onPreviewPoster",
        "onPreviewBackdrop",
        "showSetsContextMenu",
        "QPoint",
        "point",
        "onSetNameChanged",
        "onDownloadFinished",
        "DownloadManagerElement",
        "elem",
        "onJumpToMovie"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'setActionSaveEnabled'
        QtMocHelpers::SignalData<void(bool, MainWidgets)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 }, { 0x80000000 | 3, 2 },
        }}),
        // Signal 'sigJumpToMovie'
        QtMocHelpers::SignalData<void(Movie *)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Slot 'loadSets'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'saveSet'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'splitter'
        QtMocHelpers::SlotData<QSplitter *()>(9, 2, QMC::AccessPublic, 0x80000000 | 10),
        // Slot 'onSetSelected'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'clear'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onSortTitleChanged'
        QtMocHelpers::SlotData<void(QTableWidgetItem *)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
        // Slot 'onAddMovieSet'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onRemoveMovieSet'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onAddMovie'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onRemoveMovie'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'chooseSetPoster'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'chooseSetBackdrop'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onPreviewPoster'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onPreviewBackdrop'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'showSetsContextMenu'
        QtMocHelpers::SlotData<void(QPoint)>(24, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 25, 26 },
        }}),
        // Slot 'onSetNameChanged'
        QtMocHelpers::SlotData<void(QTableWidgetItem *)>(27, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
        // Slot 'onDownloadFinished'
        QtMocHelpers::SlotData<void(DownloadManagerElement)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 29, 30 },
        }}),
        // Slot 'onJumpToMovie'
        QtMocHelpers::SlotData<void(QTableWidgetItem *)>(31, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SetsWidget, qt_meta_tag_ZN10SetsWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject SetsWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10SetsWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10SetsWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10SetsWidgetE_t>.metaTypes,
    nullptr
} };

void SetsWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SetsWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->setActionSaveEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<MainWidgets>>(_a[2]))); break;
        case 1: _t->sigJumpToMovie((*reinterpret_cast<std::add_pointer_t<Movie*>>(_a[1]))); break;
        case 2: _t->loadSets(); break;
        case 3: _t->saveSet(); break;
        case 4: { QSplitter* _r = _t->splitter();
            if (_a[0]) *reinterpret_cast<QSplitter**>(_a[0]) = std::move(_r); }  break;
        case 5: _t->onSetSelected(); break;
        case 6: _t->clear(); break;
        case 7: _t->onSortTitleChanged((*reinterpret_cast<std::add_pointer_t<QTableWidgetItem*>>(_a[1]))); break;
        case 8: _t->onAddMovieSet(); break;
        case 9: _t->onRemoveMovieSet(); break;
        case 10: _t->onAddMovie(); break;
        case 11: _t->onRemoveMovie(); break;
        case 12: _t->chooseSetPoster(); break;
        case 13: _t->chooseSetBackdrop(); break;
        case 14: _t->onPreviewPoster(); break;
        case 15: _t->onPreviewBackdrop(); break;
        case 16: _t->showSetsContextMenu((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 17: _t->onSetNameChanged((*reinterpret_cast<std::add_pointer_t<QTableWidgetItem*>>(_a[1]))); break;
        case 18: _t->onDownloadFinished((*reinterpret_cast<std::add_pointer_t<DownloadManagerElement>>(_a[1]))); break;
        case 19: _t->onJumpToMovie((*reinterpret_cast<std::add_pointer_t<QTableWidgetItem*>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 18:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< DownloadManagerElement >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SetsWidget::*)(bool , MainWidgets )>(_a, &SetsWidget::setActionSaveEnabled, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SetsWidget::*)(Movie * )>(_a, &SetsWidget::sigJumpToMovie, 1))
            return;
    }
}

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

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

int SetsWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::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 SetsWidget::setActionSaveEnabled(bool _t1, MainWidgets _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void SetsWidget::sigJumpToMovie(Movie * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
QT_WARNING_POP
