miqt/qt6/multimedia/gen_qaudiodecoder.cpp

553 lines
17 KiB
C++
Raw Normal View History

2024-11-04 23:15:32 +13:00
#include <QAudioBuffer>
#include <QAudioDecoder>
#include <QAudioFormat>
2024-11-19 19:29:06 +13:00
#include <QChildEvent>
#include <QEvent>
2024-11-04 23:15:32 +13:00
#include <QIODevice>
2024-11-19 19:29:06 +13:00
#include <QMetaMethod>
2024-11-04 23:15:32 +13:00
#include <QMetaObject>
#include <QObject>
#include <QString>
#include <QByteArray>
#include <cstring>
2024-11-19 19:29:06 +13:00
#include <QTimerEvent>
2024-11-04 23:15:32 +13:00
#include <QUrl>
#include <qaudiodecoder.h>
#include "gen_qaudiodecoder.h"
#ifdef __cplusplus
extern "C" {
#endif
2025-02-01 13:45:16 +13:00
void miqt_exec_callback_QAudioDecoder_bufferAvailableChanged(intptr_t, bool);
void miqt_exec_callback_QAudioDecoder_bufferReady(intptr_t);
void miqt_exec_callback_QAudioDecoder_finished(intptr_t);
void miqt_exec_callback_QAudioDecoder_isDecodingChanged(intptr_t, bool);
void miqt_exec_callback_QAudioDecoder_formatChanged(intptr_t, QAudioFormat*);
void miqt_exec_callback_QAudioDecoder_errorWithError(intptr_t, int);
void miqt_exec_callback_QAudioDecoder_sourceChanged(intptr_t);
void miqt_exec_callback_QAudioDecoder_positionChanged(intptr_t, long long);
void miqt_exec_callback_QAudioDecoder_durationChanged(intptr_t, long long);
bool miqt_exec_callback_QAudioDecoder_event(QAudioDecoder*, intptr_t, QEvent*);
bool miqt_exec_callback_QAudioDecoder_eventFilter(QAudioDecoder*, intptr_t, QObject*, QEvent*);
void miqt_exec_callback_QAudioDecoder_timerEvent(QAudioDecoder*, intptr_t, QTimerEvent*);
void miqt_exec_callback_QAudioDecoder_childEvent(QAudioDecoder*, intptr_t, QChildEvent*);
void miqt_exec_callback_QAudioDecoder_customEvent(QAudioDecoder*, intptr_t, QEvent*);
void miqt_exec_callback_QAudioDecoder_connectNotify(QAudioDecoder*, intptr_t, QMetaMethod*);
void miqt_exec_callback_QAudioDecoder_disconnectNotify(QAudioDecoder*, intptr_t, QMetaMethod*);
#ifdef __cplusplus
} /* extern C */
#endif
2024-11-04 23:15:32 +13:00
class MiqtVirtualQAudioDecoder final : public QAudioDecoder {
2024-11-19 19:29:06 +13:00
public:
MiqtVirtualQAudioDecoder(): QAudioDecoder() {};
MiqtVirtualQAudioDecoder(QObject* parent): QAudioDecoder(parent) {};
virtual ~MiqtVirtualQAudioDecoder() override = default;
2024-11-19 19:29:06 +13:00
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__event = 0;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual bool event(QEvent* event) override {
2025-02-01 13:45:16 +13:00
if (handle__event == 0) {
2024-11-19 19:29:06 +13:00
return QAudioDecoder::event(event);
}
QEvent* sigval1 = event;
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QAudioDecoder_event(this, handle__event, sigval1);
2024-11-19 19:29:06 +13:00
return callback_return_value;
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
bool virtualbase_event(QEvent* event) {
2024-11-19 19:29:06 +13:00
return QAudioDecoder::event(event);
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__eventFilter = 0;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual bool eventFilter(QObject* watched, QEvent* event) override {
2025-02-01 13:45:16 +13:00
if (handle__eventFilter == 0) {
2024-11-19 19:29:06 +13:00
return QAudioDecoder::eventFilter(watched, event);
}
QObject* sigval1 = watched;
QEvent* sigval2 = event;
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QAudioDecoder_eventFilter(this, handle__eventFilter, sigval1, sigval2);
2024-11-19 19:29:06 +13:00
return callback_return_value;
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
bool virtualbase_eventFilter(QObject* watched, QEvent* event) {
2024-11-19 19:29:06 +13:00
return QAudioDecoder::eventFilter(watched, event);
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__timerEvent = 0;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void timerEvent(QTimerEvent* event) override {
2025-02-01 13:45:16 +13:00
if (handle__timerEvent == 0) {
2024-11-19 19:29:06 +13:00
QAudioDecoder::timerEvent(event);
return;
}
QTimerEvent* sigval1 = event;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioDecoder_timerEvent(this, handle__timerEvent, sigval1);
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_timerEvent(QTimerEvent* event) {
2024-11-19 19:29:06 +13:00
QAudioDecoder::timerEvent(event);
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__childEvent = 0;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void childEvent(QChildEvent* event) override {
2025-02-01 13:45:16 +13:00
if (handle__childEvent == 0) {
2024-11-19 19:29:06 +13:00
QAudioDecoder::childEvent(event);
return;
}
QChildEvent* sigval1 = event;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioDecoder_childEvent(this, handle__childEvent, sigval1);
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_childEvent(QChildEvent* event) {
2024-11-19 19:29:06 +13:00
QAudioDecoder::childEvent(event);
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__customEvent = 0;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void customEvent(QEvent* event) override {
2025-02-01 13:45:16 +13:00
if (handle__customEvent == 0) {
2024-11-19 19:29:06 +13:00
QAudioDecoder::customEvent(event);
return;
}
QEvent* sigval1 = event;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioDecoder_customEvent(this, handle__customEvent, sigval1);
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_customEvent(QEvent* event) {
2024-11-19 19:29:06 +13:00
QAudioDecoder::customEvent(event);
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__connectNotify = 0;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void connectNotify(const QMetaMethod& signal) override {
2025-02-01 13:45:16 +13:00
if (handle__connectNotify == 0) {
2024-11-19 19:29:06 +13:00
QAudioDecoder::connectNotify(signal);
return;
}
const QMetaMethod& signal_ret = signal;
// Cast returned reference into pointer
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioDecoder_connectNotify(this, handle__connectNotify, sigval1);
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_connectNotify(QMetaMethod* signal) {
2024-11-19 19:29:06 +13:00
QAudioDecoder::connectNotify(*signal);
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__disconnectNotify = 0;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void disconnectNotify(const QMetaMethod& signal) override {
2025-02-01 13:45:16 +13:00
if (handle__disconnectNotify == 0) {
2024-11-19 19:29:06 +13:00
QAudioDecoder::disconnectNotify(signal);
return;
}
const QMetaMethod& signal_ret = signal;
// Cast returned reference into pointer
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioDecoder_disconnectNotify(this, handle__disconnectNotify, sigval1);
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_disconnectNotify(QMetaMethod* signal) {
2024-11-19 19:29:06 +13:00
QAudioDecoder::disconnectNotify(*signal);
}
};
2024-12-07 17:15:57 +13:00
QAudioDecoder* QAudioDecoder_new() {
return new MiqtVirtualQAudioDecoder();
2024-11-04 23:15:32 +13:00
}
2024-12-07 17:15:57 +13:00
QAudioDecoder* QAudioDecoder_new2(QObject* parent) {
return new MiqtVirtualQAudioDecoder(parent);
}
void QAudioDecoder_virtbase(QAudioDecoder* src, QObject** outptr_QObject) {
*outptr_QObject = static_cast<QObject*>(src);
2024-11-04 23:15:32 +13:00
}
2025-02-01 13:45:16 +13:00
QMetaObject* QAudioDecoder_metaObject(const QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
return (QMetaObject*) self->metaObject();
}
2025-02-01 13:45:16 +13:00
void* QAudioDecoder_metacast(QAudioDecoder* self, const char* param1) {
2024-11-04 23:15:32 +13:00
return self->qt_metacast(param1);
}
2025-02-01 13:45:16 +13:00
struct miqt_string QAudioDecoder_tr(const char* s) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioDecoder::tr(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
2025-02-01 13:45:16 +13:00
bool QAudioDecoder_isSupported(const QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
return self->isSupported();
}
2025-02-01 13:45:16 +13:00
bool QAudioDecoder_isDecoding(const QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
return self->isDecoding();
}
2025-02-01 13:45:16 +13:00
QUrl* QAudioDecoder_source(const QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
return new QUrl(self->source());
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_setSource(QAudioDecoder* self, QUrl* fileName) {
2024-11-04 23:15:32 +13:00
self->setSource(*fileName);
}
2025-02-01 13:45:16 +13:00
QIODevice* QAudioDecoder_sourceDevice(const QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
return self->sourceDevice();
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_setSourceDevice(QAudioDecoder* self, QIODevice* device) {
2024-11-04 23:15:32 +13:00
self->setSourceDevice(device);
}
2025-02-01 13:45:16 +13:00
QAudioFormat* QAudioDecoder_audioFormat(const QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
return new QAudioFormat(self->audioFormat());
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_setAudioFormat(QAudioDecoder* self, QAudioFormat* format) {
2024-11-04 23:15:32 +13:00
self->setAudioFormat(*format);
}
2025-02-01 13:45:16 +13:00
int QAudioDecoder_error(const QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
QAudioDecoder::Error _ret = self->error();
return static_cast<int>(_ret);
}
2025-02-01 13:45:16 +13:00
struct miqt_string QAudioDecoder_errorString(const QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
QString _ret = self->errorString();
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
2025-02-01 13:45:16 +13:00
QAudioBuffer* QAudioDecoder_read(const QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
return new QAudioBuffer(self->read());
}
2025-02-01 13:45:16 +13:00
bool QAudioDecoder_bufferAvailable(const QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
return self->bufferAvailable();
}
2025-02-01 13:45:16 +13:00
long long QAudioDecoder_position(const QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
qint64 _ret = self->position();
return static_cast<long long>(_ret);
}
2025-02-01 13:45:16 +13:00
long long QAudioDecoder_duration(const QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
qint64 _ret = self->duration();
return static_cast<long long>(_ret);
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_start(QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
self->start();
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_stop(QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
self->stop();
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_bufferAvailableChanged(QAudioDecoder* self, bool param1) {
2024-11-04 23:15:32 +13:00
self->bufferAvailableChanged(param1);
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_connect_bufferAvailableChanged(QAudioDecoder* self, intptr_t slot) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQAudioDecoder::connect(self, static_cast<void (QAudioDecoder::*)(bool)>(&QAudioDecoder::bufferAvailableChanged), self, [=](bool param1) {
2024-11-04 23:15:32 +13:00
bool sigval1 = param1;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioDecoder_bufferAvailableChanged(slot, sigval1);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_bufferReady(QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
self->bufferReady();
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_connect_bufferReady(QAudioDecoder* self, intptr_t slot) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQAudioDecoder::connect(self, static_cast<void (QAudioDecoder::*)()>(&QAudioDecoder::bufferReady), self, [=]() {
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioDecoder_bufferReady(slot);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_finished(QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
self->finished();
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_connect_finished(QAudioDecoder* self, intptr_t slot) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQAudioDecoder::connect(self, static_cast<void (QAudioDecoder::*)()>(&QAudioDecoder::finished), self, [=]() {
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioDecoder_finished(slot);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_isDecodingChanged(QAudioDecoder* self, bool param1) {
2024-11-04 23:15:32 +13:00
self->isDecodingChanged(param1);
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_connect_isDecodingChanged(QAudioDecoder* self, intptr_t slot) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQAudioDecoder::connect(self, static_cast<void (QAudioDecoder::*)(bool)>(&QAudioDecoder::isDecodingChanged), self, [=](bool param1) {
2024-11-04 23:15:32 +13:00
bool sigval1 = param1;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioDecoder_isDecodingChanged(slot, sigval1);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_formatChanged(QAudioDecoder* self, QAudioFormat* format) {
2024-11-04 23:15:32 +13:00
self->formatChanged(*format);
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_connect_formatChanged(QAudioDecoder* self, intptr_t slot) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQAudioDecoder::connect(self, static_cast<void (QAudioDecoder::*)(const QAudioFormat&)>(&QAudioDecoder::formatChanged), self, [=](const QAudioFormat& format) {
2024-11-04 23:15:32 +13:00
const QAudioFormat& format_ret = format;
// Cast returned reference into pointer
QAudioFormat* sigval1 = const_cast<QAudioFormat*>(&format_ret);
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioDecoder_formatChanged(slot, sigval1);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_errorWithError(QAudioDecoder* self, int error) {
2024-11-04 23:15:32 +13:00
self->error(static_cast<QAudioDecoder::Error>(error));
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_connect_errorWithError(QAudioDecoder* self, intptr_t slot) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQAudioDecoder::connect(self, static_cast<void (QAudioDecoder::*)(QAudioDecoder::Error)>(&QAudioDecoder::error), self, [=](QAudioDecoder::Error error) {
2024-11-04 23:15:32 +13:00
QAudioDecoder::Error error_ret = error;
int sigval1 = static_cast<int>(error_ret);
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioDecoder_errorWithError(slot, sigval1);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_sourceChanged(QAudioDecoder* self) {
2024-11-04 23:15:32 +13:00
self->sourceChanged();
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_connect_sourceChanged(QAudioDecoder* self, intptr_t slot) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQAudioDecoder::connect(self, static_cast<void (QAudioDecoder::*)()>(&QAudioDecoder::sourceChanged), self, [=]() {
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioDecoder_sourceChanged(slot);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_positionChanged(QAudioDecoder* self, long long position) {
2024-11-04 23:15:32 +13:00
self->positionChanged(static_cast<qint64>(position));
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_connect_positionChanged(QAudioDecoder* self, intptr_t slot) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQAudioDecoder::connect(self, static_cast<void (QAudioDecoder::*)(qint64)>(&QAudioDecoder::positionChanged), self, [=](qint64 position) {
2024-11-04 23:15:32 +13:00
qint64 position_ret = position;
long long sigval1 = static_cast<long long>(position_ret);
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioDecoder_positionChanged(slot, sigval1);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_durationChanged(QAudioDecoder* self, long long duration) {
2024-11-04 23:15:32 +13:00
self->durationChanged(static_cast<qint64>(duration));
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_connect_durationChanged(QAudioDecoder* self, intptr_t slot) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQAudioDecoder::connect(self, static_cast<void (QAudioDecoder::*)(qint64)>(&QAudioDecoder::durationChanged), self, [=](qint64 duration) {
2024-11-04 23:15:32 +13:00
qint64 duration_ret = duration;
long long sigval1 = static_cast<long long>(duration_ret);
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QAudioDecoder_durationChanged(slot, sigval1);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
struct miqt_string QAudioDecoder_tr2(const char* s, const char* c) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioDecoder::tr(s, c);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QAudioDecoder_tr3(const char* s, const char* c, int n) {
2024-11-04 23:15:32 +13:00
QString _ret = QAudioDecoder::tr(s, c, static_cast<int>(n));
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
2025-02-01 13:45:16 +13:00
bool QAudioDecoder_override_virtual_event(void* self, intptr_t slot) {
MiqtVirtualQAudioDecoder* self_cast = dynamic_cast<MiqtVirtualQAudioDecoder*>( (QAudioDecoder*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__event = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioDecoder_virtualbase_event(void* self, QEvent* event) {
return ( (MiqtVirtualQAudioDecoder*)(self) )->virtualbase_event(event);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioDecoder_override_virtual_eventFilter(void* self, intptr_t slot) {
MiqtVirtualQAudioDecoder* self_cast = dynamic_cast<MiqtVirtualQAudioDecoder*>( (QAudioDecoder*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__eventFilter = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioDecoder_virtualbase_eventFilter(void* self, QObject* watched, QEvent* event) {
return ( (MiqtVirtualQAudioDecoder*)(self) )->virtualbase_eventFilter(watched, event);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioDecoder_override_virtual_timerEvent(void* self, intptr_t slot) {
MiqtVirtualQAudioDecoder* self_cast = dynamic_cast<MiqtVirtualQAudioDecoder*>( (QAudioDecoder*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__timerEvent = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_virtualbase_timerEvent(void* self, QTimerEvent* event) {
( (MiqtVirtualQAudioDecoder*)(self) )->virtualbase_timerEvent(event);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioDecoder_override_virtual_childEvent(void* self, intptr_t slot) {
MiqtVirtualQAudioDecoder* self_cast = dynamic_cast<MiqtVirtualQAudioDecoder*>( (QAudioDecoder*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__childEvent = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_virtualbase_childEvent(void* self, QChildEvent* event) {
( (MiqtVirtualQAudioDecoder*)(self) )->virtualbase_childEvent(event);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioDecoder_override_virtual_customEvent(void* self, intptr_t slot) {
MiqtVirtualQAudioDecoder* self_cast = dynamic_cast<MiqtVirtualQAudioDecoder*>( (QAudioDecoder*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__customEvent = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_virtualbase_customEvent(void* self, QEvent* event) {
( (MiqtVirtualQAudioDecoder*)(self) )->virtualbase_customEvent(event);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioDecoder_override_virtual_connectNotify(void* self, intptr_t slot) {
MiqtVirtualQAudioDecoder* self_cast = dynamic_cast<MiqtVirtualQAudioDecoder*>( (QAudioDecoder*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__connectNotify = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_virtualbase_connectNotify(void* self, QMetaMethod* signal) {
( (MiqtVirtualQAudioDecoder*)(self) )->virtualbase_connectNotify(signal);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QAudioDecoder_override_virtual_disconnectNotify(void* self, intptr_t slot) {
MiqtVirtualQAudioDecoder* self_cast = dynamic_cast<MiqtVirtualQAudioDecoder*>( (QAudioDecoder*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__disconnectNotify = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_virtualbase_disconnectNotify(void* self, QMetaMethod* signal) {
( (MiqtVirtualQAudioDecoder*)(self) )->virtualbase_disconnectNotify(signal);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QAudioDecoder_delete(QAudioDecoder* self) {
delete self;
2024-11-04 23:15:32 +13:00
}