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

#include "../DatabaseManager.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'DatabaseManager.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.11.2. 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_DatabaseManager_t {
    QByteArrayData data[37];
    char stringdata0[427];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DatabaseManager_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DatabaseManager_t qt_meta_stringdata_DatabaseManager = {
    {
QT_MOC_LITERAL(0, 0, 15), // "DatabaseManager"
QT_MOC_LITERAL(1, 16, 9), // "treeReady"
QT_MOC_LITERAL(2, 26, 0), // ""
QT_MOC_LITERAL(3, 27, 9), // "connected"
QT_MOC_LITERAL(4, 37, 8), // "loggedIn"
QT_MOC_LITERAL(5, 46, 15), // "connectionError"
QT_MOC_LITERAL(6, 62, 6), // "_Error"
QT_MOC_LITERAL(7, 69, 10), // "loginError"
QT_MOC_LITERAL(8, 80, 14), // "chunksRecieved"
QT_MOC_LITERAL(9, 95, 9), // "_StreamID"
QT_MOC_LITERAL(10, 105, 13), // "ESChunkModel*"
QT_MOC_LITERAL(11, 119, 6), // "_Model"
QT_MOC_LITERAL(12, 126, 18), // "streamInfoReceived"
QT_MOC_LITERAL(13, 145, 9), // "_DeviceId"
QT_MOC_LITERAL(14, 155, 9), // "_StreamId"
QT_MOC_LITERAL(15, 165, 6), // "_Token"
QT_MOC_LITERAL(16, 172, 5), // "_Addr"
QT_MOC_LITERAL(17, 178, 8), // "_Request"
QT_MOC_LITERAL(18, 187, 15), // "streamInfoError"
QT_MOC_LITERAL(19, 203, 20), // "chunksLookupRecieved"
QT_MOC_LITERAL(20, 224, 8), // "_Lookups"
QT_MOC_LITERAL(21, 233, 18), // "initESLoginRoutine"
QT_MOC_LITERAL(22, 252, 5), // "_Host"
QT_MOC_LITERAL(23, 258, 5), // "_Port"
QT_MOC_LITERAL(24, 264, 9), // "_Username"
QT_MOC_LITERAL(25, 274, 9), // "_Password"
QT_MOC_LITERAL(26, 284, 11), // "searchChunk"
QT_MOC_LITERAL(27, 296, 6), // "_Start"
QT_MOC_LITERAL(28, 303, 4), // "_End"
QT_MOC_LITERAL(29, 308, 13), // "requestLookup"
QT_MOC_LITERAL(30, 322, 20), // "getStreamGatewayInfo"
QT_MOC_LITERAL(31, 343, 10), // "_RequestID"
QT_MOC_LITERAL(32, 354, 11), // "onTreeReady"
QT_MOC_LITERAL(33, 366, 16), // "onChunksRecieved"
QT_MOC_LITERAL(34, 383, 12), // "ChunksVector"
QT_MOC_LITERAL(35, 396, 7), // "_Chunks"
QT_MOC_LITERAL(36, 404, 22) // "onChunksLookupRecieved"

    },
    "DatabaseManager\0treeReady\0\0connected\0"
    "loggedIn\0connectionError\0_Error\0"
    "loginError\0chunksRecieved\0_StreamID\0"
    "ESChunkModel*\0_Model\0streamInfoReceived\0"
    "_DeviceId\0_StreamId\0_Token\0_Addr\0"
    "_Request\0streamInfoError\0chunksLookupRecieved\0"
    "_Lookups\0initESLoginRoutine\0_Host\0"
    "_Port\0_Username\0_Password\0searchChunk\0"
    "_Start\0_End\0requestLookup\0"
    "getStreamGatewayInfo\0_RequestID\0"
    "onTreeReady\0onChunksRecieved\0ChunksVector\0"
    "_Chunks\0onChunksLookupRecieved"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DatabaseManager[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      17,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       9,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   99,    2, 0x06 /* Public */,
       3,    0,  100,    2, 0x06 /* Public */,
       4,    0,  101,    2, 0x06 /* Public */,
       5,    1,  102,    2, 0x06 /* Public */,
       7,    1,  105,    2, 0x06 /* Public */,
       8,    2,  108,    2, 0x06 /* Public */,
      12,    5,  113,    2, 0x06 /* Public */,
      18,    1,  124,    2, 0x06 /* Public */,
      19,    2,  127,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      21,    4,  132,    2, 0x0a /* Public */,
      26,    1,  141,    2, 0x0a /* Public */,
      26,    3,  144,    2, 0x0a /* Public */,
      29,    1,  151,    2, 0x0a /* Public */,
      30,    3,  154,    2, 0x0a /* Public */,
      32,    0,  161,    2, 0x09 /* Protected */,
      33,    2,  162,    2, 0x09 /* Protected */,
      36,    2,  167,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    6,
    QMetaType::Void, QMetaType::QString,    6,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 10,    9,   11,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString, QMetaType::QString, QMetaType::Int,   13,   14,   15,   16,   17,
    QMetaType::Void, QMetaType::Int,   17,
    QMetaType::Void, QMetaType::QString, QMetaType::QVariantList,    9,   20,

 // slots: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::Int, QMetaType::QString, QMetaType::QString,   22,   23,   24,   25,
    QMetaType::Void, QMetaType::QString,    9,
    QMetaType::Void, QMetaType::QString, QMetaType::LongLong, QMetaType::LongLong,    9,   27,   28,
    QMetaType::Void, QMetaType::QString,    9,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::Int,   13,   14,   31,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 34,    9,   35,
    QMetaType::Void, QMetaType::QString, QMetaType::QVariantList,    9,   20,

       0        // eod
};

void DatabaseManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DatabaseManager *_t = static_cast<DatabaseManager *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->treeReady(); break;
        case 1: _t->connected(); break;
        case 2: _t->loggedIn(); break;
        case 3: _t->connectionError((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: _t->loginError((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 5: _t->chunksRecieved((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< ESChunkModel*(*)>(_a[2]))); break;
        case 6: _t->streamInfoReceived((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2])),(*reinterpret_cast< QString(*)>(_a[3])),(*reinterpret_cast< QString(*)>(_a[4])),(*reinterpret_cast< int(*)>(_a[5]))); break;
        case 7: _t->streamInfoError((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 8: _t->chunksLookupRecieved((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< QVariantList(*)>(_a[2]))); break;
        case 9: _t->initESLoginRoutine((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< const QString(*)>(_a[4]))); break;
        case 10: _t->searchChunk((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 11: _t->searchChunk((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< qint64(*)>(_a[2])),(*reinterpret_cast< qint64(*)>(_a[3]))); break;
        case 12: _t->requestLookup((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 13: _t->getStreamGatewayInfo((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 14: _t->onTreeReady(); break;
        case 15: _t->onChunksRecieved((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< ChunksVector(*)>(_a[2]))); break;
        case 16: _t->onChunksLookupRecieved((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< QVariantList(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; 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< ESChunkModel* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (DatabaseManager::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DatabaseManager::treeReady)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (DatabaseManager::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DatabaseManager::connected)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (DatabaseManager::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DatabaseManager::loggedIn)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (DatabaseManager::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DatabaseManager::connectionError)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (DatabaseManager::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DatabaseManager::loginError)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (DatabaseManager::*)(const QString & , ESChunkModel * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DatabaseManager::chunksRecieved)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (DatabaseManager::*)(QString , QString , QString , QString , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DatabaseManager::streamInfoReceived)) {
                *result = 6;
                return;
            }
        }
        {
            using _t = void (DatabaseManager::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DatabaseManager::streamInfoError)) {
                *result = 7;
                return;
            }
        }
        {
            using _t = void (DatabaseManager::*)(const QString & , QVariantList );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DatabaseManager::chunksLookupRecieved)) {
                *result = 8;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject DatabaseManager::staticMetaObject = {
    { &QThread::staticMetaObject, qt_meta_stringdata_DatabaseManager.data,
      qt_meta_data_DatabaseManager,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

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

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

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

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

// SIGNAL 4
void DatabaseManager::loginError(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void DatabaseManager::chunksRecieved(const QString & _t1, ESChunkModel * _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void DatabaseManager::streamInfoReceived(QString _t1, QString _t2, QString _t3, QString _t4, int _t5)
{
    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)), const_cast<void*>(reinterpret_cast<const void*>(&_t4)), const_cast<void*>(reinterpret_cast<const void*>(&_t5)) };
    QMetaObject::activate(this, &staticMetaObject, 6, _a);
}

// SIGNAL 7
void DatabaseManager::streamInfoError(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 7, _a);
}

// SIGNAL 8
void DatabaseManager::chunksLookupRecieved(const QString & _t1, QVariantList _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 8, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
