/****************************************************************************
** Meta object code from reading C++ file 'playlistsmodel.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/playlistsmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'playlistsmodel.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__PlaylistsModel_t {
    QByteArrayData data[20];
    char stringdata0[186];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_nosonapp__PlaylistsModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_nosonapp__PlaylistsModel_t qt_meta_stringdata_nosonapp__PlaylistsModel = {
    {
QT_MOC_LITERAL(0, 0, 24), // "nosonapp::PlaylistsModel"
QT_MOC_LITERAL(1, 25, 11), // "dataUpdated"
QT_MOC_LITERAL(2, 37, 0), // ""
QT_MOC_LITERAL(3, 38, 12), // "countChanged"
QT_MOC_LITERAL(4, 51, 6), // "loaded"
QT_MOC_LITERAL(5, 58, 9), // "succeeded"
QT_MOC_LITERAL(6, 68, 3), // "get"
QT_MOC_LITERAL(7, 72, 3), // "row"
QT_MOC_LITERAL(8, 76, 5), // "isNew"
QT_MOC_LITERAL(9, 82, 4), // "init"
QT_MOC_LITERAL(10, 87, 16), // "nosonapp::Sonos*"
QT_MOC_LITERAL(11, 104, 8), // "provider"
QT_MOC_LITERAL(12, 113, 4), // "root"
QT_MOC_LITERAL(13, 118, 4), // "fill"
QT_MOC_LITERAL(14, 123, 9), // "asyncLoad"
QT_MOC_LITERAL(15, 133, 10), // "resetModel"
QT_MOC_LITERAL(16, 144, 17), // "containerUpdateID"
QT_MOC_LITERAL(17, 162, 5), // "count"
QT_MOC_LITERAL(18, 168, 7), // "failure"
QT_MOC_LITERAL(19, 176, 9) // "dataState"

    },
    "nosonapp::PlaylistsModel\0dataUpdated\0"
    "\0countChanged\0loaded\0succeeded\0get\0"
    "row\0isNew\0init\0nosonapp::Sonos*\0"
    "provider\0root\0fill\0asyncLoad\0resetModel\0"
    "containerUpdateID\0count\0failure\0"
    "dataState"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_nosonapp__PlaylistsModel[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      10,   14, // methods
       3,   88, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   64,    2, 0x06 /* Public */,
       3,    0,   65,    2, 0x06 /* Public */,
       4,    1,   66,    2, 0x06 /* Public */,

 // methods: name, argc, parameters, tag, flags
       6,    1,   69,    2, 0x02 /* Public */,
       8,    0,   72,    2, 0x02 /* Public */,
       9,    3,   73,    2, 0x02 /* Public */,
       9,    2,   80,    2, 0x22 /* Public | MethodCloned */,
      14,    0,   85,    2, 0x02 /* Public */,
      15,    0,   86,    2, 0x02 /* Public */,
      16,    0,   87,    2, 0x02 /* Public */,

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

 // methods: parameters
    QMetaType::QVariantMap, QMetaType::Int,    7,
    QMetaType::Bool,
    QMetaType::Bool, 0x80000000 | 10, QMetaType::QString, QMetaType::Bool,   11,   12,   13,
    QMetaType::Bool, 0x80000000 | 10, QMetaType::QString,   11,   12,
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::Int,

 // properties: name, type, flags
      17, QMetaType::Int, 0x00495001,
      18, QMetaType::Bool, 0x00495001,
      19, QMetaType::Int, 0x00495001,

 // properties: notify_signal_id
       1,
       2,
       2,

       0        // eod
};

void nosonapp::PlaylistsModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<PlaylistsModel *>(_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: { QVariantMap _r = _t->get((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 4: { bool _r = _t->isNew();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 5: { 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 6: { 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 7: { bool _r = _t->asyncLoad();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->resetModel(); break;
        case 9: { int _r = _t->containerUpdateID();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (PlaylistsModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PlaylistsModel::dataUpdated)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (PlaylistsModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PlaylistsModel::countChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (PlaylistsModel::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PlaylistsModel::loaded)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<PlaylistsModel *>(_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;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject nosonapp::PlaylistsModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_meta_stringdata_nosonapp__PlaylistsModel.data,
    qt_meta_data_nosonapp__PlaylistsModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int nosonapp::PlaylistsModel::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)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 10;
    }
#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 -= 3;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 3;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

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

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