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

template <> constexpr inline auto Session::qt_create_metaobjectdata<qt_meta_tag_ZN7SessionE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Session",
        "sourceChanged",
        "",
        "portTested",
        "std::optional<bool>",
        "status",
        "PortTestIpProtocol",
        "ip_protocol",
        "statsUpdated",
        "sessionUpdated",
        "blocklistUpdated",
        "torrentsUpdated",
        "tr_variant*",
        "torrent_list",
        "complete_list",
        "torrentsRemoved",
        "sessionCalled",
        "Tag",
        "dataReadProgress",
        "dataSendProgress",
        "networkResponse",
        "QNetworkReply::NetworkError",
        "code",
        "message",
        "httpAuthenticationRequired",
        "addTorrent",
        "AddData",
        "add_me",
        "launchWebInterface",
        "queueMoveBottom",
        "torrent_ids_t",
        "torrentIds",
        "queueMoveDown",
        "queueMoveTop",
        "queueMoveUp",
        "refreshSessionInfo",
        "refreshSessionStats",
        "removeTorrents",
        "torrent_ids",
        "delete_files",
        "updatePref",
        "key",
        "onDuplicatesTimer"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'sourceChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'portTested'
        QtMocHelpers::SignalData<void(std::optional<bool>, enum PortTestIpProtocol)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 }, { 0x80000000 | 6, 7 },
        }}),
        // Signal 'statsUpdated'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sessionUpdated'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'blocklistUpdated'
        QtMocHelpers::SignalData<void(int)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Signal 'torrentsUpdated'
        QtMocHelpers::SignalData<void(tr_variant *, bool)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 }, { QMetaType::Bool, 14 },
        }}),
        // Signal 'torrentsRemoved'
        QtMocHelpers::SignalData<void(tr_variant *)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Signal 'sessionCalled'
        QtMocHelpers::SignalData<void(Tag)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 17, 2 },
        }}),
        // Signal 'dataReadProgress'
        QtMocHelpers::SignalData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'dataSendProgress'
        QtMocHelpers::SignalData<void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'networkResponse'
        QtMocHelpers::SignalData<void(QNetworkReply::NetworkError, QString const &)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 22 }, { QMetaType::QString, 23 },
        }}),
        // Signal 'httpAuthenticationRequired'
        QtMocHelpers::SignalData<void()>(24, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'addTorrent'
        QtMocHelpers::SlotData<void(AddData)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 26, 27 },
        }}),
        // Slot 'launchWebInterface'
        QtMocHelpers::SlotData<void() const>(28, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'queueMoveBottom'
        QtMocHelpers::SlotData<void(torrent_ids_t const &)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 30, 31 },
        }}),
        // Slot 'queueMoveBottom'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'queueMoveDown'
        QtMocHelpers::SlotData<void(torrent_ids_t const &)>(32, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 30, 31 },
        }}),
        // Slot 'queueMoveDown'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'queueMoveTop'
        QtMocHelpers::SlotData<void(torrent_ids_t const &)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 30, 31 },
        }}),
        // Slot 'queueMoveTop'
        QtMocHelpers::SlotData<void()>(33, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'queueMoveUp'
        QtMocHelpers::SlotData<void(torrent_ids_t const &)>(34, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 30, 31 },
        }}),
        // Slot 'queueMoveUp'
        QtMocHelpers::SlotData<void()>(34, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'refreshSessionInfo'
        QtMocHelpers::SlotData<void()>(35, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'refreshSessionStats'
        QtMocHelpers::SlotData<void()>(36, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'removeTorrents'
        QtMocHelpers::SlotData<void(torrent_ids_t const &, bool)>(37, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 30, 38 }, { QMetaType::Bool, 39 },
        }}),
        // Slot 'removeTorrents'
        QtMocHelpers::SlotData<void(torrent_ids_t const &)>(37, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 30, 38 },
        }}),
        // Slot 'updatePref'
        QtMocHelpers::SlotData<void(int)>(40, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 41 },
        }}),
        // Slot 'onDuplicatesTimer'
        QtMocHelpers::SlotData<void()>(42, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Session, qt_meta_tag_ZN7SessionE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Session::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7SessionE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7SessionE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN7SessionE_t>.metaTypes,
    nullptr
} };

