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

#include <memory>
#include "../../../../DeepLinkDeskTopClientShell/server/microphone.h"
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'microphone.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 68
#error "This file was generated using the moc from 6.4.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_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
namespace {
struct qt_meta_stringdata_Microphone_t {
    uint offsetsAndSizes[56];
    char stringdata0[11];
    char stringdata1[14];
    char stringdata2[1];
    char stringdata3[28];
    char stringdata4[6];
    char stringdata5[19];
    char stringdata6[20];
    char stringdata7[14];
    char stringdata8[5];
    char stringdata9[11];
    char stringdata10[11];
    char stringdata11[5];
    char stringdata12[12];
    char stringdata13[15];
    char stringdata14[14];
    char stringdata15[13];
    char stringdata16[14];
    char stringdata17[16];
    char stringdata18[7];
    char stringdata19[19];
    char stringdata20[20];
    char stringdata21[18];
    char stringdata22[15];
    char stringdata23[18];
    char stringdata24[16];
    char stringdata25[17];
    char stringdata26[16];
    char stringdata27[13];
};
#define QT_MOC_LITERAL(ofs, len) \
    uint(sizeof(qt_meta_stringdata_Microphone_t::offsetsAndSizes) + ofs), len 
Q_CONSTINIT static const qt_meta_stringdata_Microphone_t qt_meta_stringdata_Microphone = {
    {
        QT_MOC_LITERAL(0, 10),  // "Microphone"
        QT_MOC_LITERAL(11, 13),  // "errorOccurred"
        QT_MOC_LITERAL(25, 0),  // ""
        QT_MOC_LITERAL(26, 27),  // "Microphone::MicrophoneError"
        QT_MOC_LITERAL(54, 5),  // "error"
        QT_MOC_LITERAL(60, 18),  // "inputStreamStarted"
        QT_MOC_LITERAL(79, 19),  // "outputStreamStarted"
        QT_MOC_LITERAL(99, 13),  // "frameCaptured"
        QT_MOC_LITERAL(113, 4),  // "data"
        QT_MOC_LITERAL(118, 10),  // "stopThread"
        QT_MOC_LITERAL(129, 10),  // "AudioState"
        QT_MOC_LITERAL(140, 4),  // "None"
        QT_MOC_LITERAL(145, 11),  // "Initialized"
        QT_MOC_LITERAL(157, 14),  // "DeviceSelected"
        QT_MOC_LITERAL(172, 13),  // "StreamCreated"
        QT_MOC_LITERAL(186, 12),  // "StreamOpened"
        QT_MOC_LITERAL(199, 13),  // "StreamStarted"
        QT_MOC_LITERAL(213, 15),  // "MicrophoneError"
        QT_MOC_LITERAL(229, 6),  // "Normal"
        QT_MOC_LITERAL(236, 18),  // "CreateContextError"
        QT_MOC_LITERAL(255, 19),  // "ConnectBackendError"
        QT_MOC_LITERAL(275, 17),  // "SelectDeviceError"
        QT_MOC_LITERAL(293, 14),  // "GetDeviceError"
        QT_MOC_LITERAL(308, 17),  // "CreateStreamError"
        QT_MOC_LITERAL(326, 15),  // "OpenStreamError"
        QT_MOC_LITERAL(342, 16),  // "StartStreamError"
        QT_MOC_LITERAL(359, 15),  // "RingBufferError"
        QT_MOC_LITERAL(375, 12)   // "UnknownError"
    },
    "Microphone",
    "errorOccurred",
    "",
    "Microphone::MicrophoneError",
    "error",
    "inputStreamStarted",
    "outputStreamStarted",
    "frameCaptured",
    "data",
    "stopThread",
    "AudioState",
    "None",
    "Initialized",
    "DeviceSelected",
    "StreamCreated",
    "StreamOpened",
    "StreamStarted",
    "MicrophoneError",
    "Normal",
    "CreateContextError",
    "ConnectBackendError",
    "SelectDeviceError",
    "GetDeviceError",
    "CreateStreamError",
    "OpenStreamError",
    "StartStreamError",
    "RingBufferError",
    "UnknownError"
};
#undef QT_MOC_LITERAL
} // unnamed namespace

