#include <QString>
#include <QByteArray>
#include <cstring>
#include <QUrl>
#include <QWebEngineLoadingInfo>
#include <qwebengineloadinginfo.h>
#include "gen_qwebengineloadinginfo.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
QWebEngineLoadingInfo* QWebEngineLoadingInfo_new(QWebEngineLoadingInfo* other) {
return new (std::nothrow) QWebEngineLoadingInfo(*other);
}
void QWebEngineLoadingInfo_operatorAssign(QWebEngineLoadingInfo* self, QWebEngineLoadingInfo* other) {
self->operator=(*other);
}
QUrl* QWebEngineLoadingInfo_url(const QWebEngineLoadingInfo* self) {
return new QUrl(self->url());
}
bool QWebEngineLoadingInfo_isErrorPage(const QWebEngineLoadingInfo* self) {
return self->isErrorPage();
}
int QWebEngineLoadingInfo_status(const QWebEngineLoadingInfo* self) {
QWebEngineLoadingInfo::LoadStatus _ret = self->status();
return static_cast<int>(_ret);
}
struct miqt_string QWebEngineLoadingInfo_errorString(const QWebEngineLoadingInfo* self) {
QString _ret = self->errorString();
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;
}
int QWebEngineLoadingInfo_errorDomain(const QWebEngineLoadingInfo* self) {
QWebEngineLoadingInfo::ErrorDomain _ret = self->errorDomain();
return static_cast<int>(_ret);
}
int QWebEngineLoadingInfo_errorCode(const QWebEngineLoadingInfo* self) {
return self->errorCode();
}
void QWebEngineLoadingInfo_delete(QWebEngineLoadingInfo* self) {
delete self;
}