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

template <> constexpr inline auto LoggerAdaptor::qt_create_metaobjectdata<qt_meta_tag_ZN13LoggerAdaptorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "LoggerAdaptor",
        "D-Bus Interface",
        "org.kde.akonadiconsole.logger",
        "D-Bus Introspection",
        "  <interface name=\"org.kde.akonadiconsole.logger\">\n    <method "
        "name=\"enabled\">\n      <arg direction=\"out\" type=\"b\" name=\""
        "enabled\"/>\n    </method>\n    <signal name=\"enabledChanged\">\n"
        "      <arg direction=\"out\" type=\"b\" name=\"enabled\"/>\n    </"
        "signal>\n    <method name=\"message\">\n      <arg direction=\"in\""
        " type=\"x\" name=\"timestamp\"/>\n      <arg direction=\"in\" type"
        "=\"s\" name=\"app\"/>\n      <arg direction=\"in\" type=\"x\" name"
        "=\"pid\"/>\n      <arg direction=\"in\" type=\"i\" name=\"type\"/>"
        "\n      <arg direction=\"in\" type=\"s\" name=\"category\"/>\n    "
        "  <arg direction=\"in\" type=\"s\" name=\"file\"/>\n      <arg dir"
        "ection=\"in\" type=\"s\" name=\"function\"/>\n      <arg direction"
        "=\"in\" type=\"i\" name=\"line\"/>\n      <arg direction=\"in\" ty"
        "pe=\"i\" name=\"version\"/>\n      <arg direction=\"in\" type=\"s\""
        " name=\"msg\"/>\n    </method>\n  </interface>\n",
        "enabledChanged",
        "",
        "enabled",
        "message",
        "timestamp",
        "app",
        "pid",
        "type",
        "category",
        "file",
        "function",
        "line",
        "version",
        "msg"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'enabledChanged'
        QtMocHelpers::SignalData<void(bool)>(5, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 7 },
        }}),
        // Slot 'enabled'
        QtMocHelpers::SlotData<bool()>(7, 6, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'message'
        QtMocHelpers::SlotData<void(qlonglong, const QString &, qlonglong, int, const QString &, const QString &, const QString &, int, int, const QString &)>(8, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::LongLong, 9 }, { QMetaType::QString, 10 }, { QMetaType::LongLong, 11 }, { QMetaType::Int, 12 },
            { QMetaType::QString, 13 }, { QMetaType::QString, 14 }, { QMetaType::QString, 15 }, { QMetaType::Int, 16 },
            { QMetaType::Int, 17 }, { QMetaType::QString, 18 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<LoggerAdaptor, qt_meta_tag_ZN13LoggerAdaptorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject LoggerAdaptor::staticMetaObject = { {
    QMetaObject::SuperData::link<QDBusAbstractAdaptor::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13LoggerAdaptorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13LoggerAdaptorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13LoggerAdaptorE_t>.metaTypes,
    nullptr
} };

void LoggerAdaptor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<LoggerAdaptor *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->enabledChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: { bool _r = _t->enabled();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 2: _t->message((*reinterpret_cast<std::add_pointer_t<qlonglong>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<qlonglong>>(_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<QString>>(_a[6])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[7])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[8])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[9])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[10]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (LoggerAdaptor::*)(bool )>(_a, &LoggerAdaptor::enabledChanged, 0))
            return;
    }
}

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

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

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

// SIGNAL 0
void LoggerAdaptor::enabledChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
QT_WARNING_POP
