mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 09:28:36 +00:00
92 lines
2.9 KiB
C++
92 lines
2.9 KiB
C++
#include <QByteArray>
|
|
#include <QWebEngineUrlScheme>
|
|
#include <qwebengineurlscheme.h>
|
|
#include "gen_qwebengineurlscheme.h"
|
|
#include "_cgo_export.h"
|
|
|
|
void QWebEngineUrlScheme_new(QWebEngineUrlScheme** outptr_QWebEngineUrlScheme) {
|
|
QWebEngineUrlScheme* ret = new QWebEngineUrlScheme();
|
|
*outptr_QWebEngineUrlScheme = ret;
|
|
}
|
|
|
|
void QWebEngineUrlScheme_new2(struct miqt_string name, QWebEngineUrlScheme** outptr_QWebEngineUrlScheme) {
|
|
QByteArray name_QByteArray(name.data, name.len);
|
|
QWebEngineUrlScheme* ret = new QWebEngineUrlScheme(name_QByteArray);
|
|
*outptr_QWebEngineUrlScheme = ret;
|
|
}
|
|
|
|
void QWebEngineUrlScheme_new3(QWebEngineUrlScheme* that, QWebEngineUrlScheme** outptr_QWebEngineUrlScheme) {
|
|
QWebEngineUrlScheme* ret = new QWebEngineUrlScheme(*that);
|
|
*outptr_QWebEngineUrlScheme = ret;
|
|
}
|
|
|
|
void QWebEngineUrlScheme_OperatorAssign(QWebEngineUrlScheme* self, QWebEngineUrlScheme* that) {
|
|
self->operator=(*that);
|
|
}
|
|
|
|
bool QWebEngineUrlScheme_OperatorEqual(const QWebEngineUrlScheme* self, QWebEngineUrlScheme* that) {
|
|
return (*self == *that);
|
|
}
|
|
|
|
bool QWebEngineUrlScheme_OperatorNotEqual(const QWebEngineUrlScheme* self, QWebEngineUrlScheme* that) {
|
|
return (*self != *that);
|
|
}
|
|
|
|
struct miqt_string QWebEngineUrlScheme_Name(const QWebEngineUrlScheme* self) {
|
|
QByteArray _qb = self->name();
|
|
struct miqt_string _ms;
|
|
_ms.len = _qb.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _qb.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QWebEngineUrlScheme_SetName(QWebEngineUrlScheme* self, struct miqt_string newValue) {
|
|
QByteArray newValue_QByteArray(newValue.data, newValue.len);
|
|
self->setName(newValue_QByteArray);
|
|
}
|
|
|
|
int QWebEngineUrlScheme_Syntax(const QWebEngineUrlScheme* self) {
|
|
QWebEngineUrlScheme::Syntax _ret = self->syntax();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QWebEngineUrlScheme_SetSyntax(QWebEngineUrlScheme* self, int newValue) {
|
|
self->setSyntax(static_cast<QWebEngineUrlScheme::Syntax>(newValue));
|
|
}
|
|
|
|
int QWebEngineUrlScheme_DefaultPort(const QWebEngineUrlScheme* self) {
|
|
return self->defaultPort();
|
|
}
|
|
|
|
void QWebEngineUrlScheme_SetDefaultPort(QWebEngineUrlScheme* self, int newValue) {
|
|
self->setDefaultPort(static_cast<int>(newValue));
|
|
}
|
|
|
|
int QWebEngineUrlScheme_Flags(const QWebEngineUrlScheme* self) {
|
|
QWebEngineUrlScheme::Flags _ret = self->flags();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QWebEngineUrlScheme_SetFlags(QWebEngineUrlScheme* self, int newValue) {
|
|
self->setFlags(static_cast<QWebEngineUrlScheme::Flags>(newValue));
|
|
}
|
|
|
|
void QWebEngineUrlScheme_RegisterScheme(QWebEngineUrlScheme* scheme) {
|
|
QWebEngineUrlScheme::registerScheme(*scheme);
|
|
}
|
|
|
|
QWebEngineUrlScheme* QWebEngineUrlScheme_SchemeByName(struct miqt_string name) {
|
|
QByteArray name_QByteArray(name.data, name.len);
|
|
return new QWebEngineUrlScheme(QWebEngineUrlScheme::schemeByName(name_QByteArray));
|
|
}
|
|
|
|
void QWebEngineUrlScheme_Delete(QWebEngineUrlScheme* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QWebEngineUrlScheme*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|