/****************************************************************************
** Meta object code from reading C++ file 'playerobject.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/qmmp-1.1.9/src/plugins/General/mpris/mpris1/playerobject.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'playerobject.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_PlayerObject_t {
    QByteArrayData data[25];
    char stringdata0[254];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_PlayerObject_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_PlayerObject_t qt_meta_stringdata_PlayerObject = {
    {
QT_MOC_LITERAL(0, 0, 12), // "PlayerObject"
QT_MOC_LITERAL(1, 13, 15), // "D-Bus Interface"
QT_MOC_LITERAL(2, 29, 27), // "org.freedesktop.MediaPlayer"
QT_MOC_LITERAL(3, 57, 10), // "CapsChange"
QT_MOC_LITERAL(4, 68, 0), // ""
QT_MOC_LITERAL(5, 69, 11), // "TrackChange"
QT_MOC_LITERAL(6, 81, 12), // "StatusChange"
QT_MOC_LITERAL(7, 94, 12), // "PlayerStatus"
QT_MOC_LITERAL(8, 107, 4), // "Next"
QT_MOC_LITERAL(9, 112, 4), // "Prev"
QT_MOC_LITERAL(10, 117, 5), // "Pause"
QT_MOC_LITERAL(11, 123, 4), // "Stop"
QT_MOC_LITERAL(12, 128, 4), // "Play"
QT_MOC_LITERAL(13, 133, 6), // "Repeat"
QT_MOC_LITERAL(14, 140, 3), // "in0"
QT_MOC_LITERAL(15, 144, 9), // "GetStatus"
QT_MOC_LITERAL(16, 154, 11), // "GetMetadata"
QT_MOC_LITERAL(17, 166, 7), // "GetCaps"
QT_MOC_LITERAL(18, 174, 9), // "VolumeSet"
QT_MOC_LITERAL(19, 184, 9), // "VolumeGet"
QT_MOC_LITERAL(20, 194, 11), // "PositionSet"
QT_MOC_LITERAL(21, 206, 11), // "PositionGet"
QT_MOC_LITERAL(22, 218, 10), // "updateCaps"
QT_MOC_LITERAL(23, 229, 11), // "updateTrack"
QT_MOC_LITERAL(24, 241, 12) // "updateStatus"

    },
    "PlayerObject\0D-Bus Interface\0"
    "org.freedesktop.MediaPlayer\0CapsChange\0"
    "\0TrackChange\0StatusChange\0PlayerStatus\0"
    "Next\0Prev\0Pause\0Stop\0Play\0Repeat\0in0\0"
    "GetStatus\0GetMetadata\0GetCaps\0VolumeSet\0"
    "VolumeGet\0PositionSet\0PositionGet\0"
    "updateCaps\0updateTrack\0updateStatus"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_PlayerObject[] = {

 // content:
       7,       // revision
       0,       // classname
       1,   14, // classinfo
      19,   16, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // classinfo: key, value
       1,    2,

 // signals: name, argc, parameters, tag, flags
       3,    1,  111,    4, 0x06 /* Public */,
       5,    1,  114,    4, 0x06 /* Public */,
       6,    1,  117,    4, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    0,  120,    4, 0x0a /* Public */,
       9,    0,  121,    4, 0x0a /* Public */,
      10,    0,  122,    4, 0x0a /* Public */,
      11,    0,  123,    4, 0x0a /* Public */,
      12,    0,  124,    4, 0x0a /* Public */,
      13,    1,  125,    4, 0x0a /* Public */,
      15,    0,  128,    4, 0x0a /* Public */,
      16,    0,  129,    4, 0x0a /* Public */,
      17,    0,  130,    4, 0x0a /* Public */,
      18,    1,  131,    4, 0x0a /* Public */,
      19,    0,  134,    4, 0x0a /* Public */,
      20,    1,  135,    4, 0x0a /* Public */,
      21,    0,  138,    4, 0x0a /* Public */,
      22,    0,  139,    4, 0x08 /* Private */,
      23,    0,  140,    4, 0x08 /* Private */,
      24,    0,  141,    4, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int,    4,
    QMetaType::Void, QMetaType::QVariantMap,    4,
    QMetaType::Void, 0x80000000 | 7,    4,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   14,
    0x80000000 | 7,
    QMetaType::QVariantMap,
    QMetaType::Int,
    QMetaType::Void, QMetaType::Int,   14,
    QMetaType::Int,
    QMetaType::Void, QMetaType::Int,   14,
    QMetaType::Int,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void PlayerObject::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        PlayerObject *_t = static_cast<PlayerObject *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->CapsChange((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->TrackChange((*reinterpret_cast< QVariantMap(*)>(_a[1]))); break;
        case 2: _t->StatusChange((*reinterpret_cast< PlayerStatus(*)>(_a[1]))); break;
        case 3: _t->Next(); break;
        case 4: _t->Prev(); break;
        case 5: _t->Pause(); break;
        case 6: _t->Stop(); break;
        case 7: _t->Play(); break;
        case 8: _t->Repeat((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 9: { PlayerStatus _r = _t->GetStatus();
            if (_a[0]) *reinterpret_cast< PlayerStatus*>(_a[0]) = _r; }  break;
        case 10: { QVariantMap _r = _t->GetMetadata();
            if (_a[0]) *reinterpret_cast< QVariantMap*>(_a[0]) = _r; }  break;
        case 11: { int _r = _t->GetCaps();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 12: _t->VolumeSet((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 13: { int _r = _t->VolumeGet();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 14: _t->PositionSet((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 15: { int _r = _t->PositionGet();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 16: _t->updateCaps(); break;
        case 17: _t->updateTrack(); break;
        case 18: _t->updateStatus(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< PlayerStatus >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (PlayerObject::*_t)(int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PlayerObject::CapsChange)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (PlayerObject::*_t)(QVariantMap );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PlayerObject::TrackChange)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (PlayerObject::*_t)(PlayerStatus );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PlayerObject::StatusChange)) {
                *result = 2;
                return;
            }
        }
    }
}

const QMetaObject PlayerObject::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_PlayerObject.data,
      qt_meta_data_PlayerObject,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

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

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

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

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