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

#include <memory>
#include "engine.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'engine.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.19. 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_MTimer_t {
    QByteArrayData data[3];
    char stringdata0[16];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_MTimer_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_MTimer_t qt_meta_stringdata_MTimer = {
    {
QT_MOC_LITERAL(0, 0, 6), // "MTimer"
QT_MOC_LITERAL(1, 7, 7), // "timeout"
QT_MOC_LITERAL(2, 15, 0) // ""

    },
    "MTimer\0timeout\0"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_MTimer[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       1,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   19,    2, 0x06 /* Public */,

 // signals: parameters
    QMetaType::Void,

       0        // eod
};

void MTimer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<MTimer *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->timeout(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (MTimer::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MTimer::timeout)) {
                *result = 0;
                return;
            }
        }
    }
    (void)_a;
}

QT_INIT_METAOBJECT const QMetaObject MTimer::staticMetaObject = { {
    QMetaObject::SuperData::link<QThread::staticMetaObject>(),
    qt_meta_stringdata_MTimer.data,
    qt_meta_data_MTimer,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int MTimer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QThread::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;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 1)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 1;
    }
    return _id;
}

// SIGNAL 0
void MTimer::timeout()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
struct qt_meta_stringdata_Engine_t {
    QByteArrayData data[56];
    char stringdata0[630];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Engine_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Engine_t qt_meta_stringdata_Engine = {
    {
QT_MOC_LITERAL(0, 0, 6), // "Engine"
QT_MOC_LITERAL(1, 7, 17), // "midiEventReceived"
QT_MOC_LITERAL(2, 25, 0), // ""
QT_MOC_LITERAL(3, 26, 9), // "MidiEvent"
QT_MOC_LITERAL(4, 36, 2), // "ev"
QT_MOC_LITERAL(5, 39, 4), // "tick"
QT_MOC_LITERAL(6, 44, 12), // "tempoUpdated"
QT_MOC_LITERAL(7, 57, 3), // "bpm"
QT_MOC_LITERAL(8, 61, 10), // "renameDock"
QT_MOC_LITERAL(9, 72, 4), // "name"
QT_MOC_LITERAL(10, 77, 8), // "windowID"
QT_MOC_LITERAL(11, 86, 9), // "setStatus"
QT_MOC_LITERAL(12, 96, 11), // "setModified"
QT_MOC_LITERAL(13, 108, 20), // "updatePatternPresets"
QT_MOC_LITERAL(14, 129, 1), // "n"
QT_MOC_LITERAL(15, 131, 1), // "p"
QT_MOC_LITERAL(16, 133, 5), // "index"
QT_MOC_LITERAL(17, 139, 14), // "sendController"
QT_MOC_LITERAL(18, 154, 8), // "ccnumber"
QT_MOC_LITERAL(19, 163, 7), // "channel"
QT_MOC_LITERAL(20, 171, 5), // "value"
QT_MOC_LITERAL(21, 177, 15), // "learnController"
QT_MOC_LITERAL(22, 193, 16), // "handleController"
QT_MOC_LITERAL(23, 210, 12), // "setMidiLearn"
QT_MOC_LITERAL(24, 223, 14), // "moduleWidgetID"
QT_MOC_LITERAL(25, 238, 9), // "controlID"
QT_MOC_LITERAL(26, 248, 19), // "setMidiControllable"
QT_MOC_LITERAL(27, 268, 2), // "on"
QT_MOC_LITERAL(28, 271, 15), // "setCompactStyle"
QT_MOC_LITERAL(29, 287, 13), // "setGrooveTick"
QT_MOC_LITERAL(30, 301, 10), // "grooveTick"
QT_MOC_LITERAL(31, 312, 17), // "setGrooveVelocity"
QT_MOC_LITERAL(32, 330, 14), // "grooveVelocity"
QT_MOC_LITERAL(33, 345, 15), // "setGrooveLength"
QT_MOC_LITERAL(34, 361, 12), // "grooveLength"
QT_MOC_LITERAL(35, 374, 16), // "setSendLogEvents"
QT_MOC_LITERAL(36, 391, 15), // "setUseMidiClock"
QT_MOC_LITERAL(37, 407, 19), // "setUseJackTransport"
QT_MOC_LITERAL(38, 427, 13), // "eventCallback"
QT_MOC_LITERAL(39, 441, 4), // "inEv"
QT_MOC_LITERAL(40, 446, 12), // "echoCallback"
QT_MOC_LITERAL(41, 459, 14), // "echo_from_trig"
QT_MOC_LITERAL(42, 474, 10), // "resetTicks"
QT_MOC_LITERAL(43, 485, 7), // "curtick"
QT_MOC_LITERAL(44, 493, 13), // "updateDisplay"
QT_MOC_LITERAL(45, 507, 7), // "restore"
QT_MOC_LITERAL(46, 515, 2), // "ix"
QT_MOC_LITERAL(47, 518, 12), // "schedRestore"
QT_MOC_LITERAL(48, 531, 15), // "removeParStores"
QT_MOC_LITERAL(49, 547, 5), // "store"
QT_MOC_LITERAL(50, 553, 14), // "requestRestore"
QT_MOC_LITERAL(51, 568, 27), // "updateGlobRestoreTimeModule"
QT_MOC_LITERAL(52, 596, 11), // "windowIndex"
QT_MOC_LITERAL(53, 608, 11), // "mkMidiEvent"
QT_MOC_LITERAL(54, 620, 4), // "type"
QT_MOC_LITERAL(55, 625, 4) // "data"

    },
    "Engine\0midiEventReceived\0\0MidiEvent\0"
    "ev\0tick\0tempoUpdated\0bpm\0renameDock\0"
    "name\0windowID\0setStatus\0setModified\0"
    "updatePatternPresets\0n\0p\0index\0"
    "sendController\0ccnumber\0channel\0value\0"
    "learnController\0handleController\0"
    "setMidiLearn\0moduleWidgetID\0controlID\0"
    "setMidiControllable\0on\0setCompactStyle\0"
    "setGrooveTick\0grooveTick\0setGrooveVelocity\0"
    "grooveVelocity\0setGrooveLength\0"
    "grooveLength\0setSendLogEvents\0"
    "setUseMidiClock\0setUseJackTransport\0"
    "eventCallback\0inEv\0echoCallback\0"
    "echo_from_trig\0resetTicks\0curtick\0"
    "updateDisplay\0restore\0ix\0schedRestore\0"
    "removeParStores\0store\0requestRestore\0"
    "updateGlobRestoreTimeModule\0windowIndex\0"
    "mkMidiEvent\0type\0data"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Engine[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      32,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    2,  174,    2, 0x06 /* Public */,
       6,    1,  179,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    2,  182,    2, 0x0a /* Public */,
      11,    1,  187,    2, 0x0a /* Public */,
      12,    1,  190,    2, 0x0a /* Public */,
      13,    3,  193,    2, 0x0a /* Public */,
      17,    3,  200,    2, 0x0a /* Public */,
      21,    2,  207,    2, 0x0a /* Public */,
      22,    3,  212,    2, 0x0a /* Public */,
      23,    2,  219,    2, 0x0a /* Public */,
      26,    1,  224,    2, 0x0a /* Public */,
      28,    1,  227,    2, 0x0a /* Public */,
      29,    1,  230,    2, 0x0a /* Public */,
      31,    1,  233,    2, 0x0a /* Public */,
      33,    1,  236,    2, 0x0a /* Public */,
      35,    1,  239,    2, 0x0a /* Public */,
      36,    1,  242,    2, 0x0a /* Public */,
      37,    1,  245,    2, 0x0a /* Public */,
      38,    1,  248,    2, 0x0a /* Public */,
      40,    1,  251,    2, 0x0a /* Public */,
      42,    1,  254,    2, 0x0a /* Public */,
      44,    0,  257,    2, 0x0a /* Public */,
      45,    1,  258,    2, 0x0a /* Public */,
      47,    1,  261,    2, 0x0a /* Public */,
      48,    1,  264,    2, 0x0a /* Public */,
      49,    1,  267,    2, 0x0a /* Public */,
      50,    1,  270,    2, 0x0a /* Public */,
      51,    1,  273,    2, 0x0a /* Public */,
      53,    4,  276,    2, 0x0a /* Public */,
      53,    3,  285,    2, 0x2a /* Public | MethodCloned */,
      53,    2,  292,    2, 0x2a /* Public | MethodCloned */,
      53,    1,  297,    2, 0x2a /* Public | MethodCloned */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, QMetaType::Int,    4,    5,
    QMetaType::Void, QMetaType::Double,    7,

 // slots: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::Int,    9,   10,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::Int,   14,   15,   16,
    QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int,   18,   19,   20,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   18,   19,
    QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int,   18,   19,   20,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   24,   25,
    QMetaType::Void, QMetaType::Bool,   27,
    QMetaType::Void, QMetaType::Bool,   27,
    QMetaType::Void, QMetaType::Int,   30,
    QMetaType::Void, QMetaType::Int,   32,
    QMetaType::Void, QMetaType::Int,   34,
    QMetaType::Void, QMetaType::Bool,   27,
    QMetaType::Void, QMetaType::Bool,   27,
    QMetaType::Void, QMetaType::Bool,   27,
    QMetaType::Bool, 0x80000000 | 3,   39,
    QMetaType::Void, QMetaType::Bool,   41,
    QMetaType::Void, QMetaType::Int,   43,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,   46,
    QMetaType::Void, QMetaType::Int,   46,
    QMetaType::Void, QMetaType::Int,   46,
    QMetaType::Void, QMetaType::Int,   46,
    QMetaType::Void, QMetaType::Int,   46,
    QMetaType::Void, QMetaType::Int,   52,
    0x80000000 | 3, QMetaType::Int, QMetaType::Int, QMetaType::Int, QMetaType::Int,   54,   19,   55,   20,
    0x80000000 | 3, QMetaType::Int, QMetaType::Int, QMetaType::Int,   54,   19,   55,
    0x80000000 | 3, QMetaType::Int, QMetaType::Int,   54,   19,
    0x80000000 | 3, QMetaType::Int,   54,

       0        // eod
};

void Engine::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<Engine *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->midiEventReceived((*reinterpret_cast< MidiEvent(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 1: _t->tempoUpdated((*reinterpret_cast< double(*)>(_a[1]))); break;
        case 2: _t->renameDock((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 3: _t->setStatus((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 4: _t->setModified((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 5: _t->updatePatternPresets((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 6: _t->sendController((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 7: _t->learnController((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 8: _t->handleController((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 9: _t->setMidiLearn((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 10: _t->setMidiControllable((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 11: _t->setCompactStyle((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 12: _t->setGrooveTick((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 13: _t->setGrooveVelocity((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 14: _t->setGrooveLength((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 15: _t->setSendLogEvents((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 16: _t->setUseMidiClock((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 17: _t->setUseJackTransport((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 18: { bool _r = _t->eventCallback((*reinterpret_cast< MidiEvent(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 19: _t->echoCallback((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 20: _t->resetTicks((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 21: _t->updateDisplay(); break;
        case 22: _t->restore((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 23: _t->schedRestore((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 24: _t->removeParStores((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 25: _t->store((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 26: _t->requestRestore((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 27: _t->updateGlobRestoreTimeModule((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 28: { MidiEvent _r = _t->mkMidiEvent((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4])));
            if (_a[0]) *reinterpret_cast< MidiEvent*>(_a[0]) = std::move(_r); }  break;
        case 29: { MidiEvent _r = _t->mkMidiEvent((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< MidiEvent*>(_a[0]) = std::move(_r); }  break;
        case 30: { MidiEvent _r = _t->mkMidiEvent((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< MidiEvent*>(_a[0]) = std::move(_r); }  break;
        case 31: { MidiEvent _r = _t->mkMidiEvent((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< MidiEvent*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (Engine::*)(MidiEvent , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Engine::midiEventReceived)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (Engine::*)(double );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Engine::tempoUpdated)) {
                *result = 1;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject Engine::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_Engine.data,
    qt_meta_data_Engine,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int Engine::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 < 32)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 32;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 32)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 32;
    }
    return _id;
}

// SIGNAL 0
void Engine::midiEventReceived(MidiEvent _t1, int _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 Engine::tempoUpdated(double _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