Q_CONSTINIT static const uint qt_meta_data_Microphone[] = {

 // content:
      10,       // revision
       0,       // classname
       0,    0, // classinfo
       5,   14, // methods
       0,    0, // properties
       2,   53, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags, initial metatype offsets
       1,    1,   44,    2, 0x06,    1 /* Public */,
       5,    0,   47,    2, 0x06,    3 /* Public */,
       6,    0,   48,    2, 0x06,    4 /* Public */,
       7,    1,   49,    2, 0x06,    5 /* Public */,

 // slots: name, argc, parameters, tag, flags, initial metatype offsets
       9,    0,   52,    2, 0x0a,    7 /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QByteArray,    8,

 // slots: parameters
    QMetaType::Void,

 // enums: name, alias, flags, count, data
      10,   10, 0x0,    6,   63,
      17,   17, 0x0,   10,   75,

 // enum data: key, value
      11, uint(Microphone::None),
      12, uint(Microphone::Initialized),
      13, uint(Microphone::DeviceSelected),
      14, uint(Microphone::StreamCreated),
      15, uint(Microphone::StreamOpened),
      16, uint(Microphone::StreamStarted),
      18, uint(Microphone::Normal),
      19, uint(Microphone::CreateContextError),
      20, uint(Microphone::ConnectBackendError),
      21, uint(Microphone::SelectDeviceError),
      22, uint(Microphone::GetDeviceError),
      23, uint(Microphone::CreateStreamError),
      24, uint(Microphone::OpenStreamError),
      25, uint(Microphone::StartStreamError),
      26, uint(Microphone::RingBufferError),
      27, uint(Microphone::UnknownError),

       0        // eod
};

Q_CONSTINIT const QMetaObject Microphone::staticMetaObject = { {
    QMetaObject::SuperData::link<QThread::staticMetaObject>(),
    qt_meta_stringdata_Microphone.offsetsAndSizes,
    qt_meta_data_Microphone,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_stringdata_Microphone_t,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<Microphone, std::true_type>,
        // method 'errorOccurred'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<Microphone::MicrophoneError, std::false_type>,
        // method 'inputStreamStarted'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'outputStreamStarted'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'frameCaptured'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QByteArray &, std::false_type>,
        // method 'stopThread'
        QtPrivate::TypeAndForceComplete<void, std::false_type>
    >,
    nullptr
} };

void Microphone::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<Microphone *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->errorOccurred((*reinterpret_cast< std::add_pointer_t<Microphone::MicrophoneError>>(_a[1]))); break;
        case 1: _t->inputStreamStarted(); break;
        case 2: _t->outputStreamStarted(); break;
        case 3: _t->frameCaptured((*reinterpret_cast< std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 4: _t->stopThread(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (Microphone::*)(Microphone::MicrophoneError );
            if (_t _q_method = &Microphone::errorOccurred; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (Microphone::*)();
            if (_t _q_method = &Microphone::inputStreamStarted; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (Microphone::*)();
            if (_t _q_method = &Microphone::outputStreamStarted; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (Microphone::*)(const QByteArray & );
            if (_t _q_method = &Microphone::frameCaptured; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
                *result = 3;
                return;
            }
        }
    }
}

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

void *Microphone::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Microphone.stringdata0))
        return static_cast<void*>(this);
    return QThread::qt_metacast(_clname);
}

int Microphone::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 < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 5;
    }
    return _id;
}

// SIGNAL 0
void Microphone::errorOccurred(Microphone::MicrophoneError _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Microphone::inputStreamStarted()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Microphone::outputStreamStarted()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Microphone::frameCaptured(const QByteArray & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
