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

#include "../../src/cantata-2.0.1/models/devicesmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'devicesmodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.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
struct qt_meta_stringdata_DevicesModel_t {
    QByteArrayData data[43];
    char stringdata0[442];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DevicesModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DevicesModel_t qt_meta_stringdata_DevicesModel = {
    {
QT_MOC_LITERAL(0, 0, 12), // "DevicesModel"
QT_MOC_LITERAL(1, 13, 11), // "addToDevice"
QT_MOC_LITERAL(2, 25, 0), // ""
QT_MOC_LITERAL(3, 26, 3), // "udi"
QT_MOC_LITERAL(4, 30, 5), // "error"
QT_MOC_LITERAL(5, 36, 4), // "text"
QT_MOC_LITERAL(6, 41, 7), // "updated"
QT_MOC_LITERAL(7, 49, 3), // "idx"
QT_MOC_LITERAL(8, 53, 7), // "matches"
QT_MOC_LITERAL(9, 61, 14), // "QList<CdAlbum>"
QT_MOC_LITERAL(10, 76, 6), // "albums"
QT_MOC_LITERAL(11, 83, 7), // "invalid"
QT_MOC_LITERAL(12, 91, 11), // "QList<Song>"
QT_MOC_LITERAL(13, 103, 5), // "songs"
QT_MOC_LITERAL(14, 109, 14), // "updatedDetails"
QT_MOC_LITERAL(15, 124, 3), // "add"
QT_MOC_LITERAL(16, 128, 5), // "files"
QT_MOC_LITERAL(17, 134, 6), // "action"
QT_MOC_LITERAL(18, 141, 7), // "priorty"
QT_MOC_LITERAL(19, 149, 8), // "setCover"
QT_MOC_LITERAL(20, 158, 4), // "Song"
QT_MOC_LITERAL(21, 163, 4), // "song"
QT_MOC_LITERAL(22, 168, 3), // "img"
QT_MOC_LITERAL(23, 172, 4), // "file"
QT_MOC_LITERAL(24, 177, 11), // "deviceAdded"
QT_MOC_LITERAL(25, 189, 13), // "deviceRemoved"
QT_MOC_LITERAL(26, 203, 20), // "accessibilityChanged"
QT_MOC_LITERAL(27, 224, 10), // "accessible"
QT_MOC_LITERAL(28, 235, 14), // "deviceUpdating"
QT_MOC_LITERAL(29, 250, 5), // "state"
QT_MOC_LITERAL(30, 256, 15), // "emitAddToDevice"
QT_MOC_LITERAL(31, 272, 15), // "addRemoteDevice"
QT_MOC_LITERAL(32, 288, 13), // "DeviceOptions"
QT_MOC_LITERAL(33, 302, 4), // "opts"
QT_MOC_LITERAL(34, 307, 23), // "RemoteFsDevice::Details"
QT_MOC_LITERAL(35, 331, 7), // "details"
QT_MOC_LITERAL(36, 339, 18), // "removeRemoteDevice"
QT_MOC_LITERAL(37, 358, 16), // "removeFromConfig"
QT_MOC_LITERAL(38, 375, 22), // "remoteDeviceUdiChanged"
QT_MOC_LITERAL(39, 398, 13), // "mountsChanged"
QT_MOC_LITERAL(40, 412, 4), // "play"
QT_MOC_LITERAL(41, 417, 9), // "loadLocal"
QT_MOC_LITERAL(42, 427, 14) // "updateItemMenu"

    },
    "DevicesModel\0addToDevice\0\0udi\0error\0"
    "text\0updated\0idx\0matches\0QList<CdAlbum>\0"
    "albums\0invalid\0QList<Song>\0songs\0"
    "updatedDetails\0add\0files\0action\0priorty\0"
    "setCover\0Song\0song\0img\0file\0deviceAdded\0"
    "deviceRemoved\0accessibilityChanged\0"
    "accessible\0deviceUpdating\0state\0"
    "emitAddToDevice\0addRemoteDevice\0"
    "DeviceOptions\0opts\0RemoteFsDevice::Details\0"
    "details\0removeRemoteDevice\0removeFromConfig\0"
    "remoteDeviceUdiChanged\0mountsChanged\0"
    "play\0loadLocal\0updateItemMenu"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DevicesModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,  124,    2, 0x06 /* Public */,
       4,    1,  127,    2, 0x06 /* Public */,
       6,    1,  130,    2, 0x06 /* Public */,
       8,    2,  133,    2, 0x06 /* Public */,
      11,    1,  138,    2, 0x06 /* Public */,
      14,    1,  141,    2, 0x06 /* Public */,
      15,    3,  144,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      19,    3,  151,    2, 0x0a /* Public */,
      19,    2,  158,    2, 0x0a /* Public */,
      24,    1,  163,    2, 0x0a /* Public */,
      25,    1,  166,    2, 0x0a /* Public */,
      26,    2,  169,    2, 0x0a /* Public */,
      28,    2,  174,    2, 0x0a /* Public */,
      30,    0,  179,    2, 0x0a /* Public */,
      31,    2,  180,    2, 0x0a /* Public */,
      36,    2,  185,    2, 0x0a /* Public */,
      36,    1,  190,    2, 0x2a /* Public | MethodCloned */,
      38,    0,  193,    2, 0x0a /* Public */,
      39,    0,  194,    2, 0x0a /* Public */,
      40,    1,  195,    2, 0x08 /* Private */,
      41,    0,  198,    2, 0x08 /* Private */,
      42,    0,  199,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void, QMetaType::QString,    5,
    QMetaType::Void, QMetaType::QModelIndex,    7,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 9,    3,   10,
    QMetaType::Void, 0x80000000 | 12,   13,
    QMetaType::Void, 0x80000000 | 12,   13,
    QMetaType::Void, QMetaType::QStringList, QMetaType::Int, QMetaType::UChar,   16,   17,   18,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 20, QMetaType::QImage, QMetaType::QString,   21,   22,   23,
    QMetaType::Void, 0x80000000 | 20, QMetaType::QImage,   21,   22,
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void, QMetaType::Bool, QMetaType::QString,   27,    3,
    QMetaType::Void, QMetaType::QString, QMetaType::Bool,    3,   29,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 32, 0x80000000 | 34,   33,   35,
    QMetaType::Void, QMetaType::QString, QMetaType::Bool,    3,   37,
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 12,   13,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void DevicesModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DevicesModel *_t = static_cast<DevicesModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->addToDevice((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 1: _t->error((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->updated((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 3: _t->matches((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QList<CdAlbum>(*)>(_a[2]))); break;
        case 4: _t->invalid((*reinterpret_cast< const QList<Song>(*)>(_a[1]))); break;
        case 5: _t->updatedDetails((*reinterpret_cast< const QList<Song>(*)>(_a[1]))); break;
        case 6: _t->add((*reinterpret_cast< const QStringList(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< quint8(*)>(_a[3]))); break;
        case 7: _t->setCover((*reinterpret_cast< const Song(*)>(_a[1])),(*reinterpret_cast< const QImage(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 8: _t->setCover((*reinterpret_cast< const Song(*)>(_a[1])),(*reinterpret_cast< const QImage(*)>(_a[2]))); break;
        case 9: _t->deviceAdded((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 10: _t->deviceRemoved((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 11: _t->accessibilityChanged((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 12: _t->deviceUpdating((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 13: _t->emitAddToDevice(); break;
        case 14: _t->addRemoteDevice((*reinterpret_cast< const DeviceOptions(*)>(_a[1])),(*reinterpret_cast< RemoteFsDevice::Details(*)>(_a[2]))); break;
        case 15: _t->removeRemoteDevice((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 16: _t->removeRemoteDevice((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 17: _t->remoteDeviceUdiChanged(); break;
        case 18: _t->mountsChanged(); break;
        case 19: _t->play((*reinterpret_cast< const QList<Song>(*)>(_a[1]))); break;
        case 20: _t->loadLocal(); break;
        case 21: _t->updateItemMenu(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<Song> >(); 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< QList<Song> >(); break;
            }
            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< Song >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Song >(); break;
            }
            break;
        case 19:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<Song> >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (DevicesModel::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DevicesModel::addToDevice)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (DevicesModel::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DevicesModel::error)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (DevicesModel::*_t)(const QModelIndex & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DevicesModel::updated)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (DevicesModel::*_t)(const QString & , const QList<CdAlbum> & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DevicesModel::matches)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (DevicesModel::*_t)(const QList<Song> & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DevicesModel::invalid)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (DevicesModel::*_t)(const QList<Song> & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DevicesModel::updatedDetails)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (DevicesModel::*_t)(const QStringList & , int , quint8 );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DevicesModel::add)) {
                *result = 6;
                return;
            }
        }
    }
}

const QMetaObject DevicesModel::staticMetaObject = {
    { &MusicLibraryModel::staticMetaObject, qt_meta_stringdata_DevicesModel.data,
      qt_meta_data_DevicesModel,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *DevicesModel::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_DevicesModel.stringdata0))
        return static_cast<void*>(const_cast< DevicesModel*>(this));
    return MusicLibraryModel::qt_metacast(_clname);
}

int DevicesModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = MusicLibraryModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 22)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 22;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 22)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 22;
    }
    return _id;
}

// SIGNAL 0
void DevicesModel::addToDevice(const QString & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void DevicesModel::error(const QString & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void DevicesModel::updated(const QModelIndex & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void DevicesModel::matches(const QString & _t1, const QList<CdAlbum> & _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void DevicesModel::invalid(const QList<Song> & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void DevicesModel::updatedDetails(const QList<Song> & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void DevicesModel::add(const QStringList & _t1, int _t2, quint8 _t3)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 6, _a);
}
QT_END_MOC_NAMESPACE
