/****************************************************************************
** Meta object code from reading C++ file 'MainWindow.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 "../../../../qt/MainWindow.h"
#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 'MainWindow.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_ZN10MainWindowE_t {};
} // unnamed namespace

template <> constexpr inline auto MainWindow::qt_create_metaobjectdata<qt_meta_tag_ZN10MainWindowE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MainWindow",
        "startAll",
        "",
        "startSelected",
        "startSelectedNow",
        "pauseAll",
        "pauseSelected",
        "removeSelected",
        "deleteSelected",
        "verifySelected",
        "queueMoveTop",
        "queueMoveUp",
        "queueMoveDown",
        "queueMoveBottom",
        "reannounceSelected",
        "setToolbarVisible",
        "setFilterbarVisible",
        "setStatusbarVisible",
        "setCompactView",
        "wrongAuthentication",
        "openSession",
        "addTorrents",
        "filenames",
        "copyMagnetLinkToClipboard",
        "dataReadProgress",
        "dataSendProgress",
        "newTorrent",
        "onNetworkResponse",
        "QNetworkReply::NetworkError",
        "code",
        "message",
        "onRefreshTimer",
        "onSessionSourceChanged",
        "onSetPrefs",
        "onSortModeChanged",
        "const QAction*",
        "action",
        "onStatsModeChanged",
        "openAbout",
        "openDonate",
        "openFolder",
        "openHelp",
        "openPreferences",
        "openProperties",
        "openStats",
        "openTorrent",
        "openURL",
        "refreshPref",
        "key",
        "removeTorrents",
        "delete_files",
        "setLocation",
        "setSortAscendingPref",
        "toggleSpeedMode",
        "toggleWindows",
        "do_show",
        "trayActivated",
        "QSystemTrayIcon::ActivationReason"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'startAll'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'startSelected'
        QtMocHelpers::SlotData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'startSelectedNow'
        QtMocHelpers::SlotData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'pauseAll'
        QtMocHelpers::SlotData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'pauseSelected'
        QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'removeSelected'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'deleteSelected'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'verifySelected'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'queueMoveTop'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'queueMoveUp'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'queueMoveDown'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'queueMoveBottom'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'reannounceSelected'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setToolbarVisible'
        QtMocHelpers::SlotData<void(bool)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'setFilterbarVisible'
        QtMocHelpers::SlotData<void(bool)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'setStatusbarVisible'
        QtMocHelpers::SlotData<void(bool)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'setCompactView'
        QtMocHelpers::SlotData<void(bool)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'wrongAuthentication'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'openSession'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'addTorrents'
        QtMocHelpers::SlotData<void(QStringList const &)>(21, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QStringList, 22 },
        }}),
        // Slot 'copyMagnetLinkToClipboard'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'dataReadProgress'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'dataSendProgress'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'newTorrent'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onNetworkResponse'
        QtMocHelpers::SlotData<void(QNetworkReply::NetworkError, QString const &)>(27, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 28, 29 }, { QMetaType::QString, 30 },
        }}),
        // Slot 'onRefreshTimer'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onSessionSourceChanged'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onSetPrefs'
        QtMocHelpers::SlotData<void()>(33, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onSetPrefs'
        QtMocHelpers::SlotData<void(bool)>(33, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'onSortModeChanged'
        QtMocHelpers::SlotData<void(QAction const *)>(34, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 35, 36 },
        }}),
        // Slot 'onStatsModeChanged'
        QtMocHelpers::SlotData<void(QAction const *)>(37, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 35, 36 },
        }}),
        // Slot 'openAbout'
        QtMocHelpers::SlotData<void()>(38, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openDonate'
        QtMocHelpers::SlotData<void() const>(39, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openFolder'
        QtMocHelpers::SlotData<void()>(40, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openHelp'
        QtMocHelpers::SlotData<void() const>(41, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openPreferences'
        QtMocHelpers::SlotData<void()>(42, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openProperties'
        QtMocHelpers::SlotData<void()>(43, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openStats'
        QtMocHelpers::SlotData<void()>(44, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openTorrent'
        QtMocHelpers::SlotData<void()>(45, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openURL'
        QtMocHelpers::SlotData<void()>(46, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'refreshPref'
        QtMocHelpers::SlotData<void(int)>(47, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 48 },
        }}),
        // Slot 'removeTorrents'
        QtMocHelpers::SlotData<void(bool const)>(49, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 50 },
        }}),
        // Slot 'setLocation'
        QtMocHelpers::SlotData<void()>(51, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'setSortAscendingPref'
        QtMocHelpers::SlotData<void(bool)>(52, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'toggleSpeedMode'
        QtMocHelpers::SlotData<void()>(53, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'toggleWindows'
        QtMocHelpers::SlotData<void(bool)>(54, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 55 },
        }}),
        // Slot 'trayActivated'
        QtMocHelpers::SlotData<void(QSystemTrayIcon::ActivationReason)>(56, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 57, 2 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<MainWindow, qt_meta_tag_ZN10MainWindowE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject MainWindow::staticMetaObject = { {
    QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MainWindowE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MainWindowE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10MainWindowE_t>.metaTypes,
    nullptr
} };

void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MainWindow *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->startAll(); break;
        case 1: _t->startSelected(); break;
        case 2: _t->startSelectedNow(); break;
        case 3: _t->pauseAll(); break;
        case 4: _t->pauseSelected(); break;
        case 5: _t->removeSelected(); break;
        case 6: _t->deleteSelected(); break;
        case 7: _t->verifySelected(); break;
        case 8: _t->queueMoveTop(); break;
        case 9: _t->queueMoveUp(); break;
        case 10: _t->queueMoveDown(); break;
        case 11: _t->queueMoveBottom(); break;
        case 12: _t->reannounceSelected(); break;
        case 13: _t->setToolbarVisible((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 14: _t->setFilterbarVisible((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 15: _t->setStatusbarVisible((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 16: _t->setCompactView((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 17: _t->wrongAuthentication(); break;
        case 18: _t->openSession(); break;
        case 19: _t->addTorrents((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 20: _t->copyMagnetLinkToClipboard(); break;
        case 21: _t->dataReadProgress(); break;
        case 22: _t->dataSendProgress(); break;
        case 23: _t->newTorrent(); break;
        case 24: _t->onNetworkResponse((*reinterpret_cast<std::add_pointer_t<QNetworkReply::NetworkError>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 25: _t->onRefreshTimer(); break;
        case 26: _t->onSessionSourceChanged(); break;
        case 27: _t->onSetPrefs(); break;
        case 28: _t->onSetPrefs((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 29: _t->onSortModeChanged((*reinterpret_cast<std::add_pointer_t<const QAction*>>(_a[1]))); break;
        case 30: _t->onStatsModeChanged((*reinterpret_cast<std::add_pointer_t<const QAction*>>(_a[1]))); break;
        case 31: _t->openAbout(); break;
        case 32: _t->openDonate(); break;
        case 33: _t->openFolder(); break;
        case 34: _t->openHelp(); break;
        case 35: _t->openPreferences(); break;
        case 36: _t->openProperties(); break;
        case 37: _t->openStats(); break;
        case 38: _t->openTorrent(); break;
        case 39: _t->openURL(); break;
        case 40: _t->refreshPref((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 41: _t->removeTorrents((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 42: _t->setLocation(); break;
        case 43: _t->setSortAscendingPref((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 44: _t->toggleSpeedMode(); break;
        case 45: _t->toggleWindows((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 46: _t->trayActivated((*reinterpret_cast<std::add_pointer_t<QSystemTrayIcon::ActivationReason>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 24:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QNetworkReply::NetworkError >(); break;
            }
            break;
        }
    }
}

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

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

int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 47)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 47;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 47)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 47;
    }
    return _id;
}
QT_WARNING_POP
