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

template <> constexpr inline auto FormFactorAdaptor::qt_create_metaobjectdata<qt_meta_tag_ZN17FormFactorAdaptorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "FormFactorAdaptor",
        "D-Bus Interface",
        "org.mauiman.FormFactor",
        "D-Bus Introspection",
        "  <interface name=\"org.mauiman.FormFactor\">\n    <method name=\""
        "setPreferredMode\">\n      <arg direction=\"in\" type=\"u\" name=\""
        "preferredMode\"/>\n    </method>\n    <method name=\"setForceTouch"
        "Screen\">\n      <arg direction=\"in\" type=\"b\" name=\"forceTouc"
        "hScreen\"/>\n    </method>\n    <property access=\"read\" type=\"b"
        "\" name=\"hasKeyboard\"/>\n    <property access=\"read\" type=\"b\""
        " name=\"hasTouchscreen\"/>\n    <property access=\"read\" type=\"b"
        "\" name=\"hasMouse\"/>\n    <property access=\"read\" type=\"b\" n"
        "ame=\"hasTouchpad\"/>\n    <property access=\"read\" type=\"b\" na"
        "me=\"forceTouchScreen\"/>\n    <property access=\"read\" type=\"u\""
        " name=\"preferredMode\"/>\n    <property access=\"read\" type=\"u\""
        " name=\"bestMode\"/>\n    <property access=\"read\" type=\"u\" nam"
        "e=\"defaultMode\"/>\n    <signal name=\"hasKeyboardChanged\">\n   "
        "   <arg type=\"b\"/>\n    </signal>\n    <signal name=\"hasTouchsc"
        "reenChanged\">\n      <arg type=\"b\"/>\n    </signal>\n    <signa"
        "l name=\"hasTouchpadChanged\">\n      <arg type=\"b\"/>\n    </sig"
        "nal>\n    <signal name=\"hasMouseChanged\">\n      <arg type=\"b\""
        "/>\n    </signal>\n    <signal name=\"preferredModeChanged\">\n   "
        "   <arg type=\"u\"/>\n    </signal>\n    <signal name=\"bestModeCh"
        "anged\">\n      <arg type=\"u\"/>\n    </signal>\n    <signal name"
        "=\"forceTouchScreenChanged\">\n      <arg type=\"b\"/>\n    </sign"
        "al>\n  </interface>\n",
        "bestModeChanged",
        "",
        "in0",
        "forceTouchScreenChanged",
        "hasKeyboardChanged",
        "hasMouseChanged",
        "hasTouchpadChanged",
        "hasTouchscreenChanged",
        "preferredModeChanged",
        "setForceTouchScreen",
        "forceTouchScreen",
        "setPreferredMode",
        "preferredMode",
        "bestMode",
        "defaultMode",
        "hasKeyboard",
        "hasMouse",
        "hasTouchpad",
        "hasTouchscreen"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'bestModeChanged'
        QtMocHelpers::SignalData<void(uint)>(5, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 7 },
        }}),
        // Signal 'forceTouchScreenChanged'
        QtMocHelpers::SignalData<void(bool)>(8, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 7 },
        }}),
        // Signal 'hasKeyboardChanged'
        QtMocHelpers::SignalData<void(bool)>(9, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 7 },
        }}),
        // Signal 'hasMouseChanged'
        QtMocHelpers::SignalData<void(bool)>(10, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 7 },
        }}),
        // Signal 'hasTouchpadChanged'
        QtMocHelpers::SignalData<void(bool)>(11, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 7 },
        }}),
        // Signal 'hasTouchscreenChanged'
        QtMocHelpers::SignalData<void(bool)>(12, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 7 },
        }}),
        // Signal 'preferredModeChanged'
        QtMocHelpers::SignalData<void(uint)>(13, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 7 },
        }}),
        // Slot 'setForceTouchScreen'
        QtMocHelpers::SlotData<void(bool)>(14, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 15 },
        }}),
        // Slot 'setPreferredMode'
        QtMocHelpers::SlotData<void(uint)>(16, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 17 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'bestMode'
        QtMocHelpers::PropertyData<uint>(18, QMetaType::UInt, QMC::DefaultPropertyFlags),
        // property 'defaultMode'
        QtMocHelpers::PropertyData<uint>(19, QMetaType::UInt, QMC::DefaultPropertyFlags),
        // property 'forceTouchScreen'
        QtMocHelpers::PropertyData<bool>(15, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'hasKeyboard'
        QtMocHelpers::PropertyData<bool>(20, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'hasMouse'
        QtMocHelpers::PropertyData<bool>(21, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'hasTouchpad'
        QtMocHelpers::PropertyData<bool>(22, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'hasTouchscreen'
        QtMocHelpers::PropertyData<bool>(23, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'preferredMode'
        QtMocHelpers::PropertyData<uint>(17, QMetaType::UInt, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<FormFactorAdaptor, qt_meta_tag_ZN17FormFactorAdaptorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject FormFactorAdaptor::staticMetaObject = { {
    QMetaObject::SuperData::link<QDBusAbstractAdaptor::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17FormFactorAdaptorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17FormFactorAdaptorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN17FormFactorAdaptorE_t>.metaTypes,
    nullptr
} };

void FormFactorAdaptor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<FormFactorAdaptor *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->bestModeChanged((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 1: _t->forceTouchScreenChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->hasKeyboardChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 3: _t->hasMouseChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 4: _t->hasTouchpadChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 5: _t->hasTouchscreenChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: _t->preferredModeChanged((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 7: _t->setForceTouchScreen((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 8: _t->setPreferredMode((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (FormFactorAdaptor::*)(uint )>(_a, &FormFactorAdaptor::bestModeChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (FormFactorAdaptor::*)(bool )>(_a, &FormFactorAdaptor::forceTouchScreenChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (FormFactorAdaptor::*)(bool )>(_a, &FormFactorAdaptor::hasKeyboardChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (FormFactorAdaptor::*)(bool )>(_a, &FormFactorAdaptor::hasMouseChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (FormFactorAdaptor::*)(bool )>(_a, &FormFactorAdaptor::hasTouchpadChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (FormFactorAdaptor::*)(bool )>(_a, &FormFactorAdaptor::hasTouchscreenChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (FormFactorAdaptor::*)(uint )>(_a, &FormFactorAdaptor::preferredModeChanged, 6))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<uint*>(_v) = _t->bestMode(); break;
        case 1: *reinterpret_cast<uint*>(_v) = _t->defaultMode(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->forceTouchScreen(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->hasKeyboard(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->hasMouse(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->hasTouchpad(); break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->hasTouchscreen(); break;
        case 7: *reinterpret_cast<uint*>(_v) = _t->preferredMode(); break;
        default: break;
        }
    }
}

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

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

int FormFactorAdaptor::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;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    return _id;
}

// SIGNAL 0
void FormFactorAdaptor::bestModeChanged(uint _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void FormFactorAdaptor::forceTouchScreenChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void FormFactorAdaptor::hasKeyboardChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void FormFactorAdaptor::hasMouseChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void FormFactorAdaptor::hasTouchpadChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void FormFactorAdaptor::hasTouchscreenChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void FormFactorAdaptor::preferredModeChanged(uint _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}
QT_WARNING_POP
