/****************************************************************************
** Meta object code from reading C++ file 'parley.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/scripts/scripting/parley.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'parley.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_Scripting__Parley_t {
    QByteArrayData data[55];
    char stringdata0[527];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Scripting__Parley_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Scripting__Parley_t qt_meta_stringdata_Scripting__Parley = {
    {
QT_MOC_LITERAL(0, 0, 17), // "Scripting::Parley"
QT_MOC_LITERAL(1, 18, 13), // "translateWord"
QT_MOC_LITERAL(2, 32, 0), // ""
QT_MOC_LITERAL(3, 33, 4), // "word"
QT_MOC_LITERAL(4, 38, 12), // "fromLanguage"
QT_MOC_LITERAL(5, 51, 10), // "toLanguage"
QT_MOC_LITERAL(6, 62, 19), // "translationFinished"
QT_MOC_LITERAL(7, 82, 18), // "translationStarted"
QT_MOC_LITERAL(8, 101, 8), // "dataDirs"
QT_MOC_LITERAL(9, 110, 10), // "pluginDirs"
QT_MOC_LITERAL(10, 121, 15), // "selectedEntries"
QT_MOC_LITERAL(11, 137, 20), // "selectedTranslations"
QT_MOC_LITERAL(12, 158, 14), // "addTranslation"
QT_MOC_LITERAL(13, 173, 11), // "translation"
QT_MOC_LITERAL(14, 185, 7), // "locales"
QT_MOC_LITERAL(15, 193, 10), // "localeName"
QT_MOC_LITERAL(16, 204, 6), // "locale"
QT_MOC_LITERAL(17, 211, 4), // "open"
QT_MOC_LITERAL(18, 216, 8), // "filename"
QT_MOC_LITERAL(19, 225, 11), // "newDocument"
QT_MOC_LITERAL(20, 237, 9), // "newAction"
QT_MOC_LITERAL(21, 247, 4), // "name"
QT_MOC_LITERAL(22, 252, 4), // "text"
QT_MOC_LITERAL(23, 257, 8), // "document"
QT_MOC_LITERAL(24, 266, 3), // "doc"
QT_MOC_LITERAL(25, 270, 12), // "activeLesson"
QT_MOC_LITERAL(26, 283, 5), // "Flags"
QT_MOC_LITERAL(27, 289, 13), // "NoInformation"
QT_MOC_LITERAL(28, 303, 9), // "Masculine"
QT_MOC_LITERAL(29, 313, 8), // "Feminine"
QT_MOC_LITERAL(30, 322, 6), // "Neuter"
QT_MOC_LITERAL(31, 329, 8), // "Singular"
QT_MOC_LITERAL(32, 338, 4), // "Dual"
QT_MOC_LITERAL(33, 343, 6), // "Plural"
QT_MOC_LITERAL(34, 350, 4), // "Verb"
QT_MOC_LITERAL(35, 355, 4), // "Noun"
QT_MOC_LITERAL(36, 360, 7), // "Pronoun"
QT_MOC_LITERAL(37, 368, 9), // "Adjective"
QT_MOC_LITERAL(38, 378, 6), // "Adverb"
QT_MOC_LITERAL(39, 385, 7), // "Article"
QT_MOC_LITERAL(40, 393, 11), // "Conjunction"
QT_MOC_LITERAL(41, 405, 5), // "First"
QT_MOC_LITERAL(42, 411, 6), // "Second"
QT_MOC_LITERAL(43, 418, 5), // "Third"
QT_MOC_LITERAL(44, 424, 10), // "Nominative"
QT_MOC_LITERAL(45, 435, 8), // "Genitive"
QT_MOC_LITERAL(46, 444, 6), // "Dative"
QT_MOC_LITERAL(47, 451, 10), // "Accusative"
QT_MOC_LITERAL(48, 462, 8), // "Ablative"
QT_MOC_LITERAL(49, 471, 8), // "Locative"
QT_MOC_LITERAL(50, 480, 8), // "Vocative"
QT_MOC_LITERAL(51, 489, 8), // "Definite"
QT_MOC_LITERAL(52, 498, 10), // "Indefinite"
QT_MOC_LITERAL(53, 509, 7), // "Regular"
QT_MOC_LITERAL(54, 517, 9) // "Irregular"

    },
    "Scripting::Parley\0translateWord\0\0word\0"
    "fromLanguage\0toLanguage\0translationFinished\0"
    "translationStarted\0dataDirs\0pluginDirs\0"
    "selectedEntries\0selectedTranslations\0"
    "addTranslation\0translation\0locales\0"
    "localeName\0locale\0open\0filename\0"
    "newDocument\0newAction\0name\0text\0"
    "document\0doc\0activeLesson\0Flags\0"
    "NoInformation\0Masculine\0Feminine\0"
    "Neuter\0Singular\0Dual\0Plural\0Verb\0Noun\0"
    "Pronoun\0Adjective\0Adverb\0Article\0"
    "Conjunction\0First\0Second\0Third\0"
    "Nominative\0Genitive\0Dative\0Accusative\0"
    "Ablative\0Locative\0Vocative\0Definite\0"
    "Indefinite\0Regular\0Irregular"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Scripting__Parley[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    3,   84,    2, 0x06 /* Public */,
       6,    3,   91,    2, 0x06 /* Public */,
       7,    3,   98,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    0,  105,    2, 0x0a /* Public */,
       9,    0,  106,    2, 0x0a /* Public */,
      10,    0,  107,    2, 0x0a /* Public */,
      11,    0,  108,    2, 0x0a /* Public */,
      12,    4,  109,    2, 0x0a /* Public */,
      14,    0,  118,    2, 0x0a /* Public */,
      15,    1,  119,    2, 0x0a /* Public */,
      17,    1,  122,    2, 0x0a /* Public */,
      19,    0,  125,    2, 0x0a /* Public */,
      20,    2,  126,    2, 0x0a /* Public */,
      20,    1,  131,    2, 0x2a /* Public | MethodCloned */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString,    3,    4,    5,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString,    3,    4,    5,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString,    3,    4,    5,

 // slots: parameters
    QMetaType::QStringList,
    QMetaType::QStringList,
    QMetaType::QVariantList,
    QMetaType::QVariantList,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString, QMetaType::QString,    3,    4,    5,   13,
    QMetaType::QStringList,
    QMetaType::QString, QMetaType::QString,   16,
    QMetaType::Void, QMetaType::QString,   18,
    QMetaType::QObjectStar,
    QMetaType::QObjectStar, QMetaType::QString, QMetaType::QString,   21,   22,
    QMetaType::QObjectStar, QMetaType::QString,   21,

 // properties: name, type, flags
      23, QMetaType::QObjectStar, 0x00095001,
      24, QMetaType::QObjectStar, 0x00095001,
      25, QMetaType::QObjectStar, 0x00095001,

 // enums: name, flags, count, data
      26, 0x0,   28,  147,

 // enum data: key, value
      27, uint(Scripting::Parley::NoInformation),
      28, uint(Scripting::Parley::Masculine),
      29, uint(Scripting::Parley::Feminine),
      30, uint(Scripting::Parley::Neuter),
      31, uint(Scripting::Parley::Singular),
      32, uint(Scripting::Parley::Dual),
      33, uint(Scripting::Parley::Plural),
      34, uint(Scripting::Parley::Verb),
      35, uint(Scripting::Parley::Noun),
      36, uint(Scripting::Parley::Pronoun),
      37, uint(Scripting::Parley::Adjective),
      38, uint(Scripting::Parley::Adverb),
      39, uint(Scripting::Parley::Article),
      40, uint(Scripting::Parley::Conjunction),
      41, uint(Scripting::Parley::First),
      42, uint(Scripting::Parley::Second),
      43, uint(Scripting::Parley::Third),
      44, uint(Scripting::Parley::Nominative),
      45, uint(Scripting::Parley::Genitive),
      46, uint(Scripting::Parley::Dative),
      47, uint(Scripting::Parley::Accusative),
      48, uint(Scripting::Parley::Ablative),
      49, uint(Scripting::Parley::Locative),
      50, uint(Scripting::Parley::Vocative),
      51, uint(Scripting::Parley::Definite),
      52, uint(Scripting::Parley::Indefinite),
      53, uint(Scripting::Parley::Regular),
      54, uint(Scripting::Parley::Irregular),

       0        // eod
};

