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

#include "../../src/ktouch-17.12.3/src/core/key.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'key.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. 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_Key_t {
    QByteArrayData data[25];
    char stringdata0[300];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Key_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Key_t qt_meta_stringdata_Key = {
    {
QT_MOC_LITERAL(0, 0, 3), // "Key"
QT_MOC_LITERAL(1, 4, 18), // "fingerIndexChanged"
QT_MOC_LITERAL(2, 23, 0), // ""
QT_MOC_LITERAL(3, 24, 22), // "hasHapticMarkerChanged"
QT_MOC_LITERAL(4, 47, 19), // "keyCharCountChanged"
QT_MOC_LITERAL(5, 67, 21), // "keyCharAboutToBeAdded"
QT_MOC_LITERAL(6, 89, 8), // "KeyChar*"
QT_MOC_LITERAL(7, 98, 7), // "keyChar"
QT_MOC_LITERAL(8, 106, 5), // "index"
QT_MOC_LITERAL(9, 112, 12), // "keyCharAdded"
QT_MOC_LITERAL(10, 125, 24), // "keyCharsAboutToBeRemoved"
QT_MOC_LITERAL(11, 150, 5), // "first"
QT_MOC_LITERAL(12, 156, 4), // "last"
QT_MOC_LITERAL(13, 161, 15), // "keyCharsRemoved"
QT_MOC_LITERAL(14, 177, 7), // "keyType"
QT_MOC_LITERAL(15, 185, 10), // "addKeyChar"
QT_MOC_LITERAL(16, 196, 13), // "insertKeyChar"
QT_MOC_LITERAL(17, 210, 13), // "removeKeyChar"
QT_MOC_LITERAL(18, 224, 13), // "clearKeyChars"
QT_MOC_LITERAL(19, 238, 8), // "copyFrom"
QT_MOC_LITERAL(20, 247, 4), // "Key*"
QT_MOC_LITERAL(21, 252, 6), // "source"
QT_MOC_LITERAL(22, 259, 11), // "fingerIndex"
QT_MOC_LITERAL(23, 271, 15), // "hasHapticMarker"
QT_MOC_LITERAL(24, 287, 12) // "keyCharCount"

    },
    "Key\0fingerIndexChanged\0\0hasHapticMarkerChanged\0"
    "keyCharCountChanged\0keyCharAboutToBeAdded\0"
    "KeyChar*\0keyChar\0index\0keyCharAdded\0"
    "keyCharsAboutToBeRemoved\0first\0last\0"
    "keyCharsRemoved\0keyType\0addKeyChar\0"
    "insertKeyChar\0removeKeyChar\0clearKeyChars\0"
    "copyFrom\0Key*\0source\0fingerIndex\0"
    "hasHapticMarker\0keyCharCount"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Key[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      14,   14, // methods
       3,  118, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       7,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   84,    2, 0x06 /* Public */,
       3,    0,   85,    2, 0x06 /* Public */,
       4,    0,   86,    2, 0x06 /* Public */,
       5,    2,   87,    2, 0x06 /* Public */,
       9,    0,   92,    2, 0x06 /* Public */,
      10,    2,   93,    2, 0x06 /* Public */,
      13,    0,   98,    2, 0x06 /* Public */,

 // methods: name, argc, parameters, tag, flags
      14,    0,   99,    2, 0x02 /* Public */,
       7,    1,  100,    2, 0x02 /* Public */,
      15,    1,  103,    2, 0x02 /* Public */,
      16,    2,  106,    2, 0x02 /* Public */,
      17,    1,  111,    2, 0x02 /* Public */,
      18,    0,  114,    2, 0x02 /* Public */,
      19,    1,  115,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 6, QMetaType::Int,    7,    8,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   11,   12,
    QMetaType::Void,

 // methods: parameters
    QMetaType::QString,
    0x80000000 | 6, QMetaType::Int,    8,
    QMetaType::Void, 0x80000000 | 6,    7,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 6,    8,    7,
    QMetaType::Void, QMetaType::Int,    8,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 20,   21,

 // properties: name, type, flags
      22, QMetaType::Int, 0x00495103,
      23, QMetaType::Bool, 0x00495103,
      24, QMetaType::Int, 0x00495001,

 // properties: notify_signal_id
       0,
       1,
       2,

       0        // eod
};

void Key::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Key *_t = static_cast<Key *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->fingerIndexChanged(); break;
        case 1: _t->hasHapticMarkerChanged(); break;
        case 2: _t->keyCharCountChanged(); break;
        case 3: _t->keyCharAboutToBeAdded((*reinterpret_cast< KeyChar*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 4: _t->keyCharAdded(); break;
        case 5: _t->keyCharsAboutToBeRemoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 6: _t->keyCharsRemoved(); break;
        case 7: { QString _r = _t->keyType();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 8: { KeyChar* _r = _t->keyChar((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< KeyChar**>(_a[0]) = std::move(_r); }  break;
        case 9: _t->addKeyChar((*reinterpret_cast< KeyChar*(*)>(_a[1]))); break;
        case 10: _t->insertKeyChar((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< KeyChar*(*)>(_a[2]))); break;
        case 11: _t->removeKeyChar((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 12: _t->clearKeyChars(); break;
        case 13: _t->copyFrom((*reinterpret_cast< Key*(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 13:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Key* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (Key::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Key::fingerIndexChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (Key::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Key::hasHapticMarkerChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (Key::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Key::keyCharCountChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (Key::*_t)(KeyChar * , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Key::keyCharAboutToBeAdded)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (Key::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Key::keyCharAdded)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (Key::*_t)(int , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Key::keyCharsAboutToBeRemoved)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (Key::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Key::keyCharsRemoved)) {
                *result = 6;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        Key *_t = static_cast<Key *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = _t->fingerIndex(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->hasHapticMarker(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->keyCharCount(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        Key *_t = static_cast<Key *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setFingerIndex(*reinterpret_cast< int*>(_v)); break;
        case 1: _t->setHasHapticMarker(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Key::staticMetaObject = {
    { &AbstractKey::staticMetaObject, qt_meta_stringdata_Key.data,
      qt_meta_data_Key,  qt_static_metacall, nullptr, nullptr}
};


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

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

int Key::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = AbstractKey::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
#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 -= 3;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 3;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

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

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

// SIGNAL 3
void Key::keyCharAboutToBeAdded(KeyChar * _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

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

// SIGNAL 5
void Key::keyCharsAboutToBeRemoved(int _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void Key::keyCharsRemoved()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
