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

#include "../../../../src/marble-17.08.3/src/lib/marble/FileStorageWatcher.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'FileStorageWatcher.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.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_Marble__FileStorageWatcherThread_t {
    QByteArrayData data[10];
    char stringdata0[152];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Marble__FileStorageWatcherThread_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Marble__FileStorageWatcherThread_t qt_meta_stringdata_Marble__FileStorageWatcherThread = {
    {
QT_MOC_LITERAL(0, 0, 32), // "Marble::FileStorageWatcherThread"
QT_MOC_LITERAL(1, 33, 15), // "variableChanged"
QT_MOC_LITERAL(2, 49, 0), // ""
QT_MOC_LITERAL(3, 50, 13), // "setCacheLimit"
QT_MOC_LITERAL(4, 64, 5), // "bytes"
QT_MOC_LITERAL(5, 70, 16), // "addToCurrentSize"
QT_MOC_LITERAL(6, 87, 16), // "resetCurrentSize"
QT_MOC_LITERAL(7, 104, 11), // "prepareQuit"
QT_MOC_LITERAL(8, 116, 19), // "getCurrentCacheSize"
QT_MOC_LITERAL(9, 136, 15) // "ensureCacheSize"

    },
    "Marble::FileStorageWatcherThread\0"
    "variableChanged\0\0setCacheLimit\0bytes\0"
    "addToCurrentSize\0resetCurrentSize\0"
    "prepareQuit\0getCurrentCacheSize\0"
    "ensureCacheSize"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Marble__FileStorageWatcherThread[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   49,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       3,    1,   50,    2, 0x0a /* Public */,
       5,    1,   53,    2, 0x0a /* Public */,
       6,    0,   56,    2, 0x0a /* Public */,
       7,    0,   57,    2, 0x0a /* Public */,
       8,    0,   58,    2, 0x0a /* Public */,
       9,    0,   59,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::ULongLong,    4,
    QMetaType::Void, QMetaType::LongLong,    4,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void Marble::FileStorageWatcherThread::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        FileStorageWatcherThread *_t = static_cast<FileStorageWatcherThread *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->variableChanged(); break;
        case 1: _t->setCacheLimit((*reinterpret_cast< quint64(*)>(_a[1]))); break;
        case 2: _t->addToCurrentSize((*reinterpret_cast< qint64(*)>(_a[1]))); break;
        case 3: _t->resetCurrentSize(); break;
        case 4: _t->prepareQuit(); break;
        case 5: _t->getCurrentCacheSize(); break;
        case 6: _t->ensureCacheSize(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (FileStorageWatcherThread::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FileStorageWatcherThread::variableChanged)) {
                *result = 0;
                return;
            }
        }
    }
}

const QMetaObject Marble::FileStorageWatcherThread::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Marble__FileStorageWatcherThread.data,
      qt_meta_data_Marble__FileStorageWatcherThread,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void Marble::FileStorageWatcherThread::variableChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
struct qt_meta_stringdata_Marble__FileStorageWatcher_t {
    QByteArrayData data[8];
    char stringdata0[102];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Marble__FileStorageWatcher_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Marble__FileStorageWatcher_t qt_meta_stringdata_Marble__FileStorageWatcher = {
    {
QT_MOC_LITERAL(0, 0, 26), // "Marble::FileStorageWatcher"
QT_MOC_LITERAL(1, 27, 11), // "sizeChanged"
QT_MOC_LITERAL(2, 39, 0), // ""
QT_MOC_LITERAL(3, 40, 5), // "bytes"
QT_MOC_LITERAL(4, 46, 7), // "cleared"
QT_MOC_LITERAL(5, 54, 13), // "setCacheLimit"
QT_MOC_LITERAL(6, 68, 16), // "addToCurrentSize"
QT_MOC_LITERAL(7, 85, 16) // "resetCurrentSize"

    },
    "Marble::FileStorageWatcher\0sizeChanged\0"
    "\0bytes\0cleared\0setCacheLimit\0"
    "addToCurrentSize\0resetCurrentSize"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Marble__FileStorageWatcher[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   39,    2, 0x06 /* Public */,
       4,    0,   42,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    1,   43,    2, 0x0a /* Public */,
       6,    1,   46,    2, 0x0a /* Public */,
       7,    0,   49,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::LongLong,    3,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::ULongLong,    3,
    QMetaType::Void, QMetaType::LongLong,    3,
    QMetaType::Void,

       0        // eod
};

void Marble::FileStorageWatcher::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        FileStorageWatcher *_t = static_cast<FileStorageWatcher *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->sizeChanged((*reinterpret_cast< qint64(*)>(_a[1]))); break;
        case 1: _t->cleared(); break;
        case 2: _t->setCacheLimit((*reinterpret_cast< quint64(*)>(_a[1]))); break;
        case 3: _t->addToCurrentSize((*reinterpret_cast< qint64(*)>(_a[1]))); break;
        case 4: _t->resetCurrentSize(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (FileStorageWatcher::*_t)(qint64 );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FileStorageWatcher::sizeChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (FileStorageWatcher::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FileStorageWatcher::cleared)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject Marble::FileStorageWatcher::staticMetaObject = {
    { &QThread::staticMetaObject, qt_meta_stringdata_Marble__FileStorageWatcher.data,
      qt_meta_data_Marble__FileStorageWatcher,  qt_static_metacall, nullptr, nullptr}
};


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

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

int Marble::FileStorageWatcher::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 < 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 Marble::FileStorageWatcher::sizeChanged(qint64 _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Marble::FileStorageWatcher::cleared()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
