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

#include "../../../../subtitlecomposer/src/streamprocessor/streamprocessor.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'streamprocessor.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN16SubtitleComposer15StreamProcessorE_t {};
} // unnamed namespace

template <> constexpr inline auto SubtitleComposer::StreamProcessor::qt_create_metaobjectdata<qt_meta_tag_ZN16SubtitleComposer15StreamProcessorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SubtitleComposer::StreamProcessor",
        "audioDataAvailable",
        "",
        "const void*",
        "buffer",
        "size",
        "const WaveFormat*",
        "waveFormat",
        "msecStart",
        "msecDuration",
        "textDataAvailable",
        "text",
        "imageDataAvailable",
        "QImage",
        "image",
        "streamProgress",
        "msecPosition",
        "msecLength",
        "streamError",
        "code",
        "message",
        "debug",
        "streamFinished",
        "close"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'audioDataAvailable'
        QtMocHelpers::SignalData<void(const void *, const qint32, const WaveFormat *, const qint64, const qint64)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { QMetaType::Int, 5 }, { 0x80000000 | 6, 7 }, { QMetaType::LongLong, 8 },
            { QMetaType::LongLong, 9 },
        }}),
        // Signal 'textDataAvailable'
        QtMocHelpers::SignalData<void(const QString &, const quint64, const quint64)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 11 }, { QMetaType::ULongLong, 8 }, { QMetaType::ULongLong, 9 },
        }}),
        // Signal 'imageDataAvailable'
        QtMocHelpers::SignalData<void(const QImage &, const quint64, const quint64)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 14 }, { QMetaType::ULongLong, 8 }, { QMetaType::ULongLong, 9 },
        }}),
        // Signal 'streamProgress'
        QtMocHelpers::SignalData<void(quint64, quint64)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::ULongLong, 16 }, { QMetaType::ULongLong, 17 },
        }}),
        // Signal 'streamError'
        QtMocHelpers::SignalData<void(int, const QString &, const QString &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 19 }, { QMetaType::QString, 20 }, { QMetaType::QString, 21 },
        }}),
        // Signal 'streamFinished'
        QtMocHelpers::SignalData<void()>(22, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'close'
        QtMocHelpers::MethodData<void()>(23, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<StreamProcessor, qt_meta_tag_ZN16SubtitleComposer15StreamProcessorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject SubtitleComposer::StreamProcessor::staticMetaObject = { {
    QMetaObject::SuperData::link<QThread::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16SubtitleComposer15StreamProcessorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16SubtitleComposer15StreamProcessorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16SubtitleComposer15StreamProcessorE_t>.metaTypes,
    nullptr
} };

void SubtitleComposer::StreamProcessor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<StreamProcessor *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->audioDataAvailable((*reinterpret_cast<std::add_pointer_t<const void*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qint32>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<const WaveFormat*>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<qint64>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<qint64>>(_a[5]))); break;
        case 1: _t->textDataAvailable((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint64>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<quint64>>(_a[3]))); break;
        case 2: _t->imageDataAvailable((*reinterpret_cast<std::add_pointer_t<QImage>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint64>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<quint64>>(_a[3]))); break;
        case 3: _t->streamProgress((*reinterpret_cast<std::add_pointer_t<quint64>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint64>>(_a[2]))); break;
        case 4: _t->streamError((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 5: _t->streamFinished(); break;
        case 6: _t->close(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (StreamProcessor::*)(const void * , const qint32 , const WaveFormat * , const qint64 , const qint64 )>(_a, &StreamProcessor::audioDataAvailable, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (StreamProcessor::*)(const QString & , const quint64 , const quint64 )>(_a, &StreamProcessor::textDataAvailable, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (StreamProcessor::*)(const QImage & , const quint64 , const quint64 )>(_a, &StreamProcessor::imageDataAvailable, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (StreamProcessor::*)(quint64 , quint64 )>(_a, &StreamProcessor::streamProgress, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (StreamProcessor::*)(int , const QString & , const QString & )>(_a, &StreamProcessor::streamError, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (StreamProcessor::*)()>(_a, &StreamProcessor::streamFinished, 5))
            return;
    }
}

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

void *SubtitleComposer::StreamProcessor::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16SubtitleComposer15StreamProcessorE_t>.strings))
        return static_cast<void*>(this);
    return QThread::qt_metacast(_clname);
}

int SubtitleComposer::StreamProcessor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QThread::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 7;
    }
    return _id;
}

// SIGNAL 0
void SubtitleComposer::StreamProcessor::audioDataAvailable(const void * _t1, const qint32 _t2, const WaveFormat * _t3, const qint64 _t4, const qint64 _t5)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2, _t3, _t4, _t5);
}

// SIGNAL 1
void SubtitleComposer::StreamProcessor::textDataAvailable(const QString & _t1, const quint64 _t2, const quint64 _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2, _t3);
}

// SIGNAL 2
void SubtitleComposer::StreamProcessor::imageDataAvailable(const QImage & _t1, const quint64 _t2, const quint64 _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2, _t3);
}

// SIGNAL 3
void SubtitleComposer::StreamProcessor::streamProgress(quint64 _t1, quint64 _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}

// SIGNAL 4
void SubtitleComposer::StreamProcessor::streamError(int _t1, const QString & _t2, const QString & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2, _t3);
}

// SIGNAL 5
void SubtitleComposer::StreamProcessor::streamFinished()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
