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

#include <memory>
#include "../../../../../noson-app/backend/NosonApp/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.18. 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_nosonapp__LibraryModel_t {
    QByteArrayData data[63];
    char stringdata0[662];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_nosonapp__LibraryModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_nosonapp__LibraryModel_t qt_meta_stringdata_nosonapp__LibraryModel = {
    {
QT_MOC_LITERAL(0, 0, 22), // "nosonapp::LibraryModel"
QT_MOC_LITERAL(1, 23, 11), // "dataUpdated"
QT_MOC_LITERAL(2, 35, 0), // ""
QT_MOC_LITERAL(3, 36, 12), // "countChanged"
QT_MOC_LITERAL(4, 49, 6), // "loaded"
QT_MOC_LITERAL(5, 56, 9), // "succeeded"
QT_MOC_LITERAL(6, 66, 11), // "viewUpdated"
QT_MOC_LITERAL(7, 78, 17), // "totalCountChanged"
QT_MOC_LITERAL(8, 96, 11), // "pathChanged"
QT_MOC_LITERAL(9, 108, 3), // "get"
QT_MOC_LITERAL(10, 112, 3), // "row"
QT_MOC_LITERAL(11, 116, 5), // "isNew"
QT_MOC_LITERAL(12, 122, 4), // "init"
QT_MOC_LITERAL(13, 127, 16), // "nosonapp::Sonos*"
QT_MOC_LITERAL(14, 144, 8), // "provider"
QT_MOC_LITERAL(15, 153, 4), // "root"
QT_MOC_LITERAL(16, 158, 4), // "fill"
QT_MOC_LITERAL(17, 163, 7), // "display"
QT_MOC_LITERAL(18, 171, 4), // "node"
QT_MOC_LITERAL(19, 176, 9), // "clearData"
QT_MOC_LITERAL(20, 186, 8), // "loadData"
QT_MOC_LITERAL(21, 195, 7), // "fetchAt"
QT_MOC_LITERAL(22, 203, 5), // "index"
QT_MOC_LITERAL(23, 209, 9), // "fetchBack"
QT_MOC_LITERAL(24, 219, 10), // "fetchFront"
QT_MOC_LITERAL(25, 230, 9), // "asyncLoad"
QT_MOC_LITERAL(26, 240, 10), // "resetModel"
QT_MOC_LITERAL(27, 251, 8), // "pathName"
QT_MOC_LITERAL(28, 260, 6), // "pathId"
QT_MOC_LITERAL(29, 267, 11), // "displayType"
QT_MOC_LITERAL(30, 279, 8), // "nodeType"
QT_MOC_LITERAL(31, 288, 9), // "viewIndex"
QT_MOC_LITERAL(32, 298, 20), // "listSearchCategories"
QT_MOC_LITERAL(33, 319, 14), // "QList<QString>"
QT_MOC_LITERAL(34, 334, 14), // "asyncLoadChild"
QT_MOC_LITERAL(35, 349, 2), // "id"
QT_MOC_LITERAL(36, 352, 5), // "title"
QT_MOC_LITERAL(37, 358, 15), // "asyncLoadParent"
QT_MOC_LITERAL(38, 374, 15), // "asyncLoadSearch"
QT_MOC_LITERAL(39, 390, 8), // "category"
QT_MOC_LITERAL(40, 399, 4), // "term"
QT_MOC_LITERAL(41, 404, 17), // "containerUpdateID"
QT_MOC_LITERAL(42, 422, 11), // "faultString"
QT_MOC_LITERAL(43, 434, 5), // "count"
QT_MOC_LITERAL(44, 440, 7), // "failure"
QT_MOC_LITERAL(45, 448, 9), // "dataState"
QT_MOC_LITERAL(46, 458, 10), // "totalCount"
QT_MOC_LITERAL(47, 469, 10), // "firstIndex"
QT_MOC_LITERAL(48, 480, 6), // "isRoot"
QT_MOC_LITERAL(49, 487, 8), // "NodeType"
QT_MOC_LITERAL(50, 496, 11), // "NodeUnknown"
QT_MOC_LITERAL(51, 508, 9), // "NodeAlbum"
QT_MOC_LITERAL(52, 518, 10), // "NodePerson"
QT_MOC_LITERAL(53, 529, 9), // "NodeGenre"
QT_MOC_LITERAL(54, 539, 12), // "NodePlaylist"
QT_MOC_LITERAL(55, 552, 13), // "NodeAudioItem"
QT_MOC_LITERAL(56, 566, 10), // "NodeFolder"
QT_MOC_LITERAL(57, 577, 12), // "NodePlayable"
QT_MOC_LITERAL(58, 590, 11), // "DisplayType"
QT_MOC_LITERAL(59, 602, 14), // "DisplayUnknown"
QT_MOC_LITERAL(60, 617, 11), // "DisplayGrid"
QT_MOC_LITERAL(61, 629, 16), // "DisplayTrackList"
QT_MOC_LITERAL(62, 646, 15) // "DisplayItemList"

    },
    "nosonapp::LibraryModel\0dataUpdated\0\0"
    "countChanged\0loaded\0succeeded\0viewUpdated\0"
    "totalCountChanged\0pathChanged\0get\0row\0"
    "isNew\0init\0nosonapp::Sonos*\0provider\0"
    "root\0fill\0display\0node\0clearData\0"
    "loadData\0fetchAt\0index\0fetchBack\0"
    "fetchFront\0asyncLoad\0resetModel\0"
    "pathName\0pathId\0displayType\0nodeType\0"
    "viewIndex\0listSearchCategories\0"
    "QList<QString>\0asyncLoadChild\0id\0title\0"
    "asyncLoadParent\0asyncLoadSearch\0"
    "category\0term\0containerUpdateID\0"
    "faultString\0count\0failure\0dataState\0"
    "totalCount\0firstIndex\0isRoot\0NodeType\0"
    "NodeUnknown\0NodeAlbum\0NodePerson\0"
    "NodeGenre\0NodePlaylist\0NodeAudioItem\0"
    "NodeFolder\0NodePlayable\0DisplayType\0"
    "DisplayUnknown\0DisplayGrid\0DisplayTrackList\0"
    "DisplayItemList"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_nosonapp__LibraryModel[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      31,   14, // methods
       6,  256, // properties
       2,  280, // enums/sets
       0,    0, // constructors
       0,       // flags
       6,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,  169,    2, 0x06 /* Public */,
       3,    0,  170,    2, 0x06 /* Public */,
       4,    1,  171,    2, 0x06 /* Public */,
       6,    0,  174,    2, 0x06 /* Public */,
       7,    0,  175,    2, 0x06 /* Public */,
       8,    0,  176,    2, 0x06 /* Public */,

 // methods: name, argc, parameters, tag, flags
       9,    1,  177,    2, 0x02 /* Public */,
      11,    0,  180,    2, 0x02 /* Public */,
      12,    5,  181,    2, 0x02 /* Public */,
      12,    4,  192,    2, 0x22 /* Public | MethodCloned */,
      12,    3,  201,    2, 0x22 /* Public | MethodCloned */,
      12,    2,  208,    2, 0x22 /* Public | MethodCloned */,
      19,    0,  213,    2, 0x02 /* Public */,
      20,    0,  214,    2, 0x02 /* Public */,
      21,    1,  215,    2, 0x02 /* Public */,
      23,    0,  218,    2, 0x02 /* Public */,
      24,    0,  219,    2, 0x02 /* Public */,
      25,    0,  220,    2, 0x02 /* Public */,
      26,    0,  221,    2, 0x02 /* Public */,
      27,    0,  222,    2, 0x02 /* Public */,
      28,    0,  223,    2, 0x02 /* Public */,
      29,    0,  224,    2, 0x02 /* Public */,
      30,    0,  225,    2, 0x02 /* Public */,
      31,    0,  226,    2, 0x02 /* Public */,
      32,    0,  227,    2, 0x02 /* Public */,
      34,    5,  228,    2, 0x02 /* Public */,
      34,    4,  239,    2, 0x22 /* Public | MethodCloned */,
      37,    0,  248,    2, 0x02 /* Public */,
      38,    2,  249,    2, 0x02 /* Public */,
      41,    0,  254,    2, 0x02 /* Public */,
      42,    0,  255,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    5,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // methods: parameters
    QMetaType::QVariantMap, QMetaType::Int,   10,
    QMetaType::Bool,
    QMetaType::Bool, 0x80000000 | 13, QMetaType::QString, QMetaType::Bool, QMetaType::Int, QMetaType::Int,   14,   15,   16,   17,   18,
    QMetaType::Bool, 0x80000000 | 13, QMetaType::QString, QMetaType::Bool, QMetaType::Int,   14,   15,   16,   17,
    QMetaType::Bool, 0x80000000 | 13, QMetaType::QString, QMetaType::Bool,   14,   15,   16,
    QMetaType::Bool, 0x80000000 | 13, QMetaType::QString,   14,   15,
    QMetaType::Void,
    QMetaType::Bool,
    QMetaType::Bool, QMetaType::Int,   22,
    QMetaType::Bool,
    QMetaType::Bool,
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::QString,
    QMetaType::QString,
    QMetaType::Int,
    QMetaType::Int,
    QMetaType::Int,
    0x80000000 | 33,
    QMetaType::Bool, QMetaType::QString, QMetaType::QString, QMetaType::Int, QMetaType::Int, QMetaType::Int,   35,   36,   29,   30,   31,
    QMetaType::Bool, QMetaType::QString, QMetaType::QString, QMetaType::Int, QMetaType::Int,   35,   36,   29,   30,
    QMetaType::Bool,
    QMetaType::Bool, QMetaType::QString, QMetaType::QString,   39,   40,
    QMetaType::Int,
    QMetaType::QString,

 // properties: name, type, flags
      43, QMetaType::Int, 0x00495001,
      44, QMetaType::Bool, 0x00495001,
      45, QMetaType::Int, 0x00495001,
      46, QMetaType::Int, 0x00495001,
      47, QMetaType::Int, 0x00495001,
      48, QMetaType::Bool, 0x00495001,

 // properties: notify_signal_id
       1,
       2,
       2,
       4,
       2,
       5,

 // enums: name, alias, flags, count, data
      49,   49, 0x0,    8,  290,
      58,   58, 0x0,    4,  306,

 // enum data: key, value
      50, uint(nosonapp::LibraryModel::NodeUnknown),
      51, uint(nosonapp::LibraryModel::NodeAlbum),
      52, uint(nosonapp::LibraryModel::NodePerson),
      53, uint(nosonapp::LibraryModel::NodeGenre),
      54, uint(nosonapp::LibraryModel::NodePlaylist),
      55, uint(nosonapp::LibraryModel::NodeAudioItem),
      56, uint(nosonapp::LibraryModel::NodeFolder),
      57, uint(nosonapp::LibraryModel::NodePlayable),
      59, uint(nosonapp::LibraryModel::DisplayUnknown),
      60, uint(nosonapp::LibraryModel::DisplayGrid),
      61, uint(nosonapp::LibraryModel::DisplayTrackList),
      62, uint(nosonapp::LibraryModel::DisplayItemList),

       0        // eod
};

void nosonapp::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->dataUpdated(); break;
        case 1: _t->countChanged(); break;
        case 2: _t->loaded((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: _t->viewUpdated(); break;
        case 4: _t->totalCountChanged(); break;
        case 5: _t->pathChanged(); break;
        case 6: { QVariantMap _r = _t->get((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 7: { bool _r = _t->isNew();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 8: { bool _r = _t->init((*reinterpret_cast< nosonapp::Sonos*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4])),(*reinterpret_cast< int(*)>(_a[5])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->init((*reinterpret_cast< nosonapp::Sonos*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->init((*reinterpret_cast< nosonapp::Sonos*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 11: { bool _r = _t->init((*reinterpret_cast< nosonapp::Sonos*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 12: _t->clearData(); break;
        case 13: { bool _r = _t->loadData();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 14: { bool _r = _t->fetchAt((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 15: { bool _r = _t->fetchBack();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 16: { bool _r = _t->fetchFront();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 17: { bool _r = _t->asyncLoad();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 18: _t->resetModel(); break;
        case 19: { QString _r = _t->pathName();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 20: { QString _r = _t->pathId();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 21: { int _r = _t->displayType();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 22: { int _r = _t->nodeType();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 23: { int _r = _t->viewIndex();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 24: { QList<QString> _r = _t->listSearchCategories();
            if (_a[0]) *reinterpret_cast< QList<QString>*>(_a[0]) = std::move(_r); }  break;
        case 25: { bool _r = _t->asyncLoadChild((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4])),(*reinterpret_cast< int(*)>(_a[5])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 26: { bool _r = _t->asyncLoadChild((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 27: { bool _r = _t->asyncLoadParent();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 28: { bool _r = _t->asyncLoadSearch((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 29: { int _r = _t->containerUpdateID();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 30: { QString _r = _t->faultString();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (LibraryModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&LibraryModel::dataUpdated)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (LibraryModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&LibraryModel::countChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (LibraryModel::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&LibraryModel::loaded)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (LibraryModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&LibraryModel::viewUpdated)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (LibraryModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&LibraryModel::totalCountChanged)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (LibraryModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&LibraryModel::pathChanged)) {
                *result = 5;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<LibraryModel *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = _t->rowCount(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->dataFailure(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->dataState(); break;
        case 3: *reinterpret_cast< int*>(_v) = _t->totalCount(); break;
        case 4: *reinterpret_cast< int*>(_v) = _t->firstIndex(); break;
        case 5: *reinterpret_cast< bool*>(_v) = _t->isRoot(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject nosonapp::LibraryModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_meta_stringdata_nosonapp__LibraryModel.data,
    qt_meta_data_nosonapp__LibraryModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *nosonapp::LibraryModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_nosonapp__LibraryModel.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "ListModel<Sonos>"))
        return static_cast< ListModel<Sonos>*>(this);
    return QAbstractListModel::qt_metacast(_clname);
}

int nosonapp::LibraryModel::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 < 31)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 31;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 31)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 31;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 6;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void nosonapp::LibraryModel::dataUpdated()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void nosonapp::LibraryModel::countChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void nosonapp::LibraryModel::loaded(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void nosonapp::LibraryModel::viewUpdated()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void nosonapp::LibraryModel::totalCountChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void nosonapp::LibraryModel::pathChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
