miqt/qt6/webengine/gen_qwebenginequotarequest.cpp
Jacek Sieka a0c6344ecd Avoid dependency on exported go header
The expected type of the callback is already known from the AST - this
change reduces dependency on cgo specifics and makes the generated C ABI
entirely cgo-independent - in particular, there is no need to include
`_cgo_export.h` any more.
2025-01-07 12:55:40 +01:00

55 lines
1.3 KiB
C++

#include <QUrl>
#include <QWebEngineQuotaRequest>
#include <qwebenginequotarequest.h>
#include "gen_qwebenginequotarequest.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
QWebEngineQuotaRequest* QWebEngineQuotaRequest_new() {
return new QWebEngineQuotaRequest();
}
QWebEngineQuotaRequest* QWebEngineQuotaRequest_new2(QWebEngineQuotaRequest* param1) {
return new QWebEngineQuotaRequest(*param1);
}
void QWebEngineQuotaRequest_Accept(QWebEngineQuotaRequest* self) {
self->accept();
}
void QWebEngineQuotaRequest_Reject(QWebEngineQuotaRequest* self) {
self->reject();
}
QUrl* QWebEngineQuotaRequest_Origin(const QWebEngineQuotaRequest* self) {
return new QUrl(self->origin());
}
long long QWebEngineQuotaRequest_RequestedSize(const QWebEngineQuotaRequest* self) {
qint64 _ret = self->requestedSize();
return static_cast<long long>(_ret);
}
bool QWebEngineQuotaRequest_OperatorEqual(const QWebEngineQuotaRequest* self, QWebEngineQuotaRequest* that) {
return (*self == *that);
}
bool QWebEngineQuotaRequest_OperatorNotEqual(const QWebEngineQuotaRequest* self, QWebEngineQuotaRequest* that) {
return (*self != *that);
}
void QWebEngineQuotaRequest_Delete(QWebEngineQuotaRequest* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QWebEngineQuotaRequest*>( self );
} else {
delete self;
}
}