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

template <> constexpr inline auto Application::qt_create_metaobjectdata<qt_meta_tag_ZN11ApplicationE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Application",
        "faviconsChanged",
        "",
        "addTorrent",
        "AddData",
        "addWatchdirTorrent",
        "filename",
        "onSessionSourceChanged",
        "onTorrentsAdded",
        "torrent_ids_t",
        "torrent_ids",
        "onTorrentsCompleted",
        "onTorrentsEdited",
        "onTorrentsNeedInfo",
        "pruneInternedStrings",
        "refreshPref",
        "key",
        "refreshTorrents",
        "saveGeometry",
        "onNotificationActionInvoked",
        "notification_id",
        "action_key"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'faviconsChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'addTorrent'
        QtMocHelpers::SlotData<void(AddData) const>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 2 },
        }}),
        // Slot 'addWatchdirTorrent'
        QtMocHelpers::SlotData<void(QString const &) const>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 },
        }}),
        // Slot 'onSessionSourceChanged'
        QtMocHelpers::SlotData<void() const>(7, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onTorrentsAdded'
        QtMocHelpers::SlotData<void(torrent_ids_t const &) const>(8, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Slot 'onTorrentsCompleted'
        QtMocHelpers::SlotData<void(torrent_ids_t const &) const>(11, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Slot 'onTorrentsEdited'
        QtMocHelpers::SlotData<void(torrent_ids_t const &) const>(12, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Slot 'onTorrentsNeedInfo'
        QtMocHelpers::SlotData<void(torrent_ids_t const &) const>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Slot 'pruneInternedStrings'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'refreshPref'
        QtMocHelpers::SlotData<void(int) const>(15, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 16 },
        }}),
        // Slot 'refreshTorrents'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'saveGeometry'
        QtMocHelpers::SlotData<void() const>(18, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onNotificationActionInvoked'
        QtMocHelpers::SlotData<void(quint32, QString)>(19, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::UInt, 20 }, { QMetaType::QString, 21 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Application, qt_meta_tag_ZN11ApplicationE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Application::staticMetaObject = { {
    QMetaObject::SuperData::link<QApplication::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ApplicationE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ApplicationE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11ApplicationE_t>.metaTypes,
    nullptr
} };

void Application::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Application *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->faviconsChanged(); break;
        case 1: _t->addTorrent((*reinterpret_cast<std::add_pointer_t<AddData>>(_a[1]))); break;
        case 2: _t->addWatchdirTorrent((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->onSessionSourceChanged(); break;
        case 4: _t->onTorrentsAdded((*reinterpret_cast<std::add_pointer_t<torrent_ids_t>>(_a[1]))); break;
        case 5: _t->onTorrentsCompleted((*reinterpret_cast<std::add_pointer_t<torrent_ids_t>>(_a[1]))); break;
        case 6: _t->onTorrentsEdited((*reinterpret_cast<std::add_pointer_t<torrent_ids_t>>(_a[1]))); break;
        case 7: _t->onTorrentsNeedInfo((*reinterpret_cast<std::add_pointer_t<torrent_ids_t>>(_a[1]))); break;
        case 8: _t->pruneInternedStrings(); break;
        case 9: _t->refreshPref((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 10: _t->refreshTorrents(); break;
        case 11: _t->saveGeometry(); break;
        case 12: _t->onNotificationActionInvoked((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Application::*)()>(_a, &Application::faviconsChanged, 0))
            return;
    }
}

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

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

int Application::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QApplication::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 13;
    }
    return _id;
}

// SIGNAL 0
void Application::faviconsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
QT_WARNING_POP
