#include #include #include #include #include #include #include #include #include #include #include "gen_qwebengineurlrequestjob.h" #include "_cgo_export.h" void QWebEngineUrlRequestJob_virtbase(QWebEngineUrlRequestJob* src, QObject** outptr_QObject) { *outptr_QObject = static_cast(src); } QMetaObject* QWebEngineUrlRequestJob_MetaObject(const QWebEngineUrlRequestJob* self) { return (QMetaObject*) self->metaObject(); } void* QWebEngineUrlRequestJob_Metacast(QWebEngineUrlRequestJob* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QWebEngineUrlRequestJob_Tr(const char* s) { QString _ret = QWebEngineUrlRequestJob::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 QWebEngineUrlRequestJob_TrUtf8(const char* s) { QString _ret = QWebEngineUrlRequestJob::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; } QUrl* QWebEngineUrlRequestJob_RequestUrl(const QWebEngineUrlRequestJob* self) { return new QUrl(self->requestUrl()); } struct miqt_string QWebEngineUrlRequestJob_RequestMethod(const QWebEngineUrlRequestJob* self) { QByteArray _qb = self->requestMethod(); struct miqt_string _ms; _ms.len = _qb.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _qb.data(), _ms.len); return _ms; } QUrl* QWebEngineUrlRequestJob_Initiator(const QWebEngineUrlRequestJob* self) { return new QUrl(self->initiator()); } void QWebEngineUrlRequestJob_Reply(QWebEngineUrlRequestJob* self, struct miqt_string contentType, QIODevice* device) { QByteArray contentType_QByteArray(contentType.data, contentType.len); self->reply(contentType_QByteArray, device); } void QWebEngineUrlRequestJob_Fail(QWebEngineUrlRequestJob* self, int error) { self->fail(static_cast(error)); } void QWebEngineUrlRequestJob_Redirect(QWebEngineUrlRequestJob* self, QUrl* url) { self->redirect(*url); } struct miqt_string QWebEngineUrlRequestJob_Tr2(const char* s, const char* c) { QString _ret = QWebEngineUrlRequestJob::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 QWebEngineUrlRequestJob_Tr3(const char* s, const char* c, int n) { QString _ret = QWebEngineUrlRequestJob::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 QWebEngineUrlRequestJob_TrUtf82(const char* s, const char* c) { QString _ret = QWebEngineUrlRequestJob::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 QWebEngineUrlRequestJob_TrUtf83(const char* s, const char* c, int n) { QString _ret = QWebEngineUrlRequestJob::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 QWebEngineUrlRequestJob_Delete(QWebEngineUrlRequestJob* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }