/****************************************************************************
** Meta object code from reading C++ file 'handy.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 "../../../../mauikit-4.0.2/src/utils/handy.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 'handy.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_ZN5HandyE_t {};
} // unnamed namespace

template <> constexpr inline auto Handy::qt_create_metaobjectdata<qt_meta_tag_ZN5HandyE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Handy",
        "QML.Element",
        "auto",
        "QML.Singleton",
        "true",
        "singleClickChanged",
        "",
        "hasKeyboardChanged",
        "hasMouseChanged",
        "isMobileChanged",
        "hasTransientTouchInputChanged",
        "formFactorChanged",
        "isTouchChanged",
        "version",
        "userInfo",
        "QVariantMap",
        "getClipboardText",
        "getClipboard",
        "copyTextToClipboard",
        "text",
        "copyToClipboard",
        "value",
        "cut",
        "hasKeyboard",
        "hasMouse",
        "isAndroid",
        "isWindows",
        "isMac",
        "isLinux",
        "isIOS",
        "isMobile",
        "isTouch",
        "formFactor",
        "FFactor",
        "formatSize",
        "size",
        "formatTime",
        "formatDate",
        "dateStr",
        "format",
        "initFormat",
        "isEmail",
        "isPhoneNumber",
        "isWebLink",
        "isFileLink",
        "isTimeDate",
        "hasTransientTouchInput",
        "singleClick",
        "Desktop",
        "Tablet",
        "Phone"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'singleClickChanged'
        QtMocHelpers::SignalData<void()>(5, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hasKeyboardChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hasMouseChanged'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isMobileChanged'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hasTransientTouchInputChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'formFactorChanged'
        QtMocHelpers::SignalData<void()>(11, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isTouchChanged'
        QtMocHelpers::SignalData<void()>(12, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'version'
        QtMocHelpers::SlotData<int()>(13, 6, QMC::AccessPublic, QMetaType::Int),
        // Slot 'userInfo'
        QtMocHelpers::SlotData<QVariantMap()>(14, 6, QMC::AccessPublic, 0x80000000 | 15),
        // Slot 'getClipboardText'
        QtMocHelpers::SlotData<QString()>(16, 6, QMC::AccessPublic, QMetaType::QString),
        // Slot 'getClipboard'
        QtMocHelpers::SlotData<QVariantMap()>(17, 6, QMC::AccessPublic, 0x80000000 | 15),
        // Slot 'copyTextToClipboard'
        QtMocHelpers::SlotData<bool(const QString &)>(18, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 19 },
        }}),
        // Slot 'copyToClipboard'
        QtMocHelpers::SlotData<bool(const QVariantMap &, const bool &)>(20, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 15, 21 }, { QMetaType::Bool, 22 },
        }}),
        // Slot 'copyToClipboard'
        QtMocHelpers::SlotData<bool(const QVariantMap &)>(20, 6, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { 0x80000000 | 15, 21 },
        }}),
        // Slot 'hasKeyboard'
        QtMocHelpers::SlotData<bool()>(23, 6, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'hasMouse'
        QtMocHelpers::SlotData<bool()>(24, 6, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'isAndroid'
        QtMocHelpers::SlotData<bool()>(25, 6, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'isWindows'
        QtMocHelpers::SlotData<bool()>(26, 6, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'isMac'
        QtMocHelpers::SlotData<bool()>(27, 6, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'isLinux'
        QtMocHelpers::SlotData<bool()>(28, 6, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'isIOS'
        QtMocHelpers::SlotData<bool()>(29, 6, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'isMobile'
        QtMocHelpers::SlotData<bool() const>(30, 6, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'isTouch'
        QtMocHelpers::SlotData<bool()>(31, 6, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'formFactor'
        QtMocHelpers::SlotData<enum FFactor()>(32, 6, QMC::AccessPublic, 0x80000000 | 33),
        // Slot 'formatSize'
        QtMocHelpers::SlotData<QString(quint64)>(34, 6, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::ULongLong, 35 },
        }}),
        // Slot 'formatTime'
        QtMocHelpers::SlotData<QString(const qint64 &)>(36, 6, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::LongLong, 21 },
        }}),
        // Slot 'formatDate'
        QtMocHelpers::SlotData<QString(const QString &, const QString &, const QString &)>(37, 6, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 38 }, { QMetaType::QString, 39 }, { QMetaType::QString, 40 },
        }}),
        // Slot 'formatDate'
        QtMocHelpers::SlotData<QString(const QString &, const QString &)>(37, 6, QMC::AccessPublic | QMC::MethodCloned, QMetaType::QString, {{
            { QMetaType::QString, 38 }, { QMetaType::QString, 39 },
        }}),
        // Slot 'formatDate'
        QtMocHelpers::SlotData<QString(const QString &)>(37, 6, QMC::AccessPublic | QMC::MethodCloned, QMetaType::QString, {{
            { QMetaType::QString, 38 },
        }}),
        // Slot 'isEmail'
        QtMocHelpers::SlotData<bool(const QString &)>(41, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 19 },
        }}),
        // Slot 'isPhoneNumber'
        QtMocHelpers::SlotData<bool(const QString &)>(42, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 19 },
        }}),
        // Slot 'isWebLink'
        QtMocHelpers::SlotData<bool(const QString &)>(43, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 19 },
        }}),
        // Slot 'isFileLink'
        QtMocHelpers::SlotData<bool(const QString &)>(44, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 19 },
        }}),
        // Slot 'isTimeDate'
        QtMocHelpers::SlotData<bool(const QString &)>(45, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 19 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'isMobile'
        QtMocHelpers::PropertyData<bool>(30, QMetaType::Bool, QMC::DefaultPropertyFlags, 3),
        // property 'isTouch'
        QtMocHelpers::PropertyData<bool>(31, QMetaType::Bool, QMC::DefaultPropertyFlags, 6),
        // property 'hasMouse'
        QtMocHelpers::PropertyData<bool>(24, QMetaType::Bool, QMC::DefaultPropertyFlags, 2),
        // property 'hasKeyboard'
        QtMocHelpers::PropertyData<bool>(23, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'hasTransientTouchInput'
        QtMocHelpers::PropertyData<bool>(46, QMetaType::Bool, QMC::DefaultPropertyFlags, 4),
        // property 'isAndroid'
        QtMocHelpers::PropertyData<bool>(25, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant | QMC::Final),
        // property 'isLinux'
        QtMocHelpers::PropertyData<bool>(28, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant | QMC::Final),
        // property 'isWindows'
        QtMocHelpers::PropertyData<bool>(26, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant | QMC::Final),
        // property 'isMac'
        QtMocHelpers::PropertyData<bool>(27, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant | QMC::Final),
        // property 'isIOS'
        QtMocHelpers::PropertyData<bool>(29, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant | QMC::Final),
        // property 'singleClick'
        QtMocHelpers::PropertyData<bool>(47, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable, 0),
        // property 'formFactor'
        QtMocHelpers::PropertyData<enum FFactor>(32, 0x80000000 | 33, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 5),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'FFactor'
        QtMocHelpers::EnumData<enum FFactor>(33, 33, QMC::EnumFlags{}).add({
            {   48, FFactor::Desktop },
            {   49, FFactor::Tablet },
            {   50, FFactor::Phone },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<Handy, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject Handy::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5HandyE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5HandyE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5HandyE_t>.metaTypes,
    nullptr
} };

void Handy::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Handy *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->singleClickChanged(); break;
        case 1: _t->hasKeyboardChanged(); break;
        case 2: _t->hasMouseChanged(); break;
        case 3: _t->isMobileChanged(); break;
        case 4: _t->hasTransientTouchInputChanged(); break;
        case 5: _t->formFactorChanged(); break;
        case 6: _t->isTouchChanged(); break;
        case 7: { int _r = _t->version();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 8: { QVariantMap _r = _t->userInfo();
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 9: { QString _r = _t->getClipboardText();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 10: { QVariantMap _r = _t->getClipboard();
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 11: { bool _r = _t->copyTextToClipboard((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 12: { bool _r = _t->copyToClipboard((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 13: { bool _r = _t->copyToClipboard((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 14: { bool _r = _t->hasKeyboard();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 15: { bool _r = _t->hasMouse();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 16: { bool _r = _t->isAndroid();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 17: { bool _r = _t->isWindows();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 18: { bool _r = _t->isMac();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 19: { bool _r = _t->isLinux();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 20: { bool _r = _t->isIOS();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 21: { bool _r = _t->isMobile();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 22: { bool _r = _t->isTouch();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 23: { enum FFactor _r = _t->formFactor();
            if (_a[0]) *reinterpret_cast<enum FFactor*>(_a[0]) = std::move(_r); }  break;
        case 24: { QString _r = _t->formatSize((*reinterpret_cast<std::add_pointer_t<quint64>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 25: { QString _r = _t->formatTime((*reinterpret_cast<std::add_pointer_t<qint64>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 26: { QString _r = _t->formatDate((*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<QString*>(_a[0]) = std::move(_r); }  break;
        case 27: { QString _r = _t->formatDate((*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 28: { QString _r = _t->formatDate((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 29: { bool _r = _t->isEmail((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 30: { bool _r = _t->isPhoneNumber((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 31: { bool _r = _t->isWebLink((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 32: { bool _r = _t->isFileLink((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 33: { bool _r = _t->isTimeDate((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Handy::*)()>(_a, &Handy::singleClickChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Handy::*)()>(_a, &Handy::hasKeyboardChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Handy::*)()>(_a, &Handy::hasMouseChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Handy::*)()>(_a, &Handy::isMobileChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Handy::*)()>(_a, &Handy::hasTransientTouchInputChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Handy::*)()>(_a, &Handy::formFactorChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Handy::*)()>(_a, &Handy::isTouchChanged, 6))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isMobile(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->isTouch(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->hasMouse(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->hasKeyboard(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->hasTransientTouchInput(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->isAndroid(); break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->isLinux(); break;
        case 7: *reinterpret_cast<bool*>(_v) = _t->isWindows(); break;
        case 8: *reinterpret_cast<bool*>(_v) = _t->isMac(); break;
        case 9: *reinterpret_cast<bool*>(_v) = _t->isIOS(); break;
        case 10: *reinterpret_cast<bool*>(_v) = _t->m_singleClick; break;
        case 11: *reinterpret_cast<enum FFactor*>(_v) = _t->formFactor(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 10:
            if (QtMocHelpers::setProperty(_t->m_singleClick, *reinterpret_cast<bool*>(_v)))
                Q_EMIT _t->singleClickChanged();
            break;
        default: break;
        }
    }
}

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

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

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

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

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

// SIGNAL 2
void Handy::hasMouseChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Handy::isMobileChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void Handy::hasTransientTouchInputChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void Handy::formFactorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void Handy::isTouchChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
QT_WARNING_POP
