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

#include "../../src/libfm-qt-0.12.0/src/foldermodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'foldermodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. 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_Fm__FolderModel_t {
    QByteArrayData data[20];
    char stringdata0[298];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Fm__FolderModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Fm__FolderModel_t qt_meta_stringdata_Fm__FolderModel = {
    {
QT_MOC_LITERAL(0, 0, 15), // "Fm::FolderModel"
QT_MOC_LITERAL(1, 16, 15), // "thumbnailLoaded"
QT_MOC_LITERAL(2, 32, 0), // ""
QT_MOC_LITERAL(3, 33, 5), // "index"
QT_MOC_LITERAL(4, 39, 4), // "size"
QT_MOC_LITERAL(5, 44, 15), // "fileSizeChanged"
QT_MOC_LITERAL(6, 60, 14), // "onStartLoading"
QT_MOC_LITERAL(7, 75, 15), // "onFinishLoading"
QT_MOC_LITERAL(8, 91, 12), // "onFilesAdded"
QT_MOC_LITERAL(9, 104, 16), // "Fm::FileInfoList"
QT_MOC_LITERAL(10, 121, 5), // "files"
QT_MOC_LITERAL(11, 127, 14), // "onFilesChanged"
QT_MOC_LITERAL(12, 142, 30), // "std::vector<Fm::FileInfoPair>&"
QT_MOC_LITERAL(13, 173, 14), // "onFilesRemoved"
QT_MOC_LITERAL(14, 188, 17), // "onThumbnailLoaded"
QT_MOC_LITERAL(15, 206, 35), // "std::shared_ptr<const Fm::Fil..."
QT_MOC_LITERAL(16, 242, 4), // "file"
QT_MOC_LITERAL(17, 247, 5), // "image"
QT_MOC_LITERAL(18, 253, 22), // "onThumbnailJobFinished"
QT_MOC_LITERAL(19, 276, 21) // "loadPendingThumbnails"

    },
    "Fm::FolderModel\0thumbnailLoaded\0\0index\0"
    "size\0fileSizeChanged\0onStartLoading\0"
    "onFinishLoading\0onFilesAdded\0"
    "Fm::FileInfoList\0files\0onFilesChanged\0"
    "std::vector<Fm::FileInfoPair>&\0"
    "onFilesRemoved\0onThumbnailLoaded\0"
    "std::shared_ptr<const Fm::FileInfo>\0"
    "file\0image\0onThumbnailJobFinished\0"
    "loadPendingThumbnails"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Fm__FolderModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    2,   64,    2, 0x06 /* Public */,
       5,    1,   69,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    0,   72,    2, 0x09 /* Protected */,
       7,    0,   73,    2, 0x09 /* Protected */,
       8,    1,   74,    2, 0x09 /* Protected */,
      11,    1,   77,    2, 0x09 /* Protected */,
      13,    1,   80,    2, 0x09 /* Protected */,
      14,    3,   83,    2, 0x09 /* Protected */,
      18,    0,   90,    2, 0x09 /* Protected */,
      19,    0,   91,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int,    3,    4,
    QMetaType::Void, QMetaType::QModelIndex,    3,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 9,   10,
    QMetaType::Void, 0x80000000 | 12,   10,
    QMetaType::Void, 0x80000000 | 9,   10,
    QMetaType::Void, 0x80000000 | 15, QMetaType::Int, QMetaType::QImage,   16,    4,   17,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void Fm::FolderModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        FolderModel *_t = static_cast<FolderModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->thumbnailLoaded((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 1: _t->fileSizeChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 2: _t->onStartLoading(); break;
        case 3: _t->onFinishLoading(); break;
        case 4: _t->onFilesAdded((*reinterpret_cast< const Fm::FileInfoList(*)>(_a[1]))); break;
        case 5: _t->onFilesChanged((*reinterpret_cast< std::vector<Fm::FileInfoPair>(*)>(_a[1]))); break;
        case 6: _t->onFilesRemoved((*reinterpret_cast< const Fm::FileInfoList(*)>(_a[1]))); break;
        case 7: _t->onThumbnailLoaded((*reinterpret_cast< const std::shared_ptr<const Fm::FileInfo>(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< const QImage(*)>(_a[3]))); break;
        case 8: _t->onThumbnailJobFinished(); break;
        case 9: _t->loadPendingThumbnails(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; 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< std::shared_ptr<const Fm::FileInfo> >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (FolderModel::*_t)(const QModelIndex & , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&FolderModel::thumbnailLoaded)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (FolderModel::*_t)(const QModelIndex & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&FolderModel::fileSizeChanged)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject Fm::FolderModel::staticMetaObject = {
    { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_Fm__FolderModel.data,
      qt_meta_data_Fm__FolderModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void Fm::FolderModel::thumbnailLoaded(const QModelIndex & _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Fm::FolderModel::fileSizeChanged(const QModelIndex & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
