/****************************************************************************
** Meta object code from reading C++ file 'sqlfileexecutor.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 "../../../SQLiteStudio3/coreSQLiteStudio/sqlfileexecutor.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'sqlfileexecutor.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_SqlFileExecutor_t {
    QByteArrayData data[13];
    char stringdata0[151];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_SqlFileExecutor_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_SqlFileExecutor_t qt_meta_stringdata_SqlFileExecutor = {
    {
QT_MOC_LITERAL(0, 0, 15), // "SqlFileExecutor"
QT_MOC_LITERAL(1, 16, 21), // "schemaNeedsRefreshing"
QT_MOC_LITERAL(2, 38, 0), // ""
QT_MOC_LITERAL(3, 39, 3), // "Db*"
QT_MOC_LITERAL(4, 43, 2), // "db"
QT_MOC_LITERAL(5, 46, 14), // "updateProgress"
QT_MOC_LITERAL(6, 61, 5), // "value"
QT_MOC_LITERAL(7, 67, 9), // "execEnded"
QT_MOC_LITERAL(8, 77, 10), // "execErrors"
QT_MOC_LITERAL(9, 88, 30), // "QList<QPair<QString,QString> >"
QT_MOC_LITERAL(10, 119, 6), // "errors"
QT_MOC_LITERAL(11, 126, 10), // "rolledBack"
QT_MOC_LITERAL(12, 137, 13) // "stopExecution"

    },
    "SqlFileExecutor\0schemaNeedsRefreshing\0"
    "\0Db*\0db\0updateProgress\0value\0execEnded\0"
    "execErrors\0QList<QPair<QString,QString> >\0"
    "errors\0rolledBack\0stopExecution"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_SqlFileExecutor[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   39,    2, 0x06 /* Public */,
       5,    1,   42,    2, 0x06 /* Public */,
       7,    0,   45,    2, 0x06 /* Public */,
       8,    2,   46,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      12,    0,   51,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, QMetaType::Int,    6,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 9, QMetaType::Bool,   10,   11,

 // slots: parameters
    QMetaType::Void,

       0        // eod
};

void SqlFileExecutor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<SqlFileExecutor *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->schemaNeedsRefreshing((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 1: _t->updateProgress((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: _t->execEnded(); break;
        case 3: _t->execErrors((*reinterpret_cast< const QList<QPair<QString,QString> >(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 4: _t->stopExecution(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (SqlFileExecutor::*)(Db * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SqlFileExecutor::schemaNeedsRefreshing)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (SqlFileExecutor::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SqlFileExecutor::updateProgress)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (SqlFileExecutor::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SqlFileExecutor::execEnded)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (SqlFileExecutor::*)(const QList<QPair<QString,QString>> & , bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SqlFileExecutor::execErrors)) {
                *result = 3;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject SqlFileExecutor::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_SqlFileExecutor.data,
    qt_meta_data_SqlFileExecutor,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

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

// SIGNAL 0
void SqlFileExecutor::schemaNeedsRefreshing(Db * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void SqlFileExecutor::updateProgress(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void SqlFileExecutor::execEnded()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void SqlFileExecutor::execErrors(const QList<QPair<QString,QString>> & _t1, bool _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, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
