#include #include #include #include #include #include #include #include #include #include "gen_qmediastreamscontrol.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" void QMediaStreamsControl_virtbase(QMediaStreamsControl* src, QMediaControl** outptr_QMediaControl) { *outptr_QMediaControl = static_cast(src); } QMetaObject* QMediaStreamsControl_MetaObject(const QMediaStreamsControl* self) { return (QMetaObject*) self->metaObject(); } void* QMediaStreamsControl_Metacast(QMediaStreamsControl* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QMediaStreamsControl_Tr(const char* s) { QString _ret = QMediaStreamsControl::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QMediaStreamsControl_TrUtf8(const char* s) { QString _ret = QMediaStreamsControl::trUtf8(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } int QMediaStreamsControl_StreamCount(QMediaStreamsControl* self) { return self->streamCount(); } int QMediaStreamsControl_StreamType(QMediaStreamsControl* self, int streamNumber) { QMediaStreamsControl::StreamType _ret = self->streamType(static_cast(streamNumber)); return static_cast(_ret); } QVariant* QMediaStreamsControl_MetaData(QMediaStreamsControl* self, int streamNumber, struct miqt_string key) { QString key_QString = QString::fromUtf8(key.data, key.len); return new QVariant(self->metaData(static_cast(streamNumber), key_QString)); } bool QMediaStreamsControl_IsActive(QMediaStreamsControl* self, int streamNumber) { return self->isActive(static_cast(streamNumber)); } void QMediaStreamsControl_SetActive(QMediaStreamsControl* self, int streamNumber, bool state) { self->setActive(static_cast(streamNumber), state); } void QMediaStreamsControl_StreamsChanged(QMediaStreamsControl* self) { self->streamsChanged(); } void QMediaStreamsControl_connect_StreamsChanged(QMediaStreamsControl* self, intptr_t slot) { QMediaStreamsControl::connect(self, static_cast(&QMediaStreamsControl::streamsChanged), self, [=]() { miqt_exec_callback_QMediaStreamsControl_StreamsChanged(slot); }); } void QMediaStreamsControl_ActiveStreamsChanged(QMediaStreamsControl* self) { self->activeStreamsChanged(); } void QMediaStreamsControl_connect_ActiveStreamsChanged(QMediaStreamsControl* self, intptr_t slot) { QMediaStreamsControl::connect(self, static_cast(&QMediaStreamsControl::activeStreamsChanged), self, [=]() { miqt_exec_callback_QMediaStreamsControl_ActiveStreamsChanged(slot); }); } struct miqt_string QMediaStreamsControl_Tr2(const char* s, const char* c) { QString _ret = QMediaStreamsControl::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QMediaStreamsControl_Tr3(const char* s, const char* c, int n) { QString _ret = QMediaStreamsControl::tr(s, c, static_cast(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QMediaStreamsControl_TrUtf82(const char* s, const char* c) { QString _ret = QMediaStreamsControl::trUtf8(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QMediaStreamsControl_TrUtf83(const char* s, const char* c, int n) { QString _ret = QMediaStreamsControl::trUtf8(s, c, static_cast(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QMediaStreamsControl_Delete(QMediaStreamsControl* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }