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

#include <memory>
#include "../../../clementine-1.4.0rc1-495-g10bf5dc17/src/library/librarymodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'librarymodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.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_LibraryModel_t {
    QByteArrayData data[48];
    char stringdata0[664];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_LibraryModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_LibraryModel_t qt_meta_stringdata_LibraryModel = {
    {
QT_MOC_LITERAL(0, 0, 12), // "LibraryModel"
QT_MOC_LITERAL(1, 13, 21), // "TotalSongCountUpdated"
QT_MOC_LITERAL(2, 35, 0), // ""
QT_MOC_LITERAL(3, 36, 5), // "count"
QT_MOC_LITERAL(4, 42, 15), // "GroupingChanged"
QT_MOC_LITERAL(5, 58, 22), // "LibraryModel::Grouping"
QT_MOC_LITERAL(6, 81, 1), // "g"
QT_MOC_LITERAL(7, 83, 12), // "SetFilterAge"
QT_MOC_LITERAL(8, 96, 3), // "age"
QT_MOC_LITERAL(9, 100, 13), // "SetFilterText"
QT_MOC_LITERAL(10, 114, 4), // "text"
QT_MOC_LITERAL(11, 119, 18), // "SetFilterQueryMode"
QT_MOC_LITERAL(12, 138, 23), // "QueryOptions::QueryMode"
QT_MOC_LITERAL(13, 162, 10), // "query_mode"
QT_MOC_LITERAL(14, 173, 10), // "SetGroupBy"
QT_MOC_LITERAL(15, 184, 10), // "GetGroupBy"
QT_MOC_LITERAL(16, 195, 4), // "Init"
QT_MOC_LITERAL(17, 200, 5), // "async"
QT_MOC_LITERAL(18, 206, 5), // "Reset"
QT_MOC_LITERAL(19, 212, 10), // "ResetAsync"
QT_MOC_LITERAL(20, 223, 15), // "SongsDiscovered"
QT_MOC_LITERAL(21, 239, 8), // "SongList"
QT_MOC_LITERAL(22, 248, 5), // "songs"
QT_MOC_LITERAL(23, 254, 12), // "SongsDeleted"
QT_MOC_LITERAL(24, 267, 20), // "SongsSlightlyChanged"
QT_MOC_LITERAL(25, 288, 25), // "TotalSongCountUpdatedSlot"
QT_MOC_LITERAL(26, 314, 23), // "ResetAsyncQueryFinished"
QT_MOC_LITERAL(27, 338, 34), // "QFuture<LibraryModel::QueryRe..."
QT_MOC_LITERAL(28, 373, 6), // "future"
QT_MOC_LITERAL(29, 380, 14), // "AlbumArtLoaded"
QT_MOC_LITERAL(30, 395, 2), // "id"
QT_MOC_LITERAL(31, 398, 5), // "image"
QT_MOC_LITERAL(32, 404, 7), // "GroupBy"
QT_MOC_LITERAL(33, 412, 12), // "GroupBy_None"
QT_MOC_LITERAL(34, 425, 14), // "GroupBy_Artist"
QT_MOC_LITERAL(35, 440, 13), // "GroupBy_Album"
QT_MOC_LITERAL(36, 454, 17), // "GroupBy_YearAlbum"
QT_MOC_LITERAL(37, 472, 12), // "GroupBy_Year"
QT_MOC_LITERAL(38, 485, 16), // "GroupBy_Composer"
QT_MOC_LITERAL(39, 502, 13), // "GroupBy_Genre"
QT_MOC_LITERAL(40, 516, 19), // "GroupBy_AlbumArtist"
QT_MOC_LITERAL(41, 536, 16), // "GroupBy_FileType"
QT_MOC_LITERAL(42, 553, 17), // "GroupBy_Performer"
QT_MOC_LITERAL(43, 571, 16), // "GroupBy_Grouping"
QT_MOC_LITERAL(44, 588, 15), // "GroupBy_Bitrate"
QT_MOC_LITERAL(45, 604, 12), // "GroupBy_Disc"
QT_MOC_LITERAL(46, 617, 25), // "GroupBy_OriginalYearAlbum"
QT_MOC_LITERAL(47, 643, 20) // "GroupBy_OriginalYear"

    },
    "LibraryModel\0TotalSongCountUpdated\0\0"
    "count\0GroupingChanged\0LibraryModel::Grouping\0"
    "g\0SetFilterAge\0age\0SetFilterText\0text\0"
    "SetFilterQueryMode\0QueryOptions::QueryMode\0"
    "query_mode\0SetGroupBy\0GetGroupBy\0Init\0"
    "async\0Reset\0ResetAsync\0SongsDiscovered\0"
    "SongList\0songs\0SongsDeleted\0"
    "SongsSlightlyChanged\0TotalSongCountUpdatedSlot\0"
    "ResetAsyncQueryFinished\0"
    "QFuture<LibraryModel::QueryResult>\0"
    "future\0AlbumArtLoaded\0id\0image\0GroupBy\0"
    "GroupBy_None\0GroupBy_Artist\0GroupBy_Album\0"
    "GroupBy_YearAlbum\0GroupBy_Year\0"
    "GroupBy_Composer\0GroupBy_Genre\0"
    "GroupBy_AlbumArtist\0GroupBy_FileType\0"
    "GroupBy_Performer\0GroupBy_Grouping\0"
    "GroupBy_Bitrate\0GroupBy_Disc\0"
    "GroupBy_OriginalYearAlbum\0"
    "GroupBy_OriginalYear"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_LibraryModel[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      17,   14, // methods
       0,    0, // properties
       1,  144, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

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

 // slots: name, argc, parameters, tag, flags
       7,    1,  105,    2, 0x0a /* Public */,
       9,    1,  108,    2, 0x0a /* Public */,
      11,    1,  111,    2, 0x0a /* Public */,
      14,    1,  114,    2, 0x0a /* Public */,
      15,    0,  117,    2, 0x0a /* Public */,
      16,    1,  118,    2, 0x0a /* Public */,
      16,    0,  121,    2, 0x2a /* Public | MethodCloned */,
      18,    0,  122,    2, 0x0a /* Public */,
      19,    0,  123,    2, 0x0a /* Public */,
      20,    1,  124,    2, 0x08 /* Private */,
      23,    1,  127,    2, 0x08 /* Private */,
      24,    1,  130,    2, 0x08 /* Private */,
      25,    1,  133,    2, 0x08 /* Private */,
      26,    1,  136,    2, 0x08 /* Private */,
      29,    2,  139,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, 0x80000000 | 5,    6,

 // slots: parameters
    QMetaType::Void, QMetaType::Int,    8,
    QMetaType::Void, QMetaType::QString,   10,
    QMetaType::Void, 0x80000000 | 12,   13,
    QMetaType::Void, 0x80000000 | 5,    6,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   17,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 21,   22,
    QMetaType::Void, 0x80000000 | 21,   22,
    QMetaType::Void, 0x80000000 | 21,   22,
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, 0x80000000 | 27,   28,
    QMetaType::Void, QMetaType::ULongLong, QMetaType::QImage,   30,   31,

 // enums: name, alias, flags, count, data
      32,   32, 0x0,   15,  149,

 // enum data: key, value
      33, uint(LibraryModel::GroupBy_None),
      34, uint(LibraryModel::GroupBy_Artist),
      35, uint(LibraryModel::GroupBy_Album),
      36, uint(LibraryModel::GroupBy_YearAlbum),
      37, uint(LibraryModel::GroupBy_Year),
      38, uint(LibraryModel::GroupBy_Composer),
      39, uint(LibraryModel::GroupBy_Genre),
      40, uint(LibraryModel::GroupBy_AlbumArtist),
      41, uint(LibraryModel::GroupBy_FileType),
      42, uint(LibraryModel::GroupBy_Performer),
      43, uint(LibraryModel::GroupBy_Grouping),
      44, uint(LibraryModel::GroupBy_Bitrate),
      45, uint(LibraryModel::GroupBy_Disc),
      46, uint(LibraryModel::GroupBy_OriginalYearAlbum),
      47, uint(LibraryModel::GroupBy_OriginalYear),

       0        // eod
};

void LibraryModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<LibraryModel *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->TotalSongCountUpdated((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->GroupingChanged((*reinterpret_cast< const LibraryModel::Grouping(*)>(_a[1]))); break;
        case 2: _t->SetFilterAge((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 3: _t->SetFilterText((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: _t->SetFilterQueryMode((*reinterpret_cast< QueryOptions::QueryMode(*)>(_a[1]))); break;
        case 5: _t->SetGroupBy((*reinterpret_cast< const LibraryModel::Grouping(*)>(_a[1]))); break;
        case 6: _t->GetGroupBy(); break;
        case 7: _t->Init((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 8: _t->Init(); break;
        case 9: _t->Reset(); break;
        case 10: _t->ResetAsync(); break;
        case 11: _t->SongsDiscovered((*reinterpret_cast< const SongList(*)>(_a[1]))); break;
        case 12: _t->SongsDeleted((*reinterpret_cast< const SongList(*)>(_a[1]))); break;
        case 13: _t->SongsSlightlyChanged((*reinterpret_cast< const SongList(*)>(_a[1]))); break;
        case 14: _t->TotalSongCountUpdatedSlot((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 15: _t->ResetAsyncQueryFinished((*reinterpret_cast< QFuture<LibraryModel::QueryResult>(*)>(_a[1]))); break;
        case 16: _t->AlbumArtLoaded((*reinterpret_cast< quint64(*)>(_a[1])),(*reinterpret_cast< const QImage(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; 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< LibraryModel::Grouping >(); break;
            }
            break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< LibraryModel::Grouping >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (LibraryModel::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&LibraryModel::TotalSongCountUpdated)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (LibraryModel::*)(const LibraryModel::Grouping & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&LibraryModel::GroupingChanged)) {
                *result = 1;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject LibraryModel::staticMetaObject = { {
    QMetaObject::SuperData::link<SimpleTreeModel<LibraryItem>::staticMetaObject>(),
    qt_meta_stringdata_LibraryModel.data,
    qt_meta_data_LibraryModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *LibraryModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_LibraryModel.stringdata0))
        return static_cast<void*>(this);
    return SimpleTreeModel<LibraryItem>::qt_metacast(_clname);
}

int LibraryModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = SimpleTreeModel<LibraryItem>::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 LibraryModel::TotalSongCountUpdated(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void LibraryModel::GroupingChanged(const LibraryModel::Grouping & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