void Scripting::Parley::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Parley *_t = static_cast<Parley *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->translateWord((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 1: _t->translationFinished((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 2: _t->translationStarted((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 3: { QStringList _r = _t->dataDirs();
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 4: { QStringList _r = _t->pluginDirs();
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 5: { QVariantList _r = _t->selectedEntries();
            if (_a[0]) *reinterpret_cast< QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 6: { QVariantList _r = _t->selectedTranslations();
            if (_a[0]) *reinterpret_cast< QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 7: _t->addTranslation((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2])),(*reinterpret_cast< QString(*)>(_a[3])),(*reinterpret_cast< QString(*)>(_a[4]))); break;
        case 8: { QStringList _r = _t->locales();
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 9: { QString _r = _t->localeName((*reinterpret_cast< QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 10: _t->open((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 11: { QObject* _r = _t->newDocument();
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); }  break;
        case 12: { QObject* _r = _t->newAction((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); }  break;
        case 13: { QObject* _r = _t->newAction((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (Parley::*_t)(const QString & , const QString & , const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Parley::translateWord)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (Parley::*_t)(const QString & , const QString & , const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Parley::translationFinished)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (Parley::*_t)(const QString & , const QString & , const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Parley::translationStarted)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        Parley *_t = static_cast<Parley *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QObject**>(_v) = _t->getDocument(); break;
        case 1: *reinterpret_cast< QObject**>(_v) = _t->getDocument(); break;
        case 2: *reinterpret_cast< QObject**>(_v) = _t->activeLesson(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Scripting::Parley::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Scripting__Parley.data,
      qt_meta_data_Scripting__Parley,  qt_static_metacall, nullptr, nullptr}
};


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

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

int Scripting::Parley::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 < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _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 Scripting::Parley::translateWord(const QString & _t1, const QString & _t2, const QString & _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Scripting::Parley::translationFinished(const QString & _t1, const QString & _t2, const QString & _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Scripting::Parley::translationStarted(const QString & _t1, const QString & _t2, const QString & _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
