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

#include "../../../src/ktorrent-5.1.0/plugins/mediaplayer/playlistwidget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'playlistwidget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. 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_kt__PlayListWidget_t {
    QByteArrayData data[22];
    char stringdata0[225];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_kt__PlayListWidget_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_kt__PlayListWidget_t qt_meta_stringdata_kt__PlayListWidget = {
    {
QT_MOC_LITERAL(0, 0, 18), // "kt::PlayListWidget"
QT_MOC_LITERAL(1, 19, 12), // "fileSelected"
QT_MOC_LITERAL(2, 32, 0), // ""
QT_MOC_LITERAL(3, 33, 12), // "MediaFileRef"
QT_MOC_LITERAL(4, 46, 4), // "file"
QT_MOC_LITERAL(5, 51, 13), // "doubleClicked"
QT_MOC_LITERAL(6, 65, 19), // "randomModeActivated"
QT_MOC_LITERAL(7, 85, 6), // "random"
QT_MOC_LITERAL(8, 92, 10), // "enableNext"
QT_MOC_LITERAL(9, 103, 2), // "on"
QT_MOC_LITERAL(10, 106, 4), // "play"
QT_MOC_LITERAL(11, 111, 8), // "addMedia"
QT_MOC_LITERAL(12, 120, 13), // "clearPlayList"
QT_MOC_LITERAL(13, 134, 18), // "onSelectionChanged"
QT_MOC_LITERAL(14, 153, 14), // "QItemSelection"
QT_MOC_LITERAL(15, 168, 1), // "s"
QT_MOC_LITERAL(16, 170, 1), // "d"
QT_MOC_LITERAL(17, 172, 5), // "index"
QT_MOC_LITERAL(18, 178, 15), // "showContextMenu"
QT_MOC_LITERAL(19, 194, 3), // "pos"
QT_MOC_LITERAL(20, 198, 11), // "removeFiles"
QT_MOC_LITERAL(21, 210, 14) // "onItemsDropped"

    },
    "kt::PlayListWidget\0fileSelected\0\0"
    "MediaFileRef\0file\0doubleClicked\0"
    "randomModeActivated\0random\0enableNext\0"
    "on\0play\0addMedia\0clearPlayList\0"
    "onSelectionChanged\0QItemSelection\0s\0"
    "d\0index\0showContextMenu\0pos\0removeFiles\0"
    "onItemsDropped"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_kt__PlayListWidget[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   74,    2, 0x06 /* Public */,
       5,    1,   77,    2, 0x06 /* Public */,
       6,    1,   80,    2, 0x06 /* Public */,
       8,    1,   83,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      10,    0,   86,    2, 0x0a /* Public */,
      11,    0,   87,    2, 0x0a /* Public */,
      12,    0,   88,    2, 0x0a /* Public */,
      13,    2,   89,    2, 0x08 /* Private */,
       5,    1,   94,    2, 0x08 /* Private */,
      18,    1,   97,    2, 0x08 /* Private */,
      20,    0,  100,    2, 0x08 /* Private */,
      21,    0,  101,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, QMetaType::Bool,    7,
    QMetaType::Void, QMetaType::Bool,    9,

 // slots: parameters
    QMetaType::QModelIndex,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 14, 0x80000000 | 14,   15,   16,
    QMetaType::Void, QMetaType::QModelIndex,   17,
    QMetaType::Void, QMetaType::QPoint,   19,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void kt::PlayListWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        PlayListWidget *_t = static_cast<PlayListWidget *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->fileSelected((*reinterpret_cast< const MediaFileRef(*)>(_a[1]))); break;
        case 1: _t->doubleClicked((*reinterpret_cast< const MediaFileRef(*)>(_a[1]))); break;
        case 2: _t->randomModeActivated((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: _t->enableNext((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 4: { QModelIndex _r = _t->play();
            if (_a[0]) *reinterpret_cast< QModelIndex*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->addMedia(); break;
        case 6: _t->clearPlayList(); break;
        case 7: _t->onSelectionChanged((*reinterpret_cast< const QItemSelection(*)>(_a[1])),(*reinterpret_cast< const QItemSelection(*)>(_a[2]))); break;
        case 8: _t->doubleClicked((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 9: _t->showContextMenu((*reinterpret_cast< QPoint(*)>(_a[1]))); break;
        case 10: _t->removeFiles(); break;
        case 11: _t->onItemsDropped(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QItemSelection >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (PlayListWidget::*_t)(const MediaFileRef & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PlayListWidget::fileSelected)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (PlayListWidget::*_t)(const MediaFileRef & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PlayListWidget::doubleClicked)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (PlayListWidget::*_t)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PlayListWidget::randomModeActivated)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (PlayListWidget::*_t)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PlayListWidget::enableNext)) {
                *result = 3;
                return;
            }
        }
    }
}

const QMetaObject kt::PlayListWidget::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_kt__PlayListWidget.data,
      qt_meta_data_kt__PlayListWidget,  qt_static_metacall, nullptr, nullptr}
};


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

void *kt::PlayListWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_kt__PlayListWidget.stringdata0))
        return static_cast<void*>(this);
    return QWidget::qt_metacast(_clname);
}

int kt::PlayListWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    return _id;
}

// SIGNAL 0
void kt::PlayListWidget::fileSelected(const MediaFileRef & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void kt::PlayListWidget::doubleClicked(const MediaFileRef & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void kt::PlayListWidget::randomModeActivated(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void kt::PlayListWidget::enableNext(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
