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

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

template <> constexpr inline auto LightBoxAdaptor::qt_create_metaobjectdata<qt_meta_tag_ZN15LightBoxAdaptorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "LightBoxAdaptor",
        "D-Bus Interface",
        "org.kde.kstars.INDI.LightBox",
        "D-Bus Introspection",
        "  <interface name=\"org.kde.kstars.INDI.LightBox\">\n    <property"
        " access=\"read\" type=\"s\" name=\"name\"/>\n    <property access="
        "\"read\" type=\"b\" name=\"connected\"/>\n    <property access=\"r"
        "ead\" type=\"i\" name=\"status\">\n      <annotation value=\"ISD::"
        "LightBox::LightStatus\" name=\"org.qtproject.QtDBus.QtTypeName\"/>"
        "\n    </property>\n    <property access=\"read\" type=\"q\" name=\""
        "brightness\"/>\n    <method name=\"isLightOn\">\n      <arg direct"
        "ion=\"out\" type=\"b\"/>\n    </method>\n    <method name=\"setLig"
        "htEnabled\">\n      <arg direction=\"out\" type=\"b\"/>\n      <ar"
        "g direction=\"in\" type=\"b\" name=\"enable\"/>\n    </method>\n  "
        "  <method name=\"setBrightness\">\n      <arg direction=\"out\" ty"
        "pe=\"b\"/>\n      <arg direction=\"in\" type=\"q\" name=\"val\"/>\n"
        "    </method>\n    <signal name=\"Connected\"/>\n    <signal name="
        "\"Disconnected\"/>\n    <signal name=\"ready\"/>\n    <signal name"
        "=\"newStatus\">\n      <arg direction=\"out\" type=\"(i)\" name=\""
        "status\"/>\n      <annotation value=\"ISD::LightBox::LightStatus\""
        " name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n      <annotation"
        " value=\"ISD::LightBox::LightStatus\" name=\"org.qtproject.QtDBus."
        "QtTypeName.Out0\"/>\n    </signal>\n  </interface>\n",
        "Connected",
        "",
        "Disconnected",
        "newStatus",
        "ISD::LightBox::LightStatus",
        "status",
        "ready",
        "isLightOn",
        "setBrightness",
        "val",
        "setLightEnabled",
        "enable",
        "brightness",
        "connected",
        "name"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'Connected'
        QtMocHelpers::SignalData<void()>(5, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'Disconnected'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'newStatus'
        QtMocHelpers::SignalData<void(ISD::LightBox::LightStatus)>(8, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Signal 'ready'
        QtMocHelpers::SignalData<void()>(11, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'isLightOn'
        QtMocHelpers::SlotData<bool()>(12, 6, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'setBrightness'
        QtMocHelpers::SlotData<bool(ushort)>(13, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::UShort, 14 },
        }}),
        // Slot 'setLightEnabled'
        QtMocHelpers::SlotData<bool(bool)>(15, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::Bool, 16 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'brightness'
        QtMocHelpers::PropertyData<ushort>(17, QMetaType::UShort, QMC::DefaultPropertyFlags),
        // property 'connected'
        QtMocHelpers::PropertyData<bool>(18, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'name'
        QtMocHelpers::PropertyData<QString>(19, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'status'
        QtMocHelpers::PropertyData<int>(10, QMetaType::Int, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<LightBoxAdaptor, qt_meta_tag_ZN15LightBoxAdaptorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject LightBoxAdaptor::staticMetaObject = { {
    QMetaObject::SuperData::link<QDBusAbstractAdaptor::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15LightBoxAdaptorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15LightBoxAdaptorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15LightBoxAdaptorE_t>.metaTypes,
    nullptr
} };

void LightBoxAdaptor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<LightBoxAdaptor *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->Connected(); break;
        case 1: _t->Disconnected(); break;
        case 2: _t->newStatus((*reinterpret_cast<std::add_pointer_t<ISD::LightBox::LightStatus>>(_a[1]))); break;
        case 3: _t->ready(); break;
        case 4: { bool _r = _t->isLightOn();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 5: { bool _r = _t->setBrightness((*reinterpret_cast<std::add_pointer_t<ushort>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 6: { bool _r = _t->setLightEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (LightBoxAdaptor::*)()>(_a, &LightBoxAdaptor::Connected, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (LightBoxAdaptor::*)()>(_a, &LightBoxAdaptor::Disconnected, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (LightBoxAdaptor::*)(ISD::LightBox::LightStatus )>(_a, &LightBoxAdaptor::newStatus, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (LightBoxAdaptor::*)()>(_a, &LightBoxAdaptor::ready, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<ushort*>(_v) = _t->brightness(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->connected(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->name(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->status(); break;
        default: break;
        }
    }
}

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

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

int LightBoxAdaptor::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 < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 7;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    return _id;
}

// SIGNAL 0
void LightBoxAdaptor::Connected()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void LightBoxAdaptor::Disconnected()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void LightBoxAdaptor::newStatus(ISD::LightBox::LightStatus _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

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