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

#include <memory>
#include "../../../framework/src/maliit/plugins/keyoverride.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'keyoverride.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.18. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_MKeyOverride_t {
    QByteArrayData data[18];
    char stringdata0[228];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_MKeyOverride_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_MKeyOverride_t qt_meta_stringdata_MKeyOverride = {
    {
QT_MOC_LITERAL(0, 0, 12), // "MKeyOverride"
QT_MOC_LITERAL(1, 13, 20), // "keyAttributesChanged"
QT_MOC_LITERAL(2, 34, 0), // ""
QT_MOC_LITERAL(3, 35, 5), // "keyId"
QT_MOC_LITERAL(4, 41, 35), // "MKeyOverride::KeyOverrideAttr..."
QT_MOC_LITERAL(5, 77, 17), // "changedAttributes"
QT_MOC_LITERAL(6, 95, 12), // "labelChanged"
QT_MOC_LITERAL(7, 108, 5), // "label"
QT_MOC_LITERAL(8, 114, 11), // "iconChanged"
QT_MOC_LITERAL(9, 126, 4), // "icon"
QT_MOC_LITERAL(10, 131, 18), // "highlightedChanged"
QT_MOC_LITERAL(11, 150, 11), // "highlighted"
QT_MOC_LITERAL(12, 162, 14), // "enabledChanged"
QT_MOC_LITERAL(13, 177, 7), // "enabled"
QT_MOC_LITERAL(14, 185, 8), // "setLabel"
QT_MOC_LITERAL(15, 194, 7), // "setIcon"
QT_MOC_LITERAL(16, 202, 14), // "setHighlighted"
QT_MOC_LITERAL(17, 217, 10) // "setEnabled"

    },
    "MKeyOverride\0keyAttributesChanged\0\0"
    "keyId\0MKeyOverride::KeyOverrideAttributes\0"
    "changedAttributes\0labelChanged\0label\0"
    "iconChanged\0icon\0highlightedChanged\0"
    "highlighted\0enabledChanged\0enabled\0"
    "setLabel\0setIcon\0setHighlighted\0"
    "setEnabled"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_MKeyOverride[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       9,   14, // methods
       4,   88, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       5,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    2,   59,    2, 0x06 /* Public */,
       6,    1,   64,    2, 0x06 /* Public */,
       8,    1,   67,    2, 0x06 /* Public */,
      10,    1,   70,    2, 0x06 /* Public */,
      12,    1,   73,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      14,    1,   76,    2, 0x0a /* Public */,
      15,    1,   79,    2, 0x0a /* Public */,
      16,    1,   82,    2, 0x0a /* Public */,
      17,    1,   85,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString, 0x80000000 | 4,    3,    5,
    QMetaType::Void, QMetaType::QString,    7,
    QMetaType::Void, QMetaType::QString,    9,
    QMetaType::Void, QMetaType::Bool,   11,
    QMetaType::Void, QMetaType::Bool,   13,

 // slots: parameters
    QMetaType::Void, QMetaType::QString,    7,
    QMetaType::Void, QMetaType::QString,    9,
    QMetaType::Void, QMetaType::Bool,   11,
    QMetaType::Void, QMetaType::Bool,   13,

 // properties: name, type, flags
       7, QMetaType::QString, 0x00495103,
       9, QMetaType::QString, 0x00495103,
      11, QMetaType::Bool, 0x00495103,
      13, QMetaType::Bool, 0x00495103,

 // properties: notify_signal_id
       1,
       2,
       3,
       4,

       0        // eod
};

void MKeyOverride::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<MKeyOverride *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->keyAttributesChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const MKeyOverride::KeyOverrideAttributes(*)>(_a[2]))); break;
        case 1: _t->labelChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->iconChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->highlightedChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 4: _t->enabledChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 5: _t->setLabel((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 6: _t->setIcon((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 7: _t->setHighlighted((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 8: _t->setEnabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (MKeyOverride::*)(const QString & , const MKeyOverride::KeyOverrideAttributes );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MKeyOverride::keyAttributesChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (MKeyOverride::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MKeyOverride::labelChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (MKeyOverride::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MKeyOverride::iconChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (MKeyOverride::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MKeyOverride::highlightedChanged)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (MKeyOverride::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MKeyOverride::enabledChanged)) {
                *result = 4;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<MKeyOverride *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->label(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->icon(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->highlighted(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->enabled(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<MKeyOverride *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setLabel(*reinterpret_cast< QString*>(_v)); break;
        case 1: _t->setIcon(*reinterpret_cast< QString*>(_v)); break;
        case 2: _t->setHighlighted(*reinterpret_cast< bool*>(_v)); break;
        case 3: _t->setEnabled(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject MKeyOverride::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_MKeyOverride.data,
    qt_meta_data_MKeyOverride,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *MKeyOverride::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_MKeyOverride.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int MKeyOverride::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 < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 9;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 4;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void MKeyOverride::keyAttributesChanged(const QString & _t1, const MKeyOverride::KeyOverrideAttributes _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void MKeyOverride::labelChanged(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void MKeyOverride::iconChanged(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void MKeyOverride::highlightedChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void MKeyOverride::enabledChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
