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

#include <memory>
#include "../../src/jobs/abstractjob.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'abstractjob.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.3. 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_AbstractJob_t {
    QByteArrayData data[22];
    char stringdata0[226];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_AbstractJob_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_AbstractJob_t qt_meta_stringdata_AbstractJob = {
    {
QT_MOC_LITERAL(0, 0, 11), // "AbstractJob"
QT_MOC_LITERAL(1, 12, 15), // "progressUpdated"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 14), // "QStandardItem*"
QT_MOC_LITERAL(4, 44, 4), // "item"
QT_MOC_LITERAL(5, 49, 7), // "percent"
QT_MOC_LITERAL(6, 57, 8), // "finished"
QT_MOC_LITERAL(7, 66, 12), // "AbstractJob*"
QT_MOC_LITERAL(8, 79, 3), // "job"
QT_MOC_LITERAL(9, 83, 9), // "isSuccess"
QT_MOC_LITERAL(10, 93, 11), // "failureTime"
QT_MOC_LITERAL(11, 105, 5), // "start"
QT_MOC_LITERAL(12, 111, 7), // "program"
QT_MOC_LITERAL(13, 119, 9), // "arguments"
QT_MOC_LITERAL(14, 129, 4), // "stop"
QT_MOC_LITERAL(15, 134, 10), // "onFinished"
QT_MOC_LITERAL(16, 145, 8), // "exitCode"
QT_MOC_LITERAL(17, 154, 20), // "QProcess::ExitStatus"
QT_MOC_LITERAL(18, 175, 10), // "exitStatus"
QT_MOC_LITERAL(19, 186, 11), // "onReadyRead"
QT_MOC_LITERAL(20, 198, 9), // "onStarted"
QT_MOC_LITERAL(21, 208, 17) // "onProgressUpdated"

    },
    "AbstractJob\0progressUpdated\0\0"
    "QStandardItem*\0item\0percent\0finished\0"
    "AbstractJob*\0job\0isSuccess\0failureTime\0"
    "start\0program\0arguments\0stop\0onFinished\0"
    "exitCode\0QProcess::ExitStatus\0exitStatus\0"
    "onReadyRead\0onStarted\0onProgressUpdated"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_AbstractJob[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    2,   69,    2, 0x06 /* Public */,
       6,    3,   74,    2, 0x06 /* Public */,
       6,    2,   81,    2, 0x26 /* Public | MethodCloned */,

 // slots: name, argc, parameters, tag, flags
      11,    2,   86,    2, 0x0a /* Public */,
      11,    0,   91,    2, 0x0a /* Public */,
      14,    0,   92,    2, 0x0a /* Public */,
      15,    2,   93,    2, 0x09 /* Protected */,
      15,    1,   98,    2, 0x29 /* Protected | MethodCloned */,
      19,    0,  101,    2, 0x09 /* Protected */,
      20,    0,  102,    2, 0x09 /* Protected */,
      21,    2,  103,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, QMetaType::Int,    4,    5,
    QMetaType::Void, 0x80000000 | 7, QMetaType::Bool, QMetaType::QString,    8,    9,   10,
    QMetaType::Void, 0x80000000 | 7, QMetaType::Bool,    8,    9,

 // slots: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::QStringList,   12,   13,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 17,   16,   18,
    QMetaType::Void, QMetaType::Int,   16,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 3, QMetaType::Int,    2,    5,

       0        // eod
};

void AbstractJob::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<AbstractJob *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->progressUpdated((*reinterpret_cast< QStandardItem*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 1: _t->finished((*reinterpret_cast< AbstractJob*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< QString(*)>(_a[3]))); break;
        case 2: _t->finished((*reinterpret_cast< AbstractJob*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 3: _t->start((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QStringList(*)>(_a[2]))); break;
        case 4: _t->start(); break;
        case 5: _t->stop(); break;
        case 6: _t->onFinished((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QProcess::ExitStatus(*)>(_a[2]))); break;
        case 7: _t->onFinished((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 8: _t->onReadyRead(); break;
        case 9: _t->onStarted(); break;
        case 10: _t->onProgressUpdated((*reinterpret_cast< QStandardItem*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< AbstractJob* >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< AbstractJob* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (AbstractJob::*)(QStandardItem * , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AbstractJob::progressUpdated)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (AbstractJob::*)(AbstractJob * , bool , QString );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AbstractJob::finished)) {
                *result = 1;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject AbstractJob::staticMetaObject = { {
    QMetaObject::SuperData::link<QProcess::staticMetaObject>(),
    qt_meta_stringdata_AbstractJob.data,
    qt_meta_data_AbstractJob,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int AbstractJob::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QProcess::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    return _id;
}

// SIGNAL 0
void AbstractJob::progressUpdated(QStandardItem * _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 AbstractJob::finished(AbstractJob * _t1, bool _t2, QString _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
