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

#include "../../../../../kclock-26.07.90/src/kclockd/alarmmodel.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 'alarmmodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.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_ZN10AlarmModelE_t {};
} // unnamed namespace

template <> constexpr inline auto AlarmModel::qt_create_metaobjectdata<qt_meta_tag_ZN10AlarmModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AlarmModel",
        "D-Bus Interface",
        "org.kde.kclock.AlarmModel",
        "alarmAdded",
        "",
        "uuid",
        "alarmRemoved",
        "nextAlarm",
        "nextAlarmTimeStamp",
        "activeStateChanged",
        "getNextAlarm",
        "scheduleAlarm",
        "wakeupCallback",
        "cookie",
        "notifierItemActivated",
        "updateNotifierItem",
        "time",
        "removeAlarm",
        "addAlarm",
        "name",
        "hours",
        "minutes",
        "daysOfWeek",
        "audioPath",
        "ringDuration",
        "snoozeDuration"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'alarmAdded'
        QtMocHelpers::SignalData<void(const QString &)>(3, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
        // Signal 'alarmRemoved'
        QtMocHelpers::SignalData<void(const QString &)>(6, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
        // Signal 'nextAlarm'
        QtMocHelpers::SignalData<void(quint64)>(7, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void, {{
            { QMetaType::ULongLong, 8 },
        }}),
        // Signal 'activeStateChanged'
        QtMocHelpers::SignalData<void()>(9, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'getNextAlarm'
        QtMocHelpers::SlotData<quint64()>(10, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::ULongLong),
        // Slot 'scheduleAlarm'
        QtMocHelpers::SlotData<void()>(11, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'wakeupCallback'
        QtMocHelpers::SlotData<void(int)>(12, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 13 },
        }}),
        // Slot 'notifierItemActivated'
        QtMocHelpers::SlotData<void()>(14, 4, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updateNotifierItem'
        QtMocHelpers::SlotData<void(quint64)>(15, 4, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::ULongLong, 16 },
        }}),
        // Method 'removeAlarm'
        QtMocHelpers::MethodData<void(const QString &)>(17, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
        // Method 'addAlarm'
        QtMocHelpers::MethodData<void(const QString &, int, int, int, const QString &, int, int)>(18, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void, {{
            { QMetaType::QString, 19 }, { QMetaType::Int, 20 }, { QMetaType::Int, 21 }, { QMetaType::Int, 22 },
            { QMetaType::QString, 23 }, { QMetaType::Int, 24 }, { QMetaType::Int, 25 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<AlarmModel, qt_meta_tag_ZN10AlarmModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject AlarmModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10AlarmModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10AlarmModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10AlarmModelE_t>.metaTypes,
    nullptr
} };

void AlarmModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<AlarmModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->alarmAdded((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->alarmRemoved((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->nextAlarm((*reinterpret_cast<std::add_pointer_t<quint64>>(_a[1]))); break;
        case 3: _t->activeStateChanged(); break;
        case 4: { quint64 _r = _t->getNextAlarm();
            if (_a[0]) *reinterpret_cast<quint64*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->scheduleAlarm(); break;
        case 6: _t->wakeupCallback((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 7: _t->notifierItemActivated(); break;
        case 8: _t->updateNotifierItem((*reinterpret_cast<std::add_pointer_t<quint64>>(_a[1]))); break;
        case 9: _t->removeAlarm((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 10: _t->addAlarm((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[5])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[6])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[7]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (AlarmModel::*)(const QString & )>(_a, &AlarmModel::alarmAdded, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (AlarmModel::*)(const QString & )>(_a, &AlarmModel::alarmRemoved, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (AlarmModel::*)(quint64 )>(_a, &AlarmModel::nextAlarm, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (AlarmModel::*)()>(_a, &AlarmModel::activeStateChanged, 3))
            return;
    }
}

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

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

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

// SIGNAL 0
void AlarmModel::alarmAdded(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void AlarmModel::alarmRemoved(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void AlarmModel::nextAlarm(quint64 _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void AlarmModel::activeStateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
