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

#include "../../src/parley-17.08.3/src/scripts/scripting/document.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'document.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.2. 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_Scripting__Document_t {
    QByteArrayData data[60];
    char stringdata0[626];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Scripting__Document_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Scripting__Document_t qt_meta_stringdata_Scripting__Document = {
    {
QT_MOC_LITERAL(0, 0, 19), // "Scripting::Document"
QT_MOC_LITERAL(1, 20, 9), // "newLesson"
QT_MOC_LITERAL(2, 30, 0), // ""
QT_MOC_LITERAL(3, 31, 4), // "name"
QT_MOC_LITERAL(4, 36, 12), // "appendLesson"
QT_MOC_LITERAL(5, 49, 6), // "lesson"
QT_MOC_LITERAL(6, 56, 15), // "appendNewLesson"
QT_MOC_LITERAL(7, 72, 7), // "Lesson*"
QT_MOC_LITERAL(8, 80, 6), // "parent"
QT_MOC_LITERAL(9, 87, 10), // "allLessons"
QT_MOC_LITERAL(10, 98, 10), // "findLesson"
QT_MOC_LITERAL(11, 109, 11), // "setWordType"
QT_MOC_LITERAL(12, 121, 2), // "tr"
QT_MOC_LITERAL(13, 124, 8), // "wordtype"
QT_MOC_LITERAL(14, 133, 9), // "wordTypes"
QT_MOC_LITERAL(15, 143, 6), // "saveAs"
QT_MOC_LITERAL(16, 150, 3), // "url"
QT_MOC_LITERAL(17, 154, 25), // "KEduVocDocument::FileType"
QT_MOC_LITERAL(18, 180, 2), // "ft"
QT_MOC_LITERAL(19, 183, 9), // "generator"
QT_MOC_LITERAL(20, 193, 5), // "merge"
QT_MOC_LITERAL(21, 199, 9), // "Document*"
QT_MOC_LITERAL(22, 209, 10), // "docToMerge"
QT_MOC_LITERAL(23, 220, 16), // "matchIdentifiers"
QT_MOC_LITERAL(24, 237, 15), // "identifierCount"
QT_MOC_LITERAL(25, 253, 13), // "newIdentifier"
QT_MOC_LITERAL(26, 267, 19), // "appendNewIdentifier"
QT_MOC_LITERAL(27, 287, 6), // "locale"
QT_MOC_LITERAL(28, 294, 16), // "appendIdentifier"
QT_MOC_LITERAL(29, 311, 11), // "Identifier*"
QT_MOC_LITERAL(30, 323, 10), // "identifier"
QT_MOC_LITERAL(31, 334, 5), // "index"
QT_MOC_LITERAL(32, 340, 16), // "removeIdentifier"
QT_MOC_LITERAL(33, 357, 11), // "identifiers"
QT_MOC_LITERAL(34, 369, 14), // "detectFileType"
QT_MOC_LITERAL(35, 384, 8), // "fileName"
QT_MOC_LITERAL(36, 393, 7), // "pattern"
QT_MOC_LITERAL(37, 401, 31), // "KEduVocDocument::FileDialogMode"
QT_MOC_LITERAL(38, 433, 4), // "mode"
QT_MOC_LITERAL(39, 438, 16), // "errorDescription"
QT_MOC_LITERAL(40, 455, 9), // "errorCode"
QT_MOC_LITERAL(41, 465, 10), // "rootLesson"
QT_MOC_LITERAL(42, 476, 5), // "title"
QT_MOC_LITERAL(43, 482, 6), // "author"
QT_MOC_LITERAL(44, 489, 13), // "authorContact"
QT_MOC_LITERAL(45, 503, 7), // "license"
QT_MOC_LITERAL(46, 511, 15), // "documentComment"
QT_MOC_LITERAL(47, 527, 8), // "category"
QT_MOC_LITERAL(48, 536, 7), // "version"
QT_MOC_LITERAL(49, 544, 12), // "csvDelimiter"
QT_MOC_LITERAL(50, 557, 8), // "FileType"
QT_MOC_LITERAL(51, 566, 7), // "KvdNone"
QT_MOC_LITERAL(52, 574, 9), // "Automatic"
QT_MOC_LITERAL(53, 584, 5), // "Kvtml"
QT_MOC_LITERAL(54, 590, 3), // "Wql"
QT_MOC_LITERAL(55, 594, 6), // "Pauker"
QT_MOC_LITERAL(56, 601, 8), // "Vokabeln"
QT_MOC_LITERAL(57, 610, 4), // "Xdxf"
QT_MOC_LITERAL(58, 615, 3), // "Csv"
QT_MOC_LITERAL(59, 619, 6) // "Kvtml1"

    },
    "Scripting::Document\0newLesson\0\0name\0"
    "appendLesson\0lesson\0appendNewLesson\0"
    "Lesson*\0parent\0allLessons\0findLesson\0"
    "setWordType\0tr\0wordtype\0wordTypes\0"
    "saveAs\0url\0KEduVocDocument::FileType\0"
    "ft\0generator\0merge\0Document*\0docToMerge\0"
    "matchIdentifiers\0identifierCount\0"
    "newIdentifier\0appendNewIdentifier\0"
    "locale\0appendIdentifier\0Identifier*\0"
    "identifier\0index\0removeIdentifier\0"
    "identifiers\0detectFileType\0fileName\0"
    "pattern\0KEduVocDocument::FileDialogMode\0"
    "mode\0errorDescription\0errorCode\0"
    "rootLesson\0title\0author\0authorContact\0"
    "license\0documentComment\0category\0"
    "version\0csvDelimiter\0FileType\0KvdNone\0"
    "Automatic\0Kvtml\0Wql\0Pauker\0Vokabeln\0"
    "Xdxf\0Csv\0Kvtml1"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Scripting__Document[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      22,   14, // methods
      11,  194, // properties
       1,  227, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags
       1,    1,  124,    2, 0x0a /* Public */,
       4,    1,  127,    2, 0x0a /* Public */,
       6,    1,  130,    2, 0x0a /* Public */,
       6,    2,  133,    2, 0x0a /* Public */,
       9,    0,  138,    2, 0x0a /* Public */,
      10,    1,  139,    2, 0x0a /* Public */,
      11,    2,  142,    2, 0x0a /* Public */,
      14,    0,  147,    2, 0x0a /* Public */,
      15,    3,  148,    2, 0x0a /* Public */,
      15,    2,  155,    2, 0x2a /* Public | MethodCloned */,
      15,    1,  160,    2, 0x2a /* Public | MethodCloned */,
      20,    2,  163,    2, 0x0a /* Public */,
      24,    0,  168,    2, 0x0a /* Public */,
      25,    0,  169,    2, 0x0a /* Public */,
      26,    2,  170,    2, 0x0a /* Public */,
      28,    1,  175,    2, 0x0a /* Public */,
      30,    1,  178,    2, 0x0a /* Public */,
      32,    1,  181,    2, 0x0a /* Public */,
      33,    0,  184,    2, 0x0a /* Public */,
      34,    1,  185,    2, 0x0a /* Public */,
      36,    1,  188,    2, 0x0a /* Public */,
      39,    1,  191,    2, 0x0a /* Public */,

 // slots: parameters
    QMetaType::QObjectStar, QMetaType::QString,    3,
    QMetaType::Void, QMetaType::QObjectStar,    5,
    QMetaType::QObjectStar, QMetaType::QString,    3,
    QMetaType::QObjectStar, QMetaType::QString, 0x80000000 | 7,    3,    8,
    QMetaType::QVariantList,
    QMetaType::QObjectStar, QMetaType::QString,    3,
    QMetaType::Void, QMetaType::QObjectStar, QMetaType::QString,   12,   13,
    QMetaType::QStringList,
    QMetaType::Int, QMetaType::QString, 0x80000000 | 17, QMetaType::QString,   16,   18,   19,
    QMetaType::Int, QMetaType::QString, 0x80000000 | 17,   16,   18,
    QMetaType::Int, QMetaType::QString,   16,
    QMetaType::Void, 0x80000000 | 21, QMetaType::Bool,   22,   23,
    QMetaType::Int,
    QMetaType::QObjectStar,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,    3,   27,
    QMetaType::Int, 0x80000000 | 29,   30,
    QMetaType::QObjectStar, QMetaType::Int,   31,
    QMetaType::Void, QMetaType::Int,   31,
    QMetaType::QVariantList,
    0x80000000 | 17, QMetaType::QString,   35,
    QMetaType::QString, 0x80000000 | 37,   38,
    QMetaType::QString, QMetaType::Int,   40,

 // properties: name, type, flags
      41, QMetaType::QObjectStar, 0x00095001,
      42, QMetaType::QString, 0x00095103,
      43, QMetaType::QString, 0x00095103,
      44, QMetaType::QString, 0x00095103,
      45, QMetaType::QString, 0x00095103,
      46, QMetaType::QString, 0x00095103,
      47, QMetaType::QString, 0x00095103,
      19, QMetaType::QString, 0x00095103,
      48, QMetaType::QString, 0x00095103,
      49, QMetaType::QString, 0x00095103,
      16, QMetaType::QString, 0x00095103,

 // enums: name, flags, count, data
      50, 0x0,    9,  231,

 // enum data: key, value
      51, uint(Scripting::Document::KvdNone),
      52, uint(Scripting::Document::Automatic),
      53, uint(Scripting::Document::Kvtml),
      54, uint(Scripting::Document::Wql),
      55, uint(Scripting::Document::Pauker),
      56, uint(Scripting::Document::Vokabeln),
      57, uint(Scripting::Document::Xdxf),
      58, uint(Scripting::Document::Csv),
      59, uint(Scripting::Document::Kvtml1),

       0        // eod
};

void Scripting::Document::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Document *_t = static_cast<Document *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: { QObject* _r = _t->newLesson((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); }  break;
        case 1: _t->appendLesson((*reinterpret_cast< QObject*(*)>(_a[1]))); break;
        case 2: { QObject* _r = _t->appendNewLesson((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); }  break;
        case 3: { QObject* _r = _t->appendNewLesson((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< Lesson*(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); }  break;
        case 4: { QVariantList _r = _t->allLessons();
            if (_a[0]) *reinterpret_cast< QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 5: { QObject* _r = _t->findLesson((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); }  break;
        case 6: _t->setWordType((*reinterpret_cast< QObject*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 7: { QStringList _r = _t->wordTypes();
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 8: { int _r = _t->saveAs((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< KEduVocDocument::FileType(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 9: { int _r = _t->saveAs((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< KEduVocDocument::FileType(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 10: { int _r = _t->saveAs((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 11: _t->merge((*reinterpret_cast< Document*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 12: { int _r = _t->identifierCount();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 13: { QObject* _r = _t->newIdentifier();
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); }  break;
        case 14: _t->appendNewIdentifier((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 15: { int _r = _t->appendIdentifier((*reinterpret_cast< Identifier*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 16: { QObject* _r = _t->identifier((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); }  break;
        case 17: _t->removeIdentifier((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 18: { QVariantList _r = _t->identifiers();
            if (_a[0]) *reinterpret_cast< QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 19: { KEduVocDocument::FileType _r = _t->detectFileType((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< KEduVocDocument::FileType*>(_a[0]) = std::move(_r); }  break;
        case 20: { QString _r = _t->pattern((*reinterpret_cast< KEduVocDocument::FileDialogMode(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 21: { QString _r = _t->errorDescription((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Lesson* >(); break;
            }
            break;
        case 11:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Document* >(); break;
            }
            break;
        case 15:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Identifier* >(); break;
            }
            break;
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        Document *_t = static_cast<Document *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QObject**>(_v) = _t->rootLesson(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->title(); break;
        case 2: *reinterpret_cast< QString*>(_v) = _t->author(); break;
        case 3: *reinterpret_cast< QString*>(_v) = _t->authorContact(); break;
        case 4: *reinterpret_cast< QString*>(_v) = _t->license(); break;
        case 5: *reinterpret_cast< QString*>(_v) = _t->documentComment(); break;
        case 6: *reinterpret_cast< QString*>(_v) = _t->category(); break;
        case 7: *reinterpret_cast< QString*>(_v) = _t->generator(); break;
        case 8: *reinterpret_cast< QString*>(_v) = _t->version(); break;
        case 9: *reinterpret_cast< QString*>(_v) = _t->csvDelimiter(); break;
        case 10: *reinterpret_cast< QString*>(_v) = _t->url(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        Document *_t = static_cast<Document *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setTitle(*reinterpret_cast< QString*>(_v)); break;
        case 2: _t->setAuthor(*reinterpret_cast< QString*>(_v)); break;
        case 3: _t->setAuthorContact(*reinterpret_cast< QString*>(_v)); break;
        case 4: _t->setLicense(*reinterpret_cast< QString*>(_v)); break;
        case 5: _t->setDocumentComment(*reinterpret_cast< QString*>(_v)); break;
        case 6: _t->setCategory(*reinterpret_cast< QString*>(_v)); break;
        case 7: _t->setGenerator(*reinterpret_cast< QString*>(_v)); break;
        case 8: _t->setVersion(*reinterpret_cast< QString*>(_v)); break;
        case 9: _t->setCsvDelimiter(*reinterpret_cast< QString*>(_v)); break;
        case 10: _t->setUrl(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Scripting::Document::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Scripting__Document.data,
      qt_meta_data_Scripting__Document,  qt_static_metacall, nullptr, nullptr}
};


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

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

int Scripting::Document::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 < 22)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 22;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 22)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 22;
    }
#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 -= 11;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 11;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
