/****************************************************************************
** Meta object code from reading C++ file 'dbuscalendar_adaptor.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 "../../src/dbus/dbuscalendar_adaptor.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 'dbuscalendar_adaptor.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_ZN15CalendarAdaptorE_t {};
} // unnamed namespace

template <> constexpr inline auto CalendarAdaptor::qt_create_metaobjectdata<qt_meta_tag_ZN15CalendarAdaptorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "CalendarAdaptor",
        "D-Bus Interface",
        "com.deepin.Calendar",
        "D-Bus Introspection",
        "  <interface name=\"com.deepin.Calendar\">\n    <method name=\"Act"
        "iveWindow\">\n    </method>\n    <method name=\"RaiseWindow\">\n  "
        "  </method>\n    <method name=\"OpenSchedule\">\n      <arg direct"
        "ion=\"in\" type=\"s\" name=\"job\"/>\n    </method>\n    <method n"
        "ame=\"QuerySchedules\">\n      <arg direction=\"in\" type=\"s\" na"
        "me=\"query\"/>\n      <arg direction=\"out\" type=\"s\" name=\"res"
        "ult\"/>\n    </method>\n    <method name=\"CreateSchedule\">\n    "
        "  <arg direction=\"in\" type=\"s\" name=\"scheduleData\"/>\n      "
        "<arg direction=\"out\" type=\"s\" name=\"scheduleId\"/>\n    </met"
        "hod>\n    <method name=\"ModifySchedule\">\n      <arg direction=\""
        "in\" type=\"s\" name=\"scheduleId\"/>\n      <arg direction=\"in\""
        " type=\"s\" name=\"operation\"/>\n      <arg direction=\"in\" type"
        "=\"s\" name=\"data\"/>\n      <arg direction=\"out\" type=\"b\" na"
        "me=\"success\"/>\n    </method>\n    <method name=\"GetCalendarVie"
        "w\">\n      <arg direction=\"in\" type=\"s\" name=\"viewType\"/>\n"
        "      <arg direction=\"in\" type=\"s\" name=\"date\"/>\n      <arg"
        " direction=\"out\" type=\"s\" name=\"viewData\"/>\n    </method>\n"
        "    <method name=\"GetLunarInfo\">\n      <arg direction=\"in\" ty"
        "pe=\"s\" name=\"date\"/>\n      <arg direction=\"out\" type=\"s\" "
        "name=\"lunarData\"/>\n    </method>\n    <method name=\"GetReminde"
        "rs\">\n      <arg direction=\"in\" type=\"i\" name=\"hours\"/>\n  "
        "    <arg direction=\"out\" type=\"s\" name=\"reminders\"/>\n    </"
        "method>\n  </interface>\n",
        "ActiveWindow",
        "",
        "RaiseWindow",
        "OpenSchedule",
        "job",
        "QuerySchedules",
        "query",
        "CreateSchedule",
        "scheduleData",
        "ModifySchedule",
        "scheduleId",
        "operation",
        "data",
        "GetCalendarView",
        "viewType",
        "date",
        "GetLunarInfo",
        "GetReminders",
        "hours"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'ActiveWindow'
        QtMocHelpers::SlotData<void()>(5, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'RaiseWindow'
        QtMocHelpers::SlotData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'OpenSchedule'
        QtMocHelpers::SlotData<void(QString)>(8, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'QuerySchedules'
        QtMocHelpers::SlotData<QString(const QString &)>(10, 6, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 11 },
        }}),
        // Slot 'CreateSchedule'
        QtMocHelpers::SlotData<QString(const QString &)>(12, 6, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 13 },
        }}),
        // Slot 'ModifySchedule'
        QtMocHelpers::SlotData<bool(const QString &, const QString &, const QString &)>(14, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 15 }, { QMetaType::QString, 16 }, { QMetaType::QString, 17 },
        }}),
        // Slot 'GetCalendarView'
        QtMocHelpers::SlotData<QString(const QString &, const QString &)>(18, 6, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 19 }, { QMetaType::QString, 20 },
        }}),
        // Slot 'GetLunarInfo'
        QtMocHelpers::SlotData<QString(const QString &)>(21, 6, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 20 },
        }}),
        // Slot 'GetReminders'
        QtMocHelpers::SlotData<QString(int)>(22, 6, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::Int, 23 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<CalendarAdaptor, qt_meta_tag_ZN15CalendarAdaptorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject CalendarAdaptor::staticMetaObject = { {
    QMetaObject::SuperData::link<QDBusAbstractAdaptor::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15CalendarAdaptorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15CalendarAdaptorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15CalendarAdaptorE_t>.metaTypes,
    nullptr
} };

void CalendarAdaptor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CalendarAdaptor *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->ActiveWindow(); break;
        case 1: _t->RaiseWindow(); break;
        case 2: _t->OpenSchedule((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: { QString _r = _t->QuerySchedules((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 4: { QString _r = _t->CreateSchedule((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 5: { bool _r = _t->ModifySchedule((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 6: { QString _r = _t->GetCalendarView((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 7: { QString _r = _t->GetLunarInfo((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 8: { QString _r = _t->GetReminders((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

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

int CalendarAdaptor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QDBusAbstractAdaptor::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;
}
QT_WARNING_POP
