/****************************************************************************
** Meta object code from reading C++ file 'db.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/db/db.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'db.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_Db_t {
    QByteArrayData data[28];
    char stringdata0[287];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Db_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Db_t qt_meta_stringdata_Db = {
    {
QT_MOC_LITERAL(0, 0, 2), // "Db"
QT_MOC_LITERAL(1, 3, 9), // "connected"
QT_MOC_LITERAL(2, 13, 0), // ""
QT_MOC_LITERAL(3, 14, 12), // "disconnected"
QT_MOC_LITERAL(4, 27, 8), // "attached"
QT_MOC_LITERAL(5, 36, 3), // "Db*"
QT_MOC_LITERAL(6, 40, 2), // "db"
QT_MOC_LITERAL(7, 43, 8), // "detached"
QT_MOC_LITERAL(8, 52, 17), // "asyncExecFinished"
QT_MOC_LITERAL(9, 70, 7), // "asyncId"
QT_MOC_LITERAL(10, 78, 11), // "SqlQueryPtr"
QT_MOC_LITERAL(11, 90, 7), // "results"
QT_MOC_LITERAL(12, 98, 4), // "idle"
QT_MOC_LITERAL(13, 103, 15), // "dbObjectDeleted"
QT_MOC_LITERAL(14, 119, 8), // "database"
QT_MOC_LITERAL(15, 128, 4), // "name"
QT_MOC_LITERAL(16, 133, 12), // "DbObjectType"
QT_MOC_LITERAL(17, 146, 4), // "type"
QT_MOC_LITERAL(18, 151, 17), // "aboutToDisconnect"
QT_MOC_LITERAL(19, 169, 5), // "bool&"
QT_MOC_LITERAL(20, 175, 19), // "disconnectingDenied"
QT_MOC_LITERAL(21, 195, 4), // "open"
QT_MOC_LITERAL(22, 200, 5), // "close"
QT_MOC_LITERAL(23, 206, 9), // "openQuiet"
QT_MOC_LITERAL(24, 216, 14), // "openForProbing"
QT_MOC_LITERAL(25, 231, 10), // "closeQuiet"
QT_MOC_LITERAL(26, 242, 21), // "registerUserFunctions"
QT_MOC_LITERAL(27, 264, 22) // "registerUserCollations"

    },
    "Db\0connected\0\0disconnected\0attached\0"
    "Db*\0db\0detached\0asyncExecFinished\0"
    "asyncId\0SqlQueryPtr\0results\0idle\0"
    "dbObjectDeleted\0database\0name\0"
    "DbObjectType\0type\0aboutToDisconnect\0"
    "bool&\0disconnectingDenied\0open\0close\0"
    "openQuiet\0openForProbing\0closeQuiet\0"
    "registerUserFunctions\0registerUserCollations"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Db[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   89,    2, 0x06 /* Public */,
       3,    0,   90,    2, 0x06 /* Public */,
       4,    1,   91,    2, 0x06 /* Public */,
       7,    1,   94,    2, 0x06 /* Public */,
       8,    2,   97,    2, 0x06 /* Public */,
      12,    0,  102,    2, 0x06 /* Public */,
      13,    3,  103,    2, 0x06 /* Public */,
      18,    1,  110,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      21,    0,  113,    2, 0x0a /* Public */,
      22,    0,  114,    2, 0x0a /* Public */,
      23,    0,  115,    2, 0x0a /* Public */,
      24,    0,  116,    2, 0x0a /* Public */,
      25,    0,  117,    2, 0x0a /* Public */,
      26,    0,  118,    2, 0x0a /* Public */,
      27,    0,  119,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 5,    6,
    QMetaType::Void, 0x80000000 | 5,    6,
    QMetaType::Void, QMetaType::UInt, 0x80000000 | 10,    9,   11,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, 0x80000000 | 16,   14,   15,   17,
    QMetaType::Void, 0x80000000 | 19,   20,

 // slots: parameters
    QMetaType::Bool,
    QMetaType::Bool,
    QMetaType::Bool,
    QMetaType::Bool,
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void Db::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<Db *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->connected(); break;
        case 1: _t->disconnected(); break;
        case 2: _t->attached((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 3: _t->detached((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 4: _t->asyncExecFinished((*reinterpret_cast< quint32(*)>(_a[1])),(*reinterpret_cast< SqlQueryPtr(*)>(_a[2]))); break;
        case 5: _t->idle(); break;
        case 6: _t->dbObjectDeleted((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< DbObjectType(*)>(_a[3]))); break;
        case 7: _t->aboutToDisconnect((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 8: { bool _r = _t->open();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->close();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->openQuiet();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 11: { bool _r = _t->openForProbing();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 12: { bool _r = _t->closeQuiet();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 13: _t->registerUserFunctions(); break;
        case 14: _t->registerUserCollations(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; 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< Db* >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Db* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (Db::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Db::connected)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (Db::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Db::disconnected)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (Db::*)(Db * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Db::attached)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (Db::*)(Db * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Db::detached)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (Db::*)(quint32 , SqlQueryPtr );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Db::asyncExecFinished)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (Db::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Db::idle)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (Db::*)(const QString & , const QString & , DbObjectType );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Db::dbObjectDeleted)) {
                *result = 6;
                return;
            }
        }
        {
            using _t = void (Db::*)(bool & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Db::aboutToDisconnect)) {
                *result = 7;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject Db::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_Db.data,
    qt_meta_data_Db,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

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

// SIGNAL 0
void Db::connected()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

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

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

// SIGNAL 4
void Db::asyncExecFinished(quint32 _t1, SqlQueryPtr _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, 4, _a);
}

// SIGNAL 5
void Db::idle()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void Db::dbObjectDeleted(const QString & _t1, const QString & _t2, DbObjectType _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, 6, _a);
}

// SIGNAL 7
void Db::aboutToDisconnect(bool & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 7, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