void Session::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Session *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->sourceChanged(); break;
        case 1: _t->portTested((*reinterpret_cast<std::add_pointer_t<std::optional<bool>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<enum PortTestIpProtocol>>(_a[2]))); break;
        case 2: _t->statsUpdated(); break;
        case 3: _t->sessionUpdated(); break;
        case 4: _t->blocklistUpdated((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 5: _t->torrentsUpdated((*reinterpret_cast<std::add_pointer_t<tr_variant*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 6: _t->torrentsRemoved((*reinterpret_cast<std::add_pointer_t<tr_variant*>>(_a[1]))); break;
        case 7: _t->sessionCalled((*reinterpret_cast<std::add_pointer_t<Tag>>(_a[1]))); break;
        case 8: _t->dataReadProgress(); break;
        case 9: _t->dataSendProgress(); break;
        case 10: _t->networkResponse((*reinterpret_cast<std::add_pointer_t<QNetworkReply::NetworkError>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 11: _t->httpAuthenticationRequired(); break;
        case 12: _t->addTorrent((*reinterpret_cast<std::add_pointer_t<AddData>>(_a[1]))); break;
        case 13: _t->launchWebInterface(); break;
        case 14: _t->queueMoveBottom((*reinterpret_cast<std::add_pointer_t<torrent_ids_t>>(_a[1]))); break;
        case 15: _t->queueMoveBottom(); break;
        case 16: _t->queueMoveDown((*reinterpret_cast<std::add_pointer_t<torrent_ids_t>>(_a[1]))); break;
        case 17: _t->queueMoveDown(); break;
        case 18: _t->queueMoveTop((*reinterpret_cast<std::add_pointer_t<torrent_ids_t>>(_a[1]))); break;
        case 19: _t->queueMoveTop(); break;
        case 20: _t->queueMoveUp((*reinterpret_cast<std::add_pointer_t<torrent_ids_t>>(_a[1]))); break;
        case 21: _t->queueMoveUp(); break;
        case 22: _t->refreshSessionInfo(); break;
        case 23: _t->refreshSessionStats(); break;
        case 24: _t->removeTorrents((*reinterpret_cast<std::add_pointer_t<torrent_ids_t>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 25: _t->removeTorrents((*reinterpret_cast<std::add_pointer_t<torrent_ids_t>>(_a[1]))); break;
        case 26: _t->updatePref((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 27: _t->onDuplicatesTimer(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 10:
            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;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Session::*)()>(_a, &Session::sourceChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Session::*)(std::optional<bool> , PortTestIpProtocol )>(_a, &Session::portTested, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Session::*)()>(_a, &Session::statsUpdated, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Session::*)()>(_a, &Session::sessionUpdated, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Session::*)(int )>(_a, &Session::blocklistUpdated, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Session::*)(tr_variant * , bool )>(_a, &Session::torrentsUpdated, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Session::*)(tr_variant * )>(_a, &Session::torrentsRemoved, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (Session::*)(Tag )>(_a, &Session::sessionCalled, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (Session::*)()>(_a, &Session::dataReadProgress, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (Session::*)()>(_a, &Session::dataSendProgress, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (Session::*)(QNetworkReply::NetworkError , QString const & )>(_a, &Session::networkResponse, 10))
            return;
        if (QtMocHelpers::indexOfMethod<void (Session::*)()>(_a, &Session::httpAuthenticationRequired, 11))
            return;
    }
}

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

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

int Session::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 < 28)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 28;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 28)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 28;
    }
    return _id;
}

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

// SIGNAL 1
void Session::portTested(std::optional<bool> _t1, PortTestIpProtocol _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void Session::statsUpdated()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Session::sessionUpdated()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void Session::blocklistUpdated(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void Session::torrentsUpdated(tr_variant * _t1, bool _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1, _t2);
}

// SIGNAL 6
void Session::torrentsRemoved(tr_variant * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void Session::sessionCalled(Tag _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void Session::dataReadProgress()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void Session::dataSendProgress()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void Session::networkResponse(QNetworkReply::NetworkError _t1, QString const & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 10, nullptr, _t1, _t2);
}

// SIGNAL 11
void Session::httpAuthenticationRequired()
{
    QMetaObject::activate(this, &staticMetaObject, 11, nullptr);
}
QT_WARNING_POP
