/****************************************************************************
** Meta object code from reading C++ file 'basedocument.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 "../../src/basedocument.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'basedocument.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_BaseDocument_t {
    QByteArrayData data[16];
    char stringdata0[135];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_BaseDocument_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_BaseDocument_t qt_meta_stringdata_BaseDocument = {
    {
QT_MOC_LITERAL(0, 0, 12), // "BaseDocument"
QT_MOC_LITERAL(1, 13, 4), // "play"
QT_MOC_LITERAL(2, 18, 0), // ""
QT_MOC_LITERAL(3, 19, 14), // "CsoundOptions*"
QT_MOC_LITERAL(4, 34, 7), // "options"
QT_MOC_LITERAL(5, 42, 5), // "pause"
QT_MOC_LITERAL(6, 48, 4), // "stop"
QT_MOC_LITERAL(7, 53, 6), // "record"
QT_MOC_LITERAL(8, 60, 4), // "mode"
QT_MOC_LITERAL(9, 65, 13), // "stopRecording"
QT_MOC_LITERAL(10, 79, 10), // "queueEvent"
QT_MOC_LITERAL(11, 90, 4), // "line"
QT_MOC_LITERAL(12, 95, 5), // "delay"
QT_MOC_LITERAL(13, 101, 14), // "registerButton"
QT_MOC_LITERAL(14, 116, 11), // "QuteButton*"
QT_MOC_LITERAL(15, 128, 6) // "button"

    },
    "BaseDocument\0play\0\0CsoundOptions*\0"
    "options\0pause\0stop\0record\0mode\0"
    "stopRecording\0queueEvent\0line\0delay\0"
    "registerButton\0QuteButton*\0button"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_BaseDocument[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    1,   54,    2, 0x0a /* Public */,
       5,    0,   57,    2, 0x0a /* Public */,
       6,    0,   58,    2, 0x0a /* Public */,
       7,    1,   59,    2, 0x0a /* Public */,
       9,    0,   62,    2, 0x0a /* Public */,
      10,    2,   63,    2, 0x0a /* Public */,
      10,    1,   68,    2, 0x2a /* Public | MethodCloned */,
      13,    1,   71,    2, 0x0a /* Public */,

 // slots: parameters
    QMetaType::Int, 0x80000000 | 3,    4,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Int, QMetaType::Int,    8,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, QMetaType::Int,   11,   12,
    QMetaType::Void, QMetaType::QString,   11,
    QMetaType::Void, 0x80000000 | 14,   15,

       0        // eod
};

void BaseDocument::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<BaseDocument *>(_o);
        (void)_t;
        switch (_id) {
        case 0: { int _r = _t->play((*reinterpret_cast< CsoundOptions*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 1: _t->pause(); break;
        case 2: _t->stop(); break;
        case 3: { int _r = _t->record((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 4: _t->stopRecording(); break;
        case 5: _t->queueEvent((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 6: _t->queueEvent((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 7: _t->registerButton((*reinterpret_cast< QuteButton*(*)>(_a[1]))); break;
        default: ;
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject BaseDocument::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_BaseDocument.data,
    qt_meta_data_BaseDocument,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

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