/****************************************************************************
** Meta object code from reading C++ file 'mediaplayer.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/mediaplayer.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mediaplayer.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__MediaPlayer_t {
    QByteArrayData data[20];
    char stringdata0[201];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_kt__MediaPlayer_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_kt__MediaPlayer_t qt_meta_stringdata_kt__MediaPlayer = {
    {
QT_MOC_LITERAL(0, 0, 15), // "kt::MediaPlayer"
QT_MOC_LITERAL(1, 16, 13), // "enableActions"
QT_MOC_LITERAL(2, 30, 0), // ""
QT_MOC_LITERAL(3, 31, 5), // "flags"
QT_MOC_LITERAL(4, 37, 9), // "openVideo"
QT_MOC_LITERAL(5, 47, 10), // "closeVideo"
QT_MOC_LITERAL(6, 58, 7), // "stopped"
QT_MOC_LITERAL(7, 66, 13), // "aboutToFinish"
QT_MOC_LITERAL(8, 80, 7), // "playing"
QT_MOC_LITERAL(9, 88, 12), // "MediaFileRef"
QT_MOC_LITERAL(10, 101, 4), // "file"
QT_MOC_LITERAL(11, 106, 7), // "loading"
QT_MOC_LITERAL(12, 114, 14), // "onStateChanged"
QT_MOC_LITERAL(13, 129, 13), // "Phonon::State"
QT_MOC_LITERAL(14, 143, 3), // "cur"
QT_MOC_LITERAL(15, 147, 3), // "old"
QT_MOC_LITERAL(16, 151, 15), // "hasVideoChanged"
QT_MOC_LITERAL(17, 167, 8), // "hasVideo"
QT_MOC_LITERAL(18, 176, 18), // "streamStateChanged"
QT_MOC_LITERAL(19, 195, 5) // "state"

    },
    "kt::MediaPlayer\0enableActions\0\0flags\0"
    "openVideo\0closeVideo\0stopped\0aboutToFinish\0"
    "playing\0MediaFileRef\0file\0loading\0"
    "onStateChanged\0Phonon::State\0cur\0old\0"
    "hasVideoChanged\0hasVideo\0streamStateChanged\0"
    "state"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_kt__MediaPlayer[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   64,    2, 0x06 /* Public */,
       4,    0,   67,    2, 0x06 /* Public */,
       5,    0,   68,    2, 0x06 /* Public */,
       6,    0,   69,    2, 0x06 /* Public */,
       7,    0,   70,    2, 0x06 /* Public */,
       8,    1,   71,    2, 0x06 /* Public */,
      11,    0,   74,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      12,    2,   75,    2, 0x08 /* Private */,
      16,    1,   80,    2, 0x08 /* Private */,
      18,    1,   83,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::UInt,    3,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 9,   10,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 13, 0x80000000 | 13,   14,   15,
    QMetaType::Void, QMetaType::Bool,   17,
    QMetaType::Void, QMetaType::Int,   19,

       0        // eod
};

void kt::MediaPlayer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        MediaPlayer *_t = static_cast<MediaPlayer *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->enableActions((*reinterpret_cast< uint(*)>(_a[1]))); break;
        case 1: _t->openVideo(); break;
        case 2: _t->closeVideo(); break;
        case 3: _t->stopped(); break;
        case 4: _t->aboutToFinish(); break;
        case 5: _t->playing((*reinterpret_cast< const MediaFileRef(*)>(_a[1]))); break;
        case 6: _t->loading(); break;
        case 7: _t->onStateChanged((*reinterpret_cast< Phonon::State(*)>(_a[1])),(*reinterpret_cast< Phonon::State(*)>(_a[2]))); break;
        case 8: _t->hasVideoChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 9: _t->streamStateChanged((*reinterpret_cast< int(*)>(_a[1]))); 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< Phonon::State >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (MediaPlayer::*_t)(unsigned int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MediaPlayer::enableActions)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (MediaPlayer::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MediaPlayer::openVideo)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (MediaPlayer::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MediaPlayer::closeVideo)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (MediaPlayer::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MediaPlayer::stopped)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (MediaPlayer::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MediaPlayer::aboutToFinish)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (MediaPlayer::*_t)(const MediaFileRef & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MediaPlayer::playing)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (MediaPlayer::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MediaPlayer::loading)) {
                *result = 6;
                return;
            }
        }
    }
}

const QMetaObject kt::MediaPlayer::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_kt__MediaPlayer.data,
      qt_meta_data_kt__MediaPlayer,  qt_static_metacall, nullptr, nullptr}
};


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

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

int kt::MediaPlayer::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 < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    return _id;
}

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

// SIGNAL 1
void kt::MediaPlayer::openVideo()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void kt::MediaPlayer::closeVideo()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void kt::MediaPlayer::stopped()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void kt::MediaPlayer::aboutToFinish()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

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

// SIGNAL 6
void kt::MediaPlayer::loading()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
