/****************************************************************************
** Meta object code from reading C++ file 'dbmanager.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/services/dbmanager.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'dbmanager.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_DbManager_t {
    QByteArrayData data[23];
    char stringdata0[280];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DbManager_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DbManager_t qt_meta_stringdata_DbManager = {
    {
QT_MOC_LITERAL(0, 0, 9), // "DbManager"
QT_MOC_LITERAL(1, 10, 11), // "dbConnected"
QT_MOC_LITERAL(2, 22, 0), // ""
QT_MOC_LITERAL(3, 23, 3), // "Db*"
QT_MOC_LITERAL(4, 27, 2), // "db"
QT_MOC_LITERAL(5, 30, 14), // "dbDisconnected"
QT_MOC_LITERAL(6, 45, 23), // "dbAboutToBeDisconnected"
QT_MOC_LITERAL(7, 69, 5), // "bool&"
QT_MOC_LITERAL(8, 75, 4), // "deny"
QT_MOC_LITERAL(9, 80, 7), // "dbAdded"
QT_MOC_LITERAL(10, 88, 9), // "dbRemoved"
QT_MOC_LITERAL(11, 98, 9), // "dbUpdated"
QT_MOC_LITERAL(12, 108, 7), // "oldName"
QT_MOC_LITERAL(13, 116, 8), // "dbLoaded"
QT_MOC_LITERAL(14, 125, 19), // "dbAboutToBeUnloaded"
QT_MOC_LITERAL(15, 145, 9), // "DbPlugin*"
QT_MOC_LITERAL(16, 155, 6), // "plugin"
QT_MOC_LITERAL(17, 162, 10), // "dbUnloaded"
QT_MOC_LITERAL(18, 173, 12), // "dbListLoaded"
QT_MOC_LITERAL(19, 186, 27), // "scanForNewDatabasesInConfig"
QT_MOC_LITERAL(20, 214, 24), // "notifyDatabasesAreLoaded"
QT_MOC_LITERAL(21, 239, 31), // "rescanInvalidDatabasesForPlugin"
QT_MOC_LITERAL(22, 271, 8) // "dbPlugin"

    },
    "DbManager\0dbConnected\0\0Db*\0db\0"
    "dbDisconnected\0dbAboutToBeDisconnected\0"
    "bool&\0deny\0dbAdded\0dbRemoved\0dbUpdated\0"
    "oldName\0dbLoaded\0dbAboutToBeUnloaded\0"
    "DbPlugin*\0plugin\0dbUnloaded\0dbListLoaded\0"
    "scanForNewDatabasesInConfig\0"
    "notifyDatabasesAreLoaded\0"
    "rescanInvalidDatabasesForPlugin\0"
    "dbPlugin"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DbManager[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   79,    2, 0x06 /* Public */,
       5,    1,   82,    2, 0x06 /* Public */,
       6,    2,   85,    2, 0x06 /* Public */,
       9,    1,   90,    2, 0x06 /* Public */,
      10,    1,   93,    2, 0x06 /* Public */,
      11,    2,   96,    2, 0x06 /* Public */,
      13,    1,  101,    2, 0x06 /* Public */,
      14,    2,  104,    2, 0x06 /* Public */,
      17,    1,  109,    2, 0x06 /* Public */,
      18,    0,  112,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      19,    0,  113,    2, 0x0a /* Public */,
      20,    0,  114,    2, 0x0a /* Public */,
      21,    1,  115,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 7,    4,    8,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 3,   12,    4,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 15,    4,   16,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 15,   22,

       0        // eod
};

void DbManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<DbManager *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->dbConnected((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 1: _t->dbDisconnected((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 2: _t->dbAboutToBeDisconnected((*reinterpret_cast< Db*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 3: _t->dbAdded((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 4: _t->dbRemoved((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 5: _t->dbUpdated((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< Db*(*)>(_a[2]))); break;
        case 6: _t->dbLoaded((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 7: _t->dbAboutToBeUnloaded((*reinterpret_cast< Db*(*)>(_a[1])),(*reinterpret_cast< DbPlugin*(*)>(_a[2]))); break;
        case 8: _t->dbUnloaded((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 9: _t->dbListLoaded(); break;
        case 10: _t->scanForNewDatabasesInConfig(); break;
        case 11: _t->notifyDatabasesAreLoaded(); break;
        case 12: _t->rescanInvalidDatabasesForPlugin((*reinterpret_cast< DbPlugin*(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            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 1:
            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 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;
        case 4:
            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 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Db* >(); break;
            }
            break;
        case 6:
            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 7:
            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 8:
            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 (DbManager::*)(Db * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DbManager::dbConnected)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (DbManager::*)(Db * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DbManager::dbDisconnected)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (DbManager::*)(Db * , bool & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DbManager::dbAboutToBeDisconnected)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (DbManager::*)(Db * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DbManager::dbAdded)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (DbManager::*)(Db * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DbManager::dbRemoved)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (DbManager::*)(const QString & , Db * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DbManager::dbUpdated)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (DbManager::*)(Db * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DbManager::dbLoaded)) {
                *result = 6;
                return;
            }
        }
        {
            using _t = void (DbManager::*)(Db * , DbPlugin * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DbManager::dbAboutToBeUnloaded)) {
                *result = 7;
                return;
            }
        }
        {
            using _t = void (DbManager::*)(Db * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DbManager::dbUnloaded)) {
                *result = 8;
                return;
            }
        }
        {
            using _t = void (DbManager::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DbManager::dbListLoaded)) {
                *result = 9;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject DbManager::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_DbManager.data,
    qt_meta_data_DbManager,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

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

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

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

// SIGNAL 2
void DbManager::dbAboutToBeDisconnected(Db * _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, 2, _a);
}

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

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

// SIGNAL 5
void DbManager::dbUpdated(const QString & _t1, Db * _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, 5, _a);
}

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

// SIGNAL 7
void DbManager::dbAboutToBeUnloaded(Db * _t1, DbPlugin * _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, 7, _a);
}

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

// SIGNAL 9
void DbManager::dbListLoaded()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
