/****************************************************************************
** Meta object code from reading C++ file 'qtapsensor.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 "../../../../../qtsensors/src/sensors/qtapsensor.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 'qtapsensor.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_ZN11QTapReadingE_t {};
} // unnamed namespace

template <> constexpr inline auto QTapReading::qt_create_metaobjectdata<qt_meta_tag_ZN11QTapReadingE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QTapReading",
        "tapDirection",
        "TapDirection",
        "doubleTap",
        "Undefined",
        "X",
        "Y",
        "Z",
        "X_Pos",
        "Y_Pos",
        "Z_Pos",
        "X_Neg",
        "Y_Neg",
        "Z_Neg",
        "X_Both",
        "Y_Both",
        "Z_Both"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'tapDirection'
        QtMocHelpers::PropertyData<enum TapDirection>(1, 0x80000000 | 2, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'doubleTap'
        QtMocHelpers::PropertyData<bool>(3, QMetaType::Bool, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'TapDirection'
        QtMocHelpers::EnumData<enum TapDirection>(2, 2, QMC::EnumFlags{}).add({
            {    4, TapDirection::Undefined },
            {    5, TapDirection::X },
            {    6, TapDirection::Y },
            {    7, TapDirection::Z },
            {    8, TapDirection::X_Pos },
            {    9, TapDirection::Y_Pos },
            {   10, TapDirection::Z_Pos },
            {   11, TapDirection::X_Neg },
            {   12, TapDirection::Y_Neg },
            {   13, TapDirection::Z_Neg },
            {   14, TapDirection::X_Both },
            {   15, TapDirection::Y_Both },
            {   16, TapDirection::Z_Both },
        }),
    };
    return QtMocHelpers::metaObjectData<QTapReading, qt_meta_tag_ZN11QTapReadingE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QTapReading::staticMetaObject = { {
    QMetaObject::SuperData::link<QSensorReading::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QTapReadingE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QTapReadingE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11QTapReadingE_t>.metaTypes,
    nullptr
} };

void QTapReading::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QTapReading *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum TapDirection*>(_v) = _t->tapDirection(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->isDoubleTap(); break;
        default: break;
        }
    }
}

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

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

int QTapReading::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QSensorReading::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN10QTapSensorE_t {};
} // unnamed namespace

template <> constexpr inline auto QTapSensor::qt_create_metaobjectdata<qt_meta_tag_ZN10QTapSensorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QTapSensor",
        "returnDoubleTapEventsChanged",
        "",
        "returnDoubleTapEvents"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'returnDoubleTapEventsChanged'
        QtMocHelpers::SignalData<void(bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'returnDoubleTapEvents'
        QtMocHelpers::PropertyData<bool>(3, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QTapSensor, qt_meta_tag_ZN10QTapSensorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QTapSensor::staticMetaObject = { {
    QMetaObject::SuperData::link<QSensor::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QTapSensorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QTapSensorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10QTapSensorE_t>.metaTypes,
    nullptr
} };

void QTapSensor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QTapSensor *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->returnDoubleTapEventsChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QTapSensor::*)(bool )>(_a, &QTapSensor::returnDoubleTapEventsChanged, 0))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->returnDoubleTapEvents(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setReturnDoubleTapEvents(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int QTapSensor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QSensor::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 1)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 1;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    return _id;
}

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