/****************************************************************************
** Meta object code from reading C++ file 'ESChunkModel.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 "../ES/ESChunkModel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'ESChunkModel.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_ESChunkState_t {
    QByteArrayData data[9];
    char stringdata0[91];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_ESChunkState_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_ESChunkState_t qt_meta_stringdata_ESChunkState = {
    {
QT_MOC_LITERAL(0, 0, 12), // "ESChunkState"
QT_MOC_LITERAL(1, 13, 6), // "EState"
QT_MOC_LITERAL(2, 20, 4), // "None"
QT_MOC_LITERAL(3, 25, 11), // "Downloading"
QT_MOC_LITERAL(4, 37, 10), // "Downloaded"
QT_MOC_LITERAL(5, 48, 5), // "Merge"
QT_MOC_LITERAL(6, 54, 12), // "SavingOnDisk"
QT_MOC_LITERAL(7, 67, 11), // "SavedOnDisk"
QT_MOC_LITERAL(8, 79, 11) // "MergeOnDisk"

    },
    "ESChunkState\0EState\0None\0Downloading\0"
    "Downloaded\0Merge\0SavingOnDisk\0SavedOnDisk\0"
    "MergeOnDisk"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_ESChunkState[] = {

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

 // enums: name, flags, count, data
       1, 0x0,    7,   18,

 // enum data: key, value
       2, uint(ESChunkState::None),
       3, uint(ESChunkState::Downloading),
       4, uint(ESChunkState::Downloaded),
       5, uint(ESChunkState::Merge),
       6, uint(ESChunkState::SavingOnDisk),
       7, uint(ESChunkState::SavedOnDisk),
       8, uint(ESChunkState::MergeOnDisk),

       0        // eod
};

void ESChunkState::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    Q_UNUSED(_o);
    Q_UNUSED(_id);
    Q_UNUSED(_c);
    Q_UNUSED(_a);
}

QT_INIT_METAOBJECT const QMetaObject ESChunkState::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_ESChunkState.data,
      qt_meta_data_ESChunkState,  qt_static_metacall, nullptr, nullptr}
};


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

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

int ESChunkState::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    return _id;
}
struct qt_meta_stringdata_ESChunkModel_t {
    QByteArrayData data[8];
    char stringdata0[133];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_ESChunkModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_ESChunkModel_t qt_meta_stringdata_ESChunkModel = {
    {
QT_MOC_LITERAL(0, 0, 12), // "ESChunkModel"
QT_MOC_LITERAL(1, 13, 24), // "onChunkDownloadRequested"
QT_MOC_LITERAL(2, 38, 0), // ""
QT_MOC_LITERAL(3, 39, 9), // "ESChunkID"
QT_MOC_LITERAL(4, 49, 21), // "onChunkDownloadFailed"
QT_MOC_LITERAL(5, 71, 22), // "onChunkDownloadSuccess"
QT_MOC_LITERAL(6, 94, 19), // "onChunkMergingBegin"
QT_MOC_LITERAL(7, 114, 18) // "onChunkMergingDone"

    },
    "ESChunkModel\0onChunkDownloadRequested\0"
    "\0ESChunkID\0onChunkDownloadFailed\0"
    "onChunkDownloadSuccess\0onChunkMergingBegin\0"
    "onChunkMergingDone"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_ESChunkModel[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    2,   39,    2, 0x0a /* Public */,
       4,    1,   44,    2, 0x0a /* Public */,
       5,    1,   47,    2, 0x0a /* Public */,
       6,    1,   50,    2, 0x0a /* Public */,
       7,    1,   53,    2, 0x0a /* Public */,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3, QMetaType::QString,    2,    2,
    QMetaType::Void, 0x80000000 | 3,    2,
    QMetaType::Void, 0x80000000 | 3,    2,
    QMetaType::Void, 0x80000000 | 3,    2,
    QMetaType::Void, 0x80000000 | 3,    2,

       0        // eod
};

void ESChunkModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        ESChunkModel *_t = static_cast<ESChunkModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->onChunkDownloadRequested((*reinterpret_cast< ESChunkID(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 1: _t->onChunkDownloadFailed((*reinterpret_cast< ESChunkID(*)>(_a[1]))); break;
        case 2: _t->onChunkDownloadSuccess((*reinterpret_cast< ESChunkID(*)>(_a[1]))); break;
        case 3: _t->onChunkMergingBegin((*reinterpret_cast< ESChunkID(*)>(_a[1]))); break;
        case 4: _t->onChunkMergingDone((*reinterpret_cast< ESChunkID(*)>(_a[1]))); break;
        default: ;
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject ESChunkModel::staticMetaObject = {
    { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_ESChunkModel.data,
      qt_meta_data_ESChunkModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

int ESChunkModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractListModel::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;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
