/****************************************************************************
** Meta object code from reading C++ file 'notificationmanager.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.10.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../src/utils/notificationmanager.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 'notificationmanager.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.2. 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_ZN19NotificationManagerE_t {};
} // unnamed namespace

template <> constexpr inline auto NotificationManager::qt_create_metaobjectdata<qt_meta_tag_ZN19NotificationManagerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "NotificationManager",
        "showHideRequested",
        "",
        "onMailItemAdded",
        "WinoMail::Events::MailItemAddedEvent",
        "event",
        "onMailItemRemoved",
        "WinoMail::Events::MailItemRemovedEvent",
        "onMailItemUpdated",
        "WinoMail::Events::MailItemUpdatedEvent",
        "onAccountConnected",
        "WinoMail::Events::AccountConnectedEvent",
        "onAccountDisconnected",
        "WinoMail::Events::AccountDisconnectedEvent",
        "onSyncStarted",
        "WinoMail::Events::SyncStartedEvent",
        "onSyncFinished",
        "WinoMail::Events::SyncFinishedEvent",
        "onErrorOccurred",
        "WinoMail::Events::ErrorEvent",
        "onTrayIconActivated",
        "QSystemTrayIcon::ActivationReason",
        "reason",
        "onShowHideRequested",
        "onQuitRequested"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'showHideRequested'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'onMailItemAdded'
        QtMocHelpers::SlotData<void(const WinoMail::Events::MailItemAddedEvent &)>(3, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Slot 'onMailItemRemoved'
        QtMocHelpers::SlotData<void(const WinoMail::Events::MailItemRemovedEvent &)>(6, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 7, 5 },
        }}),
        // Slot 'onMailItemUpdated'
        QtMocHelpers::SlotData<void(const WinoMail::Events::MailItemUpdatedEvent &)>(8, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 9, 5 },
        }}),
        // Slot 'onAccountConnected'
        QtMocHelpers::SlotData<void(const WinoMail::Events::AccountConnectedEvent &)>(10, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 11, 5 },
        }}),
        // Slot 'onAccountDisconnected'
        QtMocHelpers::SlotData<void(const WinoMail::Events::AccountDisconnectedEvent &)>(12, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 13, 5 },
        }}),
        // Slot 'onSyncStarted'
        QtMocHelpers::SlotData<void(const WinoMail::Events::SyncStartedEvent &)>(14, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 15, 5 },
        }}),
        // Slot 'onSyncFinished'
        QtMocHelpers::SlotData<void(const WinoMail::Events::SyncFinishedEvent &)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 17, 5 },
        }}),
        // Slot 'onErrorOccurred'
        QtMocHelpers::SlotData<void(const WinoMail::Events::ErrorEvent &)>(18, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 19, 5 },
        }}),
        // Slot 'onTrayIconActivated'
        QtMocHelpers::SlotData<void(QSystemTrayIcon::ActivationReason)>(20, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 21, 22 },
        }}),
        // Slot 'onShowHideRequested'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onQuitRequested'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<NotificationManager, qt_meta_tag_ZN19NotificationManagerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject NotificationManager::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN19NotificationManagerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN19NotificationManagerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN19NotificationManagerE_t>.metaTypes,
    nullptr
} };

void NotificationManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<NotificationManager *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->showHideRequested(); break;
        case 1: _t->onMailItemAdded((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::MailItemAddedEvent>>(_a[1]))); break;
        case 2: _t->onMailItemRemoved((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::MailItemRemovedEvent>>(_a[1]))); break;
        case 3: _t->onMailItemUpdated((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::MailItemUpdatedEvent>>(_a[1]))); break;
        case 4: _t->onAccountConnected((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::AccountConnectedEvent>>(_a[1]))); break;
        case 5: _t->onAccountDisconnected((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::AccountDisconnectedEvent>>(_a[1]))); break;
        case 6: _t->onSyncStarted((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::SyncStartedEvent>>(_a[1]))); break;
        case 7: _t->onSyncFinished((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::SyncFinishedEvent>>(_a[1]))); break;
        case 8: _t->onErrorOccurred((*reinterpret_cast<std::add_pointer_t<WinoMail::Events::ErrorEvent>>(_a[1]))); break;
        case 9: _t->onTrayIconActivated((*reinterpret_cast<std::add_pointer_t<QSystemTrayIcon::ActivationReason>>(_a[1]))); break;
        case 10: _t->onShowHideRequested(); break;
        case 11: _t->onQuitRequested(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (NotificationManager::*)()>(_a, &NotificationManager::showHideRequested, 0))
            return;
    }
}

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

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

int NotificationManager::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 < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 12;
    }
    return _id;
}

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