/****************************************************************************
** Meta object code from reading C++ file 'ieditablephrase.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 "../../../../artikulate-26.07.80/src/core/ieditablephrase.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 'ieditablephrase.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_ZN15IEditablePhraseE_t {};
} // unnamed namespace

template <> constexpr inline auto IEditablePhrase::qt_create_metaobjectdata<qt_meta_tag_ZN15IEditablePhraseE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "IEditablePhrase",
        "modified",
        "",
        "editStateChanged",
        "idChanged",
        "textChanged",
        "i18nTextChanged",
        "typeChanged",
        "id",
        "text",
        "i18nText",
        "type",
        "IPhrase::Type",
        "EditState",
        "Unknown",
        "Translated",
        "Completed"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'modified'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'editStateChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'id'
        QtMocHelpers::PropertyData<QString>(8, QMetaType::QString, QMC::DefaultPropertyFlags, 0x70000000 | 4),
        // property 'text'
        QtMocHelpers::PropertyData<QString>(9, QMetaType::QString, QMC::DefaultPropertyFlags, 0x70000000 | 5),
        // property 'i18nText'
        QtMocHelpers::PropertyData<QString>(10, QMetaType::QString, QMC::DefaultPropertyFlags, 0x70000000 | 6),
        // property 'type'
        QtMocHelpers::PropertyData<IPhrase::Type>(11, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0x70000000 | 7),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'EditState'
        QtMocHelpers::EnumData<enum EditState>(13, 13, QMC::EnumIsScoped).add({
            {   14, EditState::Unknown },
            {   15, EditState::Translated },
            {   16, EditState::Completed },
        }),
    };
    return QtMocHelpers::metaObjectData<IEditablePhrase, qt_meta_tag_ZN15IEditablePhraseE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT static const QMetaObject::SuperData qt_meta_extradata_ZN15IEditablePhraseE[] = {
    QMetaObject::SuperData::link<IPhrase::staticMetaObject>(),
    nullptr
};

Q_CONSTINIT const QMetaObject IEditablePhrase::staticMetaObject = { {
    QMetaObject::SuperData::link<IPhrase::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15IEditablePhraseE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15IEditablePhraseE_t>.data,
    qt_static_metacall,
    qt_meta_extradata_ZN15IEditablePhraseE,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15IEditablePhraseE_t>.metaTypes,
    nullptr
} };

void IEditablePhrase::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<IEditablePhrase *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->modified(); break;
        case 1: _t->editStateChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (IEditablePhrase::*)()>(_a, &IEditablePhrase::modified, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (IEditablePhrase::*)()>(_a, &IEditablePhrase::editStateChanged, 1))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->id(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->text(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->i18nText(); break;
        case 3: *reinterpret_cast<IPhrase::Type*>(_v) = _t->type(); break;
        default: break;
        }
    }
}

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

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

int IEditablePhrase::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = IPhrase::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 2;
    }
    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 IEditablePhrase::modified()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void IEditablePhrase::editStateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
namespace CheckNotifySignalValidity_ZN15IEditablePhraseE {
template<typename T> using has_nullary_idChanged = decltype(std::declval<T>().idChanged());
template<typename T> using has_unary_idChanged = decltype(std::declval<T>().idChanged(std::declval<QString>()));
static_assert(qxp::is_detected_v<has_nullary_idChanged, IEditablePhrase> || qxp::is_detected_v<has_unary_idChanged, IEditablePhrase>,
              "NOTIFY signal idChanged does not exist in class (or is private in its parent)");
template<typename T> using has_nullary_textChanged = decltype(std::declval<T>().textChanged());
template<typename T> using has_unary_textChanged = decltype(std::declval<T>().textChanged(std::declval<QString>()));
static_assert(qxp::is_detected_v<has_nullary_textChanged, IEditablePhrase> || qxp::is_detected_v<has_unary_textChanged, IEditablePhrase>,
              "NOTIFY signal textChanged does not exist in class (or is private in its parent)");
template<typename T> using has_nullary_i18nTextChanged = decltype(std::declval<T>().i18nTextChanged());
template<typename T> using has_unary_i18nTextChanged = decltype(std::declval<T>().i18nTextChanged(std::declval<QString>()));
static_assert(qxp::is_detected_v<has_nullary_i18nTextChanged, IEditablePhrase> || qxp::is_detected_v<has_unary_i18nTextChanged, IEditablePhrase>,
              "NOTIFY signal i18nTextChanged does not exist in class (or is private in its parent)");
template<typename T> using has_nullary_typeChanged = decltype(std::declval<T>().typeChanged());
template<typename T> using has_unary_typeChanged = decltype(std::declval<T>().typeChanged(std::declval<IPhrase::Type>()));
static_assert(qxp::is_detected_v<has_nullary_typeChanged, IEditablePhrase> || qxp::is_detected_v<has_unary_typeChanged, IEditablePhrase>,
              "NOTIFY signal typeChanged does not exist in class (or is private in its parent)");
}
QT_WARNING_POP
