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

#include "../../../../buho-4.0.2/src/controllers/notes/notescontroller.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 'notescontroller.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. 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_ZN11NotesLoaderE_t {};
} // unnamed namespace

template <> constexpr inline auto NotesLoader::qt_create_metaobjectdata<qt_meta_tag_ZN11NotesLoaderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "NotesLoader",
        "noteReady",
        "",
        "FMH::MODEL",
        "note",
        "notesReady",
        "FMH::MODEL_LIST",
        "notes"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'noteReady'
        QtMocHelpers::SignalData<void(FMH::MODEL)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'notesReady'
        QtMocHelpers::SignalData<void(FMH::MODEL_LIST)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<NotesLoader, qt_meta_tag_ZN11NotesLoaderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject NotesLoader::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11NotesLoaderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11NotesLoaderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11NotesLoaderE_t>.metaTypes,
    nullptr
} };

void NotesLoader::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<NotesLoader *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->noteReady((*reinterpret_cast<std::add_pointer_t<FMH::MODEL>>(_a[1]))); break;
        case 1: _t->notesReady((*reinterpret_cast<std::add_pointer_t<FMH::MODEL_LIST>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (NotesLoader::*)(FMH::MODEL )>(_a, &NotesLoader::noteReady, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (NotesLoader::*)(FMH::MODEL_LIST )>(_a, &NotesLoader::notesReady, 1))
            return;
    }
}

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

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

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

// SIGNAL 0
void NotesLoader::noteReady(FMH::MODEL _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void NotesLoader::notesReady(FMH::MODEL_LIST _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
namespace {
struct qt_meta_tag_ZN15NotesControllerE_t {};
} // unnamed namespace

template <> constexpr inline auto NotesController::qt_create_metaobjectdata<qt_meta_tag_ZN15NotesControllerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "NotesController",
        "noteReady",
        "",
        "FMH::MODEL",
        "note",
        "notesReady",
        "FMH::MODEL_LIST",
        "notes",
        "noteInserted",
        "noteUpdated",
        "fetchNotes",
        "insertNote",
        "FMH::MODEL&",
        "updateNote",
        "id",
        "removeNote",
        "getNotes"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'noteReady'
        QtMocHelpers::SignalData<void(FMH::MODEL)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'notesReady'
        QtMocHelpers::SignalData<void(FMH::MODEL_LIST)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Signal 'noteInserted'
        QtMocHelpers::SignalData<void(FMH::MODEL)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'noteUpdated'
        QtMocHelpers::SignalData<void(FMH::MODEL)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'fetchNotes'
        QtMocHelpers::SignalData<void(FMH::MODEL_LIST)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'insertNote'
        QtMocHelpers::SlotData<bool(FMH::MODEL &)>(11, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 12, 4 },
        }}),
        // Slot 'updateNote'
        QtMocHelpers::SlotData<bool(FMH::MODEL &, QString)>(13, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 12, 4 }, { QMetaType::QString, 14 },
        }}),
        // Slot 'removeNote'
        QtMocHelpers::SlotData<bool(const QString &)>(15, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 14 },
        }}),
        // Slot 'getNotes'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<NotesController, qt_meta_tag_ZN15NotesControllerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject NotesController::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15NotesControllerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15NotesControllerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15NotesControllerE_t>.metaTypes,
    nullptr
} };

void NotesController::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<NotesController *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->noteReady((*reinterpret_cast<std::add_pointer_t<FMH::MODEL>>(_a[1]))); break;
        case 1: _t->notesReady((*reinterpret_cast<std::add_pointer_t<FMH::MODEL_LIST>>(_a[1]))); break;
        case 2: _t->noteInserted((*reinterpret_cast<std::add_pointer_t<FMH::MODEL>>(_a[1]))); break;
        case 3: _t->noteUpdated((*reinterpret_cast<std::add_pointer_t<FMH::MODEL>>(_a[1]))); break;
        case 4: _t->fetchNotes((*reinterpret_cast<std::add_pointer_t<FMH::MODEL_LIST>>(_a[1]))); break;
        case 5: { bool _r = _t->insertNote((*reinterpret_cast<std::add_pointer_t<FMH::MODEL&>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 6: { bool _r = _t->updateNote((*reinterpret_cast<std::add_pointer_t<FMH::MODEL&>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 7: { bool _r = _t->removeNote((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->getNotes(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (NotesController::*)(FMH::MODEL )>(_a, &NotesController::noteReady, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (NotesController::*)(FMH::MODEL_LIST )>(_a, &NotesController::notesReady, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (NotesController::*)(FMH::MODEL )>(_a, &NotesController::noteInserted, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (NotesController::*)(FMH::MODEL )>(_a, &NotesController::noteUpdated, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (NotesController::*)(FMH::MODEL_LIST )>(_a, &NotesController::fetchNotes, 4))
            return;
    }
}

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

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

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

// SIGNAL 0
void NotesController::noteReady(FMH::MODEL _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void NotesController::notesReady(FMH::MODEL_LIST _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void NotesController::noteInserted(FMH::MODEL _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void NotesController::noteUpdated(FMH::MODEL _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void NotesController::fetchNotes(FMH::MODEL_LIST _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
