/****************************************************************************
** Meta object code from reading C++ file 'parleydocument.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/parley-17.12.3/src/parleydocument.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'parleydocument.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_ParleyDocument_t {
    QByteArrayData data[25];
    char stringdata0[283];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_ParleyDocument_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_ParleyDocument_t qt_meta_stringdata_ParleyDocument = {
    {
QT_MOC_LITERAL(0, 0, 14), // "ParleyDocument"
QT_MOC_LITERAL(1, 15, 15), // "documentChanged"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 16), // "KEduVocDocument*"
QT_MOC_LITERAL(4, 49, 11), // "newDocument"
QT_MOC_LITERAL(5, 61, 16), // "languagesChanged"
QT_MOC_LITERAL(6, 78, 16), // "statesNeedSaving"
QT_MOC_LITERAL(7, 95, 11), // "slotFileNew"
QT_MOC_LITERAL(8, 107, 12), // "slotFileOpen"
QT_MOC_LITERAL(9, 120, 18), // "slotFileOpenRecent"
QT_MOC_LITERAL(10, 139, 3), // "url"
QT_MOC_LITERAL(11, 143, 8), // "openGHNS"
QT_MOC_LITERAL(12, 152, 8), // "slotGHNS"
QT_MOC_LITERAL(13, 161, 10), // "uploadFile"
QT_MOC_LITERAL(14, 172, 4), // "open"
QT_MOC_LITERAL(15, 177, 5), // "close"
QT_MOC_LITERAL(16, 183, 10), // "queryClose"
QT_MOC_LITERAL(17, 194, 13), // "slotFileMerge"
QT_MOC_LITERAL(18, 208, 4), // "save"
QT_MOC_LITERAL(19, 213, 6), // "saveAs"
QT_MOC_LITERAL(20, 220, 4), // "file"
QT_MOC_LITERAL(21, 225, 12), // "exportDialog"
QT_MOC_LITERAL(22, 238, 6), // "wizard"
QT_MOC_LITERAL(23, 245, 18), // "documentProperties"
QT_MOC_LITERAL(24, 264, 18) // "languageProperties"

    },
    "ParleyDocument\0documentChanged\0\0"
    "KEduVocDocument*\0newDocument\0"
    "languagesChanged\0statesNeedSaving\0"
    "slotFileNew\0slotFileOpen\0slotFileOpenRecent\0"
    "url\0openGHNS\0slotGHNS\0uploadFile\0open\0"
    "close\0queryClose\0slotFileMerge\0save\0"
    "saveAs\0file\0exportDialog\0wizard\0"
    "documentProperties\0languageProperties"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_ParleyDocument[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,  114,    2, 0x06 /* Public */,
       5,    0,  117,    2, 0x06 /* Public */,
       6,    0,  118,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       7,    0,  119,    2, 0x0a /* Public */,
       8,    0,  120,    2, 0x0a /* Public */,
       9,    1,  121,    2, 0x0a /* Public */,
      11,    0,  124,    2, 0x0a /* Public */,
      12,    0,  125,    2, 0x0a /* Public */,
      13,    0,  126,    2, 0x0a /* Public */,
      14,    1,  127,    2, 0x0a /* Public */,
      15,    0,  130,    2, 0x0a /* Public */,
      16,    0,  131,    2, 0x0a /* Public */,
      17,    0,  132,    2, 0x0a /* Public */,
      18,    0,  133,    2, 0x0a /* Public */,
      19,    1,  134,    2, 0x0a /* Public */,
      19,    0,  137,    2, 0x2a /* Public | MethodCloned */,
      21,    0,  138,    2, 0x0a /* Public */,
       4,    1,  139,    2, 0x0a /* Public */,
      23,    0,  142,    2, 0x0a /* Public */,
      24,    0,  143,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QUrl,   10,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Bool, QMetaType::QUrl,    2,
    QMetaType::Void,
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QUrl,   20,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   22,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void ParleyDocument::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        ParleyDocument *_t = static_cast<ParleyDocument *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->documentChanged((*reinterpret_cast< KEduVocDocument*(*)>(_a[1]))); break;
        case 1: _t->languagesChanged(); break;
        case 2: _t->statesNeedSaving(); break;
        case 3: _t->slotFileNew(); break;
        case 4: _t->slotFileOpen(); break;
        case 5: _t->slotFileOpenRecent((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
        case 6: _t->openGHNS(); break;
        case 7: _t->slotGHNS(); break;
        case 8: _t->uploadFile(); break;
        case 9: { bool _r = _t->open((*reinterpret_cast< const QUrl(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 10: _t->close(); break;
        case 11: { bool _r = _t->queryClose();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 12: _t->slotFileMerge(); break;
        case 13: _t->save(); break;
        case 14: _t->saveAs((*reinterpret_cast< QUrl(*)>(_a[1]))); break;
        case 15: _t->saveAs(); break;
        case 16: _t->exportDialog(); break;
        case 17: _t->newDocument((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 18: _t->documentProperties(); break;
        case 19: _t->languageProperties(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< KEduVocDocument* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (ParleyDocument::*_t)(KEduVocDocument * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ParleyDocument::documentChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (ParleyDocument::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ParleyDocument::languagesChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (ParleyDocument::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ParleyDocument::statesNeedSaving)) {
                *result = 2;
                return;
            }
        }
    }
}

const QMetaObject ParleyDocument::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_ParleyDocument.data,
      qt_meta_data_ParleyDocument,  qt_static_metacall, nullptr, nullptr}
};


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

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

int ParleyDocument::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 < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    return _id;
}

// SIGNAL 0
void ParleyDocument::documentChanged(KEduVocDocument * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

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

// SIGNAL 2
void ParleyDocument::statesNeedSaving()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
