/****************************************************************************
** Meta object code from reading C++ file 'zonesmodel.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/zonesmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'zonesmodel.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__ZonesModel_t {
    QByteArrayData data[33];
    char stringdata0[397];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_nosonapp__ZonesModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_nosonapp__ZonesModel_t qt_meta_stringdata_nosonapp__ZonesModel = {
    {
QT_MOC_LITERAL(0, 0, 20), // "nosonapp::ZonesModel"
QT_MOC_LITERAL(1, 21, 11), // "dataUpdated"
QT_MOC_LITERAL(2, 33, 0), // ""
QT_MOC_LITERAL(3, 34, 12), // "countChanged"
QT_MOC_LITERAL(4, 47, 6), // "loaded"
QT_MOC_LITERAL(5, 54, 9), // "succeeded"
QT_MOC_LITERAL(6, 64, 18), // "zpConnectedChanged"
QT_MOC_LITERAL(7, 83, 3), // "pid"
QT_MOC_LITERAL(8, 87, 18), // "zpRenderingChanged"
QT_MOC_LITERAL(9, 106, 23), // "zpRenderingGroupChanged"
QT_MOC_LITERAL(10, 130, 23), // "zpRenderingCountChanged"
QT_MOC_LITERAL(11, 154, 15), // "zpSourceChanged"
QT_MOC_LITERAL(12, 170, 22), // "zpPlaybackStateChanged"
QT_MOC_LITERAL(13, 193, 17), // "zpPlayModeChanged"
QT_MOC_LITERAL(14, 211, 19), // "zpSleepTimerChanged"
QT_MOC_LITERAL(15, 231, 3), // "get"
QT_MOC_LITERAL(16, 235, 3), // "row"
QT_MOC_LITERAL(17, 239, 10), // "holdPlayer"
QT_MOC_LITERAL(18, 250, 17), // "nosonapp::Player*"
QT_MOC_LITERAL(19, 268, 13), // "releasePlayer"
QT_MOC_LITERAL(20, 282, 6), // "player"
QT_MOC_LITERAL(21, 289, 5), // "isNew"
QT_MOC_LITERAL(22, 295, 4), // "init"
QT_MOC_LITERAL(23, 300, 16), // "nosonapp::Sonos*"
QT_MOC_LITERAL(24, 317, 8), // "provider"
QT_MOC_LITERAL(25, 326, 4), // "fill"
QT_MOC_LITERAL(26, 331, 8), // "loadData"
QT_MOC_LITERAL(27, 340, 9), // "asyncLoad"
QT_MOC_LITERAL(28, 350, 10), // "resetModel"
QT_MOC_LITERAL(29, 361, 11), // "appendModel"
QT_MOC_LITERAL(30, 373, 5), // "count"
QT_MOC_LITERAL(31, 379, 7), // "failure"
QT_MOC_LITERAL(32, 387, 9) // "dataState"

    },
    "nosonapp::ZonesModel\0dataUpdated\0\0"
    "countChanged\0loaded\0succeeded\0"
    "zpConnectedChanged\0pid\0zpRenderingChanged\0"
    "zpRenderingGroupChanged\0zpRenderingCountChanged\0"
    "zpSourceChanged\0zpPlaybackStateChanged\0"
    "zpPlayModeChanged\0zpSleepTimerChanged\0"
    "get\0row\0holdPlayer\0nosonapp::Player*\0"
    "releasePlayer\0player\0isNew\0init\0"
    "nosonapp::Sonos*\0provider\0fill\0loadData\0"
    "asyncLoad\0resetModel\0appendModel\0count\0"
    "failure\0dataState"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_nosonapp__ZonesModel[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      21,   14, // methods
       3,  170, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
      11,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,  119,    2, 0x06 /* Public */,
       3,    0,  120,    2, 0x06 /* Public */,
       4,    1,  121,    2, 0x06 /* Public */,
       6,    1,  124,    2, 0x06 /* Public */,
       8,    1,  127,    2, 0x06 /* Public */,
       9,    1,  130,    2, 0x06 /* Public */,
      10,    1,  133,    2, 0x06 /* Public */,
      11,    1,  136,    2, 0x06 /* Public */,
      12,    1,  139,    2, 0x06 /* Public */,
      13,    1,  142,    2, 0x06 /* Public */,
      14,    1,  145,    2, 0x06 /* Public */,

 // methods: name, argc, parameters, tag, flags
      15,    1,  148,    2, 0x02 /* Public */,
      17,    1,  151,    2, 0x02 /* Public */,
      19,    1,  154,    2, 0x02 /* Public */,
      21,    0,  157,    2, 0x02 /* Public */,
      22,    2,  158,    2, 0x02 /* Public */,
      22,    1,  163,    2, 0x22 /* Public | MethodCloned */,
      26,    0,  166,    2, 0x02 /* Public */,
      27,    0,  167,    2, 0x02 /* Public */,
      28,    0,  168,    2, 0x02 /* Public */,
      29,    0,  169,    2, 0x02 /* Public */,

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

 // methods: parameters
    QMetaType::QVariantMap, QMetaType::Int,   16,
    0x80000000 | 18, QMetaType::Int,   16,
    QMetaType::Void, 0x80000000 | 18,   20,
    QMetaType::Bool,
    QMetaType::Bool, 0x80000000 | 23, QMetaType::Bool,   24,   25,
    QMetaType::Bool, 0x80000000 | 23,   24,
    QMetaType::Bool,
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
      30, QMetaType::Int, 0x00495001,
      31, QMetaType::Bool, 0x00495001,
      32, QMetaType::Int, 0x00495001,

 // properties: notify_signal_id
       1,
       2,
       2,

       0        // eod
};

