mirror of
https://github.com/mappu/miqt.git
synced 2025-02-01 19:10:21 +00:00
628 lines
21 KiB
C++
628 lines
21 KiB
C++
#include <QByteArray>
|
|
#include <QChildEvent>
|
|
#include <QEvent>
|
|
#include <QList>
|
|
#include <QMetaMethod>
|
|
#include <QMetaObject>
|
|
#include <QObject>
|
|
#include <QString>
|
|
#include <QByteArray>
|
|
#include <cstring>
|
|
#include <QTimerEvent>
|
|
#include <QUrl>
|
|
#include <QWebEngineClientCertificateStore>
|
|
#include <QWebEngineCookieStore>
|
|
#include <QWebEngineDownloadRequest>
|
|
#include <QWebEngineProfile>
|
|
#include <QWebEngineScriptCollection>
|
|
#include <QWebEngineSettings>
|
|
#include <QWebEngineUrlRequestInterceptor>
|
|
#include <QWebEngineUrlSchemeHandler>
|
|
#include <qwebengineprofile.h>
|
|
#include "gen_qwebengineprofile.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void miqt_exec_callback_QWebEngineProfile_downloadRequested(intptr_t, QWebEngineDownloadRequest*);
|
|
bool miqt_exec_callback_QWebEngineProfile_event(QWebEngineProfile*, intptr_t, QEvent*);
|
|
bool miqt_exec_callback_QWebEngineProfile_eventFilter(QWebEngineProfile*, intptr_t, QObject*, QEvent*);
|
|
void miqt_exec_callback_QWebEngineProfile_timerEvent(QWebEngineProfile*, intptr_t, QTimerEvent*);
|
|
void miqt_exec_callback_QWebEngineProfile_childEvent(QWebEngineProfile*, intptr_t, QChildEvent*);
|
|
void miqt_exec_callback_QWebEngineProfile_customEvent(QWebEngineProfile*, intptr_t, QEvent*);
|
|
void miqt_exec_callback_QWebEngineProfile_connectNotify(QWebEngineProfile*, intptr_t, QMetaMethod*);
|
|
void miqt_exec_callback_QWebEngineProfile_disconnectNotify(QWebEngineProfile*, intptr_t, QMetaMethod*);
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
class MiqtVirtualQWebEngineProfile final : public QWebEngineProfile {
|
|
public:
|
|
|
|
MiqtVirtualQWebEngineProfile(): QWebEngineProfile() {};
|
|
MiqtVirtualQWebEngineProfile(const QString& name): QWebEngineProfile(name) {};
|
|
MiqtVirtualQWebEngineProfile(QObject* parent): QWebEngineProfile(parent) {};
|
|
MiqtVirtualQWebEngineProfile(const QString& name, QObject* parent): QWebEngineProfile(name, parent) {};
|
|
|
|
virtual ~MiqtVirtualQWebEngineProfile() override = default;
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__event = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool event(QEvent* event) override {
|
|
if (handle__event == 0) {
|
|
return QWebEngineProfile::event(event);
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QWebEngineProfile_event(this, handle__event, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_event(QEvent* event) {
|
|
|
|
return QWebEngineProfile::event(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__eventFilter = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool eventFilter(QObject* watched, QEvent* event) override {
|
|
if (handle__eventFilter == 0) {
|
|
return QWebEngineProfile::eventFilter(watched, event);
|
|
}
|
|
|
|
QObject* sigval1 = watched;
|
|
QEvent* sigval2 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QWebEngineProfile_eventFilter(this, handle__eventFilter, sigval1, sigval2);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_eventFilter(QObject* watched, QEvent* event) {
|
|
|
|
return QWebEngineProfile::eventFilter(watched, event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__timerEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void timerEvent(QTimerEvent* event) override {
|
|
if (handle__timerEvent == 0) {
|
|
QWebEngineProfile::timerEvent(event);
|
|
return;
|
|
}
|
|
|
|
QTimerEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QWebEngineProfile_timerEvent(this, handle__timerEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_timerEvent(QTimerEvent* event) {
|
|
|
|
QWebEngineProfile::timerEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__childEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void childEvent(QChildEvent* event) override {
|
|
if (handle__childEvent == 0) {
|
|
QWebEngineProfile::childEvent(event);
|
|
return;
|
|
}
|
|
|
|
QChildEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QWebEngineProfile_childEvent(this, handle__childEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_childEvent(QChildEvent* event) {
|
|
|
|
QWebEngineProfile::childEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__customEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void customEvent(QEvent* event) override {
|
|
if (handle__customEvent == 0) {
|
|
QWebEngineProfile::customEvent(event);
|
|
return;
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QWebEngineProfile_customEvent(this, handle__customEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_customEvent(QEvent* event) {
|
|
|
|
QWebEngineProfile::customEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__connectNotify = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void connectNotify(const QMetaMethod& signal) override {
|
|
if (handle__connectNotify == 0) {
|
|
QWebEngineProfile::connectNotify(signal);
|
|
return;
|
|
}
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
// Cast returned reference into pointer
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
miqt_exec_callback_QWebEngineProfile_connectNotify(this, handle__connectNotify, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_connectNotify(QMetaMethod* signal) {
|
|
|
|
QWebEngineProfile::connectNotify(*signal);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__disconnectNotify = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void disconnectNotify(const QMetaMethod& signal) override {
|
|
if (handle__disconnectNotify == 0) {
|
|
QWebEngineProfile::disconnectNotify(signal);
|
|
return;
|
|
}
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
// Cast returned reference into pointer
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
miqt_exec_callback_QWebEngineProfile_disconnectNotify(this, handle__disconnectNotify, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_disconnectNotify(QMetaMethod* signal) {
|
|
|
|
QWebEngineProfile::disconnectNotify(*signal);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
QWebEngineProfile* QWebEngineProfile_new() {
|
|
return new MiqtVirtualQWebEngineProfile();
|
|
}
|
|
|
|
QWebEngineProfile* QWebEngineProfile_new2(struct miqt_string name) {
|
|
QString name_QString = QString::fromUtf8(name.data, name.len);
|
|
return new MiqtVirtualQWebEngineProfile(name_QString);
|
|
}
|
|
|
|
QWebEngineProfile* QWebEngineProfile_new3(QObject* parent) {
|
|
return new MiqtVirtualQWebEngineProfile(parent);
|
|
}
|
|
|
|
QWebEngineProfile* QWebEngineProfile_new4(struct miqt_string name, QObject* parent) {
|
|
QString name_QString = QString::fromUtf8(name.data, name.len);
|
|
return new MiqtVirtualQWebEngineProfile(name_QString, parent);
|
|
}
|
|
|
|
void QWebEngineProfile_virtbase(QWebEngineProfile* src, QObject** outptr_QObject) {
|
|
*outptr_QObject = static_cast<QObject*>(src);
|
|
}
|
|
|
|
QMetaObject* QWebEngineProfile_metaObject(const QWebEngineProfile* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QWebEngineProfile_metacast(QWebEngineProfile* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string QWebEngineProfile_tr(const char* s) {
|
|
QString _ret = QWebEngineProfile::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<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QWebEngineProfile_storageName(const QWebEngineProfile* self) {
|
|
QString _ret = self->storageName();
|
|
// 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<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
bool QWebEngineProfile_isOffTheRecord(const QWebEngineProfile* self) {
|
|
return self->isOffTheRecord();
|
|
}
|
|
|
|
struct miqt_string QWebEngineProfile_persistentStoragePath(const QWebEngineProfile* self) {
|
|
QString _ret = self->persistentStoragePath();
|
|
// 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<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QWebEngineProfile_setPersistentStoragePath(QWebEngineProfile* self, struct miqt_string path) {
|
|
QString path_QString = QString::fromUtf8(path.data, path.len);
|
|
self->setPersistentStoragePath(path_QString);
|
|
}
|
|
|
|
struct miqt_string QWebEngineProfile_cachePath(const QWebEngineProfile* self) {
|
|
QString _ret = self->cachePath();
|
|
// 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<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QWebEngineProfile_setCachePath(QWebEngineProfile* self, struct miqt_string path) {
|
|
QString path_QString = QString::fromUtf8(path.data, path.len);
|
|
self->setCachePath(path_QString);
|
|
}
|
|
|
|
struct miqt_string QWebEngineProfile_httpUserAgent(const QWebEngineProfile* self) {
|
|
QString _ret = self->httpUserAgent();
|
|
// 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<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QWebEngineProfile_setHttpUserAgent(QWebEngineProfile* self, struct miqt_string userAgent) {
|
|
QString userAgent_QString = QString::fromUtf8(userAgent.data, userAgent.len);
|
|
self->setHttpUserAgent(userAgent_QString);
|
|
}
|
|
|
|
int QWebEngineProfile_httpCacheType(const QWebEngineProfile* self) {
|
|
QWebEngineProfile::HttpCacheType _ret = self->httpCacheType();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QWebEngineProfile_setHttpCacheType(QWebEngineProfile* self, int httpCacheType) {
|
|
self->setHttpCacheType(static_cast<QWebEngineProfile::HttpCacheType>(httpCacheType));
|
|
}
|
|
|
|
void QWebEngineProfile_setHttpAcceptLanguage(QWebEngineProfile* self, struct miqt_string httpAcceptLanguage) {
|
|
QString httpAcceptLanguage_QString = QString::fromUtf8(httpAcceptLanguage.data, httpAcceptLanguage.len);
|
|
self->setHttpAcceptLanguage(httpAcceptLanguage_QString);
|
|
}
|
|
|
|
struct miqt_string QWebEngineProfile_httpAcceptLanguage(const QWebEngineProfile* self) {
|
|
QString _ret = self->httpAcceptLanguage();
|
|
// 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<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
int QWebEngineProfile_persistentCookiesPolicy(const QWebEngineProfile* self) {
|
|
QWebEngineProfile::PersistentCookiesPolicy _ret = self->persistentCookiesPolicy();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QWebEngineProfile_setPersistentCookiesPolicy(QWebEngineProfile* self, int persistentCookiesPolicy) {
|
|
self->setPersistentCookiesPolicy(static_cast<QWebEngineProfile::PersistentCookiesPolicy>(persistentCookiesPolicy));
|
|
}
|
|
|
|
int QWebEngineProfile_httpCacheMaximumSize(const QWebEngineProfile* self) {
|
|
return self->httpCacheMaximumSize();
|
|
}
|
|
|
|
void QWebEngineProfile_setHttpCacheMaximumSize(QWebEngineProfile* self, int maxSize) {
|
|
self->setHttpCacheMaximumSize(static_cast<int>(maxSize));
|
|
}
|
|
|
|
QWebEngineCookieStore* QWebEngineProfile_cookieStore(QWebEngineProfile* self) {
|
|
return self->cookieStore();
|
|
}
|
|
|
|
void QWebEngineProfile_setUrlRequestInterceptor(QWebEngineProfile* self, QWebEngineUrlRequestInterceptor* interceptor) {
|
|
self->setUrlRequestInterceptor(interceptor);
|
|
}
|
|
|
|
void QWebEngineProfile_clearAllVisitedLinks(QWebEngineProfile* self) {
|
|
self->clearAllVisitedLinks();
|
|
}
|
|
|
|
void QWebEngineProfile_clearVisitedLinks(QWebEngineProfile* self, struct miqt_array /* of QUrl* */ urls) {
|
|
QList<QUrl> urls_QList;
|
|
urls_QList.reserve(urls.len);
|
|
QUrl** urls_arr = static_cast<QUrl**>(urls.data);
|
|
for(size_t i = 0; i < urls.len; ++i) {
|
|
urls_QList.push_back(*(urls_arr[i]));
|
|
}
|
|
self->clearVisitedLinks(urls_QList);
|
|
}
|
|
|
|
bool QWebEngineProfile_visitedLinksContainsUrl(const QWebEngineProfile* self, QUrl* url) {
|
|
return self->visitedLinksContainsUrl(*url);
|
|
}
|
|
|
|
QWebEngineSettings* QWebEngineProfile_settings(const QWebEngineProfile* self) {
|
|
return self->settings();
|
|
}
|
|
|
|
QWebEngineScriptCollection* QWebEngineProfile_scripts(const QWebEngineProfile* self) {
|
|
return self->scripts();
|
|
}
|
|
|
|
QWebEngineUrlSchemeHandler* QWebEngineProfile_urlSchemeHandler(const QWebEngineProfile* self, struct miqt_string param1) {
|
|
QByteArray param1_QByteArray(param1.data, param1.len);
|
|
return (QWebEngineUrlSchemeHandler*) self->urlSchemeHandler(param1_QByteArray);
|
|
}
|
|
|
|
void QWebEngineProfile_installUrlSchemeHandler(QWebEngineProfile* self, struct miqt_string scheme, QWebEngineUrlSchemeHandler* param2) {
|
|
QByteArray scheme_QByteArray(scheme.data, scheme.len);
|
|
self->installUrlSchemeHandler(scheme_QByteArray, param2);
|
|
}
|
|
|
|
void QWebEngineProfile_removeUrlScheme(QWebEngineProfile* self, struct miqt_string scheme) {
|
|
QByteArray scheme_QByteArray(scheme.data, scheme.len);
|
|
self->removeUrlScheme(scheme_QByteArray);
|
|
}
|
|
|
|
void QWebEngineProfile_removeUrlSchemeHandler(QWebEngineProfile* self, QWebEngineUrlSchemeHandler* param1) {
|
|
self->removeUrlSchemeHandler(param1);
|
|
}
|
|
|
|
void QWebEngineProfile_removeAllUrlSchemeHandlers(QWebEngineProfile* self) {
|
|
self->removeAllUrlSchemeHandlers();
|
|
}
|
|
|
|
void QWebEngineProfile_clearHttpCache(QWebEngineProfile* self) {
|
|
self->clearHttpCache();
|
|
}
|
|
|
|
void QWebEngineProfile_setSpellCheckLanguages(QWebEngineProfile* self, struct miqt_array /* of struct miqt_string */ languages) {
|
|
QStringList languages_QList;
|
|
languages_QList.reserve(languages.len);
|
|
struct miqt_string* languages_arr = static_cast<struct miqt_string*>(languages.data);
|
|
for(size_t i = 0; i < languages.len; ++i) {
|
|
QString languages_arr_i_QString = QString::fromUtf8(languages_arr[i].data, languages_arr[i].len);
|
|
languages_QList.push_back(languages_arr_i_QString);
|
|
}
|
|
self->setSpellCheckLanguages(languages_QList);
|
|
}
|
|
|
|
struct miqt_array /* of struct miqt_string */ QWebEngineProfile_spellCheckLanguages(const QWebEngineProfile* self) {
|
|
QStringList _ret = self->spellCheckLanguages();
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
struct miqt_string* _arr = static_cast<struct miqt_string*>(malloc(sizeof(struct miqt_string) * _ret.length()));
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
QString _lv_ret = _ret[i];
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _lv_b = _lv_ret.toUtf8();
|
|
struct miqt_string _lv_ms;
|
|
_lv_ms.len = _lv_b.length();
|
|
_lv_ms.data = static_cast<char*>(malloc(_lv_ms.len));
|
|
memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len);
|
|
_arr[i] = _lv_ms;
|
|
}
|
|
struct miqt_array _out;
|
|
_out.len = _ret.length();
|
|
_out.data = static_cast<void*>(_arr);
|
|
return _out;
|
|
}
|
|
|
|
void QWebEngineProfile_setSpellCheckEnabled(QWebEngineProfile* self, bool enabled) {
|
|
self->setSpellCheckEnabled(enabled);
|
|
}
|
|
|
|
bool QWebEngineProfile_isSpellCheckEnabled(const QWebEngineProfile* self) {
|
|
return self->isSpellCheckEnabled();
|
|
}
|
|
|
|
struct miqt_string QWebEngineProfile_downloadPath(const QWebEngineProfile* self) {
|
|
QString _ret = self->downloadPath();
|
|
// 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<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QWebEngineProfile_setDownloadPath(QWebEngineProfile* self, struct miqt_string path) {
|
|
QString path_QString = QString::fromUtf8(path.data, path.len);
|
|
self->setDownloadPath(path_QString);
|
|
}
|
|
|
|
QWebEngineClientCertificateStore* QWebEngineProfile_clientCertificateStore(QWebEngineProfile* self) {
|
|
return self->clientCertificateStore();
|
|
}
|
|
|
|
QWebEngineProfile* QWebEngineProfile_defaultProfile() {
|
|
return QWebEngineProfile::defaultProfile();
|
|
}
|
|
|
|
void QWebEngineProfile_downloadRequested(QWebEngineProfile* self, QWebEngineDownloadRequest* download) {
|
|
self->downloadRequested(download);
|
|
}
|
|
|
|
void QWebEngineProfile_connect_downloadRequested(QWebEngineProfile* self, intptr_t slot) {
|
|
MiqtVirtualQWebEngineProfile::connect(self, static_cast<void (QWebEngineProfile::*)(QWebEngineDownloadRequest*)>(&QWebEngineProfile::downloadRequested), self, [=](QWebEngineDownloadRequest* download) {
|
|
QWebEngineDownloadRequest* sigval1 = download;
|
|
miqt_exec_callback_QWebEngineProfile_downloadRequested(slot, sigval1);
|
|
});
|
|
}
|
|
|
|
struct miqt_string QWebEngineProfile_tr2(const char* s, const char* c) {
|
|
QString _ret = QWebEngineProfile::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<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QWebEngineProfile_tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QWebEngineProfile::tr(s, c, static_cast<int>(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<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
bool QWebEngineProfile_override_virtual_event(void* self, intptr_t slot) {
|
|
MiqtVirtualQWebEngineProfile* self_cast = dynamic_cast<MiqtVirtualQWebEngineProfile*>( (QWebEngineProfile*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__event = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QWebEngineProfile_virtualbase_event(void* self, QEvent* event) {
|
|
return ( (MiqtVirtualQWebEngineProfile*)(self) )->virtualbase_event(event);
|
|
}
|
|
|
|
bool QWebEngineProfile_override_virtual_eventFilter(void* self, intptr_t slot) {
|
|
MiqtVirtualQWebEngineProfile* self_cast = dynamic_cast<MiqtVirtualQWebEngineProfile*>( (QWebEngineProfile*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__eventFilter = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QWebEngineProfile_virtualbase_eventFilter(void* self, QObject* watched, QEvent* event) {
|
|
return ( (MiqtVirtualQWebEngineProfile*)(self) )->virtualbase_eventFilter(watched, event);
|
|
}
|
|
|
|
bool QWebEngineProfile_override_virtual_timerEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQWebEngineProfile* self_cast = dynamic_cast<MiqtVirtualQWebEngineProfile*>( (QWebEngineProfile*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__timerEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QWebEngineProfile_virtualbase_timerEvent(void* self, QTimerEvent* event) {
|
|
( (MiqtVirtualQWebEngineProfile*)(self) )->virtualbase_timerEvent(event);
|
|
}
|
|
|
|
bool QWebEngineProfile_override_virtual_childEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQWebEngineProfile* self_cast = dynamic_cast<MiqtVirtualQWebEngineProfile*>( (QWebEngineProfile*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__childEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QWebEngineProfile_virtualbase_childEvent(void* self, QChildEvent* event) {
|
|
( (MiqtVirtualQWebEngineProfile*)(self) )->virtualbase_childEvent(event);
|
|
}
|
|
|
|
bool QWebEngineProfile_override_virtual_customEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQWebEngineProfile* self_cast = dynamic_cast<MiqtVirtualQWebEngineProfile*>( (QWebEngineProfile*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__customEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QWebEngineProfile_virtualbase_customEvent(void* self, QEvent* event) {
|
|
( (MiqtVirtualQWebEngineProfile*)(self) )->virtualbase_customEvent(event);
|
|
}
|
|
|
|
bool QWebEngineProfile_override_virtual_connectNotify(void* self, intptr_t slot) {
|
|
MiqtVirtualQWebEngineProfile* self_cast = dynamic_cast<MiqtVirtualQWebEngineProfile*>( (QWebEngineProfile*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__connectNotify = slot;
|
|
return true;
|
|
}
|
|
|
|
void QWebEngineProfile_virtualbase_connectNotify(void* self, QMetaMethod* signal) {
|
|
( (MiqtVirtualQWebEngineProfile*)(self) )->virtualbase_connectNotify(signal);
|
|
}
|
|
|
|
bool QWebEngineProfile_override_virtual_disconnectNotify(void* self, intptr_t slot) {
|
|
MiqtVirtualQWebEngineProfile* self_cast = dynamic_cast<MiqtVirtualQWebEngineProfile*>( (QWebEngineProfile*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__disconnectNotify = slot;
|
|
return true;
|
|
}
|
|
|
|
void QWebEngineProfile_virtualbase_disconnectNotify(void* self, QMetaMethod* signal) {
|
|
( (MiqtVirtualQWebEngineProfile*)(self) )->virtualbase_disconnectNotify(signal);
|
|
}
|
|
|
|
void QWebEngineProfile_delete(QWebEngineProfile* self) {
|
|
delete self;
|
|
}
|
|
|