void nosonapp::ZonesModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<ZonesModel *>(_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->zpConnectedChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 4: _t->zpRenderingChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 5: _t->zpRenderingGroupChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 6: _t->zpRenderingCountChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 7: _t->zpSourceChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 8: _t->zpPlaybackStateChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 9: _t->zpPlayModeChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 10: _t->zpSleepTimerChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 11: { QVariantMap _r = _t->get((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 12: { nosonapp::Player* _r = _t->holdPlayer((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< nosonapp::Player**>(_a[0]) = std::move(_r); }  break;
        case 13: _t->releasePlayer((*reinterpret_cast< nosonapp::Player*(*)>(_a[1]))); break;
        case 14: { bool _r = _t->isNew();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 15: { bool _r = _t->init((*reinterpret_cast< nosonapp::Sonos*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 16: { bool _r = _t->init((*reinterpret_cast< nosonapp::Sonos*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 17: { bool _r = _t->loadData();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 18: { bool _r = _t->asyncLoad();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 19: _t->resetModel(); break;
        case 20: _t->appendModel(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (ZonesModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ZonesModel::dataUpdated)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (ZonesModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ZonesModel::countChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (ZonesModel::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ZonesModel::loaded)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (ZonesModel::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ZonesModel::zpConnectedChanged)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (ZonesModel::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ZonesModel::zpRenderingChanged)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (ZonesModel::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ZonesModel::zpRenderingGroupChanged)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (ZonesModel::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ZonesModel::zpRenderingCountChanged)) {
                *result = 6;
                return;
            }
        }
        {
            using _t = void (ZonesModel::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ZonesModel::zpSourceChanged)) {
                *result = 7;
                return;
            }
        }
        {
            using _t = void (ZonesModel::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ZonesModel::zpPlaybackStateChanged)) {
                *result = 8;
                return;
            }
        }
        {
            using _t = void (ZonesModel::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ZonesModel::zpPlayModeChanged)) {
                *result = 9;
                return;
            }
        }
        {
            using _t = void (ZonesModel::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ZonesModel::zpSleepTimerChanged)) {
                *result = 10;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<ZonesModel *>(_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::ZonesModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_meta_stringdata_nosonapp__ZonesModel.data,
    qt_meta_data_nosonapp__ZonesModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int nosonapp::ZonesModel::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 < 21)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 21;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 21)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 21;
    }
#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::ZonesModel::dataUpdated()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

// SIGNAL 2
void nosonapp::ZonesModel::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::ZonesModel::zpConnectedChanged(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void nosonapp::ZonesModel::zpRenderingChanged(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void nosonapp::ZonesModel::zpRenderingGroupChanged(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void nosonapp::ZonesModel::zpRenderingCountChanged(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 6, _a);
}

// SIGNAL 7
void nosonapp::ZonesModel::zpSourceChanged(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 7, _a);
}

// SIGNAL 8
void nosonapp::ZonesModel::zpPlaybackStateChanged(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 8, _a);
}

// SIGNAL 9
void nosonapp::ZonesModel::zpPlayModeChanged(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 9, _a);
}

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