2024-11-26 22:31:32 +13:00
# include <QChildEvent>
# include <QEvent>
# include <QList>
# include <QMetaMethod>
# include <QMetaObject>
# include <QObject>
# include <QString>
# include <QByteArray>
# include <cstring>
# include <QTimerEvent>
# include <QUrl>
# include <QWebPluginFactory>
# define WORKAROUND_INNER_CLASS_DEFINITION_QWebPluginFactory__ExtensionOption
# define WORKAROUND_INNER_CLASS_DEFINITION_QWebPluginFactory__ExtensionReturn
# define WORKAROUND_INNER_CLASS_DEFINITION_QWebPluginFactory__MimeType
# define WORKAROUND_INNER_CLASS_DEFINITION_QWebPluginFactory__Plugin
# include <qwebpluginfactory.h>
# include "gen_qwebpluginfactory.h"
2024-12-11 19:55:47 +13:00
2025-01-07 11:30:33 +01:00
# ifdef __cplusplus
extern " C " {
# endif
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QWebPluginFactory__Plugin* */ miqt_exec_callback_QWebPluginFactory_plugins ( const QWebPluginFactory * , intptr_t ) ;
void miqt_exec_callback_QWebPluginFactory_refreshPlugins ( QWebPluginFactory * , intptr_t ) ;
QObject * miqt_exec_callback_QWebPluginFactory_create ( const QWebPluginFactory * , intptr_t , struct miqt_string , QUrl * , struct miqt_array /* of struct miqt_string */ , struct miqt_array /* of struct miqt_string */ ) ;
bool miqt_exec_callback_QWebPluginFactory_extension ( QWebPluginFactory * , intptr_t , int , QWebPluginFactory__ExtensionOption * , QWebPluginFactory__ExtensionReturn * ) ;
bool miqt_exec_callback_QWebPluginFactory_supportsExtension ( const QWebPluginFactory * , intptr_t , int ) ;
bool miqt_exec_callback_QWebPluginFactory_event ( QWebPluginFactory * , intptr_t , QEvent * ) ;
bool miqt_exec_callback_QWebPluginFactory_eventFilter ( QWebPluginFactory * , intptr_t , QObject * , QEvent * ) ;
void miqt_exec_callback_QWebPluginFactory_timerEvent ( QWebPluginFactory * , intptr_t , QTimerEvent * ) ;
void miqt_exec_callback_QWebPluginFactory_childEvent ( QWebPluginFactory * , intptr_t , QChildEvent * ) ;
void miqt_exec_callback_QWebPluginFactory_customEvent ( QWebPluginFactory * , intptr_t , QEvent * ) ;
void miqt_exec_callback_QWebPluginFactory_connectNotify ( QWebPluginFactory * , intptr_t , QMetaMethod * ) ;
void miqt_exec_callback_QWebPluginFactory_disconnectNotify ( QWebPluginFactory * , intptr_t , QMetaMethod * ) ;
2025-01-07 11:30:33 +01:00
# ifdef __cplusplus
} /* extern C */
2024-12-11 19:55:47 +13:00
# endif
2024-11-26 22:31:32 +13:00
2025-01-18 17:42:41 +13:00
class MiqtVirtualQWebPluginFactory final : public QWebPluginFactory {
2024-11-26 22:31:32 +13:00
public :
MiqtVirtualQWebPluginFactory ( ) : QWebPluginFactory ( ) { } ;
MiqtVirtualQWebPluginFactory ( QObject * parent ) : QWebPluginFactory ( parent ) { } ;
2025-01-18 17:42:41 +13:00
virtual ~ MiqtVirtualQWebPluginFactory ( ) override = default ;
2024-11-26 22:31:32 +13:00
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__plugins = 0 ;
2024-11-26 22:31:32 +13:00
// Subclass to allow providing a Go implementation
virtual QList < QWebPluginFactory : : Plugin > plugins ( ) const override {
2025-02-01 13:45:16 +13:00
if ( handle__plugins = = 0 ) {
2024-11-26 22:31:32 +13:00
return QList < QWebPluginFactory : : Plugin > ( ) ; // Pure virtual, there is no base we can call
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QWebPluginFactory__Plugin* */ callback_return_value = miqt_exec_callback_QWebPluginFactory_plugins ( this , handle__plugins ) ;
2024-11-26 22:31:32 +13:00
QList < QWebPluginFactory : : Plugin > callback_return_value_QList ;
callback_return_value_QList . reserve ( callback_return_value . len ) ;
QWebPluginFactory__Plugin * * callback_return_value_arr = static_cast < QWebPluginFactory__Plugin * * > ( callback_return_value . data ) ;
for ( size_t i = 0 ; i < callback_return_value . len ; + + i ) {
callback_return_value_QList . push_back ( * ( callback_return_value_arr [ i ] ) ) ;
}
return callback_return_value_QList ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__refreshPlugins = 0 ;
2024-11-26 22:31:32 +13:00
// Subclass to allow providing a Go implementation
virtual void refreshPlugins ( ) override {
2025-02-01 13:45:16 +13:00
if ( handle__refreshPlugins = = 0 ) {
2024-11-26 22:31:32 +13:00
QWebPluginFactory : : refreshPlugins ( ) ;
return ;
}
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QWebPluginFactory_refreshPlugins ( this , handle__refreshPlugins ) ;
2024-11-26 22:31:32 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_refreshPlugins ( ) {
2024-11-26 22:31:32 +13:00
QWebPluginFactory : : refreshPlugins ( ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__create = 0 ;
2024-11-26 22:31:32 +13:00
// Subclass to allow providing a Go implementation
virtual QObject * create ( const QString & mimeType , const QUrl & param2 , const QStringList & argumentNames , const QStringList & argumentValues ) const override {
2025-02-01 13:45:16 +13:00
if ( handle__create = = 0 ) {
2024-11-26 22:31:32 +13:00
return nullptr ; // Pure virtual, there is no base we can call
}
const QString mimeType_ret = mimeType ;
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray mimeType_b = mimeType_ret . toUtf8 ( ) ;
struct miqt_string mimeType_ms ;
mimeType_ms . len = mimeType_b . length ( ) ;
mimeType_ms . data = static_cast < char * > ( malloc ( mimeType_ms . len ) ) ;
memcpy ( mimeType_ms . data , mimeType_b . data ( ) , mimeType_ms . len ) ;
struct miqt_string sigval1 = mimeType_ms ;
const QUrl & param2_ret = param2 ;
// Cast returned reference into pointer
QUrl * sigval2 = const_cast < QUrl * > ( & param2_ret ) ;
const QStringList & argumentNames_ret = argumentNames ;
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string * argumentNames_arr = static_cast < struct miqt_string * > ( malloc ( sizeof ( struct miqt_string ) * argumentNames_ret . length ( ) ) ) ;
for ( size_t i = 0 , e = argumentNames_ret . length ( ) ; i < e ; + + i ) {
QString argumentNames_lv_ret = argumentNames_ret [ i ] ;
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray argumentNames_lv_b = argumentNames_lv_ret . toUtf8 ( ) ;
struct miqt_string argumentNames_lv_ms ;
argumentNames_lv_ms . len = argumentNames_lv_b . length ( ) ;
argumentNames_lv_ms . data = static_cast < char * > ( malloc ( argumentNames_lv_ms . len ) ) ;
memcpy ( argumentNames_lv_ms . data , argumentNames_lv_b . data ( ) , argumentNames_lv_ms . len ) ;
argumentNames_arr [ i ] = argumentNames_lv_ms ;
}
struct miqt_array argumentNames_out ;
argumentNames_out . len = argumentNames_ret . length ( ) ;
argumentNames_out . data = static_cast < void * > ( argumentNames_arr ) ;
struct miqt_array /* of struct miqt_string */ sigval3 = argumentNames_out ;
const QStringList & argumentValues_ret = argumentValues ;
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string * argumentValues_arr = static_cast < struct miqt_string * > ( malloc ( sizeof ( struct miqt_string ) * argumentValues_ret . length ( ) ) ) ;
for ( size_t i = 0 , e = argumentValues_ret . length ( ) ; i < e ; + + i ) {
QString argumentValues_lv_ret = argumentValues_ret [ i ] ;
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray argumentValues_lv_b = argumentValues_lv_ret . toUtf8 ( ) ;
struct miqt_string argumentValues_lv_ms ;
argumentValues_lv_ms . len = argumentValues_lv_b . length ( ) ;
argumentValues_lv_ms . data = static_cast < char * > ( malloc ( argumentValues_lv_ms . len ) ) ;
memcpy ( argumentValues_lv_ms . data , argumentValues_lv_b . data ( ) , argumentValues_lv_ms . len ) ;
argumentValues_arr [ i ] = argumentValues_lv_ms ;
}
struct miqt_array argumentValues_out ;
argumentValues_out . len = argumentValues_ret . length ( ) ;
argumentValues_out . data = static_cast < void * > ( argumentValues_arr ) ;
struct miqt_array /* of struct miqt_string */ sigval4 = argumentValues_out ;
2025-02-01 13:45:16 +13:00
QObject * callback_return_value = miqt_exec_callback_QWebPluginFactory_create ( this , handle__create , sigval1 , sigval2 , sigval3 , sigval4 ) ;
2024-11-26 22:31:32 +13:00
return callback_return_value ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__extension = 0 ;
2024-11-26 22:31:32 +13:00
// Subclass to allow providing a Go implementation
virtual bool extension ( QWebPluginFactory : : Extension extension , const QWebPluginFactory : : ExtensionOption * option , QWebPluginFactory : : ExtensionReturn * output ) override {
2025-02-01 13:45:16 +13:00
if ( handle__extension = = 0 ) {
2024-11-26 22:31:32 +13:00
return QWebPluginFactory : : extension ( extension , option , output ) ;
}
QWebPluginFactory : : Extension extension_ret = extension ;
int sigval1 = static_cast < int > ( extension_ret ) ;
QWebPluginFactory__ExtensionOption * sigval2 = ( QWebPluginFactory__ExtensionOption * ) option ;
QWebPluginFactory__ExtensionReturn * sigval3 = output ;
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QWebPluginFactory_extension ( this , handle__extension , sigval1 , sigval2 , sigval3 ) ;
2024-11-26 22:31:32 +13:00
return callback_return_value ;
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
bool virtualbase_extension ( int extension , QWebPluginFactory__ExtensionOption * option , QWebPluginFactory__ExtensionReturn * output ) {
2024-11-26 22:31:32 +13:00
return QWebPluginFactory : : extension ( static_cast < QWebPluginFactory : : Extension > ( extension ) , option , output ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__supportsExtension = 0 ;
2024-11-26 22:31:32 +13:00
// Subclass to allow providing a Go implementation
virtual bool supportsExtension ( QWebPluginFactory : : Extension extension ) const override {
2025-02-01 13:45:16 +13:00
if ( handle__supportsExtension = = 0 ) {
2024-11-26 22:31:32 +13:00
return QWebPluginFactory : : supportsExtension ( extension ) ;
}
QWebPluginFactory : : Extension extension_ret = extension ;
int sigval1 = static_cast < int > ( extension_ret ) ;
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QWebPluginFactory_supportsExtension ( this , handle__supportsExtension , sigval1 ) ;
2024-11-26 22:31:32 +13:00
return callback_return_value ;
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
bool virtualbase_supportsExtension ( int extension ) const {
2024-11-26 22:31:32 +13:00
return QWebPluginFactory : : supportsExtension ( static_cast < QWebPluginFactory : : Extension > ( extension ) ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__event = 0 ;
2024-11-26 22:31:32 +13:00
// Subclass to allow providing a Go implementation
virtual bool event ( QEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__event = = 0 ) {
2024-11-26 22:31:32 +13:00
return QWebPluginFactory : : event ( event ) ;
}
QEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QWebPluginFactory_event ( this , handle__event , sigval1 ) ;
2024-11-26 22:31:32 +13:00
return callback_return_value ;
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
bool virtualbase_event ( QEvent * event ) {
2024-11-26 22:31:32 +13:00
return QWebPluginFactory : : event ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__eventFilter = 0 ;
2024-11-26 22:31:32 +13:00
// Subclass to allow providing a Go implementation
virtual bool eventFilter ( QObject * watched , QEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__eventFilter = = 0 ) {
2024-11-26 22:31:32 +13:00
return QWebPluginFactory : : eventFilter ( watched , event ) ;
}
QObject * sigval1 = watched ;
QEvent * sigval2 = event ;
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QWebPluginFactory_eventFilter ( this , handle__eventFilter , sigval1 , sigval2 ) ;
2024-11-26 22:31:32 +13:00
return callback_return_value ;
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
bool virtualbase_eventFilter ( QObject * watched , QEvent * event ) {
2024-11-26 22:31:32 +13:00
return QWebPluginFactory : : eventFilter ( watched , event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__timerEvent = 0 ;
2024-11-26 22:31:32 +13:00
// Subclass to allow providing a Go implementation
virtual void timerEvent ( QTimerEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__timerEvent = = 0 ) {
2024-11-26 22:31:32 +13:00
QWebPluginFactory : : timerEvent ( event ) ;
return ;
}
QTimerEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QWebPluginFactory_timerEvent ( this , handle__timerEvent , sigval1 ) ;
2024-11-26 22:31:32 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_timerEvent ( QTimerEvent * event ) {
2024-11-26 22:31:32 +13:00
QWebPluginFactory : : timerEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__childEvent = 0 ;
2024-11-26 22:31:32 +13:00
// Subclass to allow providing a Go implementation
virtual void childEvent ( QChildEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__childEvent = = 0 ) {
2024-11-26 22:31:32 +13:00
QWebPluginFactory : : childEvent ( event ) ;
return ;
}
QChildEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QWebPluginFactory_childEvent ( this , handle__childEvent , sigval1 ) ;
2024-11-26 22:31:32 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_childEvent ( QChildEvent * event ) {
2024-11-26 22:31:32 +13:00
QWebPluginFactory : : childEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__customEvent = 0 ;
2024-11-26 22:31:32 +13:00
// Subclass to allow providing a Go implementation
virtual void customEvent ( QEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__customEvent = = 0 ) {
2024-11-26 22:31:32 +13:00
QWebPluginFactory : : customEvent ( event ) ;
return ;
}
QEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QWebPluginFactory_customEvent ( this , handle__customEvent , sigval1 ) ;
2024-11-26 22:31:32 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_customEvent ( QEvent * event ) {
2024-11-26 22:31:32 +13:00
QWebPluginFactory : : customEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__connectNotify = 0 ;
2024-11-26 22:31:32 +13:00
// Subclass to allow providing a Go implementation
virtual void connectNotify ( const QMetaMethod & signal ) override {
2025-02-01 13:45:16 +13:00
if ( handle__connectNotify = = 0 ) {
2024-11-26 22:31:32 +13:00
QWebPluginFactory : : connectNotify ( signal ) ;
return ;
}
const QMetaMethod & signal_ret = signal ;
// Cast returned reference into pointer
QMetaMethod * sigval1 = const_cast < QMetaMethod * > ( & signal_ret ) ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QWebPluginFactory_connectNotify ( this , handle__connectNotify , sigval1 ) ;
2024-11-26 22:31:32 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_connectNotify ( QMetaMethod * signal ) {
2024-11-26 22:31:32 +13:00
QWebPluginFactory : : connectNotify ( * signal ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__disconnectNotify = 0 ;
2024-11-26 22:31:32 +13:00
// Subclass to allow providing a Go implementation
virtual void disconnectNotify ( const QMetaMethod & signal ) override {
2025-02-01 13:45:16 +13:00
if ( handle__disconnectNotify = = 0 ) {
2024-11-26 22:31:32 +13:00
QWebPluginFactory : : disconnectNotify ( signal ) ;
return ;
}
const QMetaMethod & signal_ret = signal ;
// Cast returned reference into pointer
QMetaMethod * sigval1 = const_cast < QMetaMethod * > ( & signal_ret ) ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QWebPluginFactory_disconnectNotify ( this , handle__disconnectNotify , sigval1 ) ;
2024-11-26 22:31:32 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_disconnectNotify ( QMetaMethod * signal ) {
2024-11-26 22:31:32 +13:00
QWebPluginFactory : : disconnectNotify ( * signal ) ;
}
} ;
2024-12-07 17:15:57 +13:00
QWebPluginFactory * QWebPluginFactory_new ( ) {
return new MiqtVirtualQWebPluginFactory ( ) ;
2024-11-26 22:31:32 +13:00
}
2024-12-07 17:15:57 +13:00
QWebPluginFactory * QWebPluginFactory_new2 ( QObject * parent ) {
return new MiqtVirtualQWebPluginFactory ( parent ) ;
}
void QWebPluginFactory_virtbase ( QWebPluginFactory * src , QObject * * outptr_QObject ) {
* outptr_QObject = static_cast < QObject * > ( src ) ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
QMetaObject * QWebPluginFactory_metaObject ( const QWebPluginFactory * self ) {
2024-11-26 22:31:32 +13:00
return ( QMetaObject * ) self - > metaObject ( ) ;
}
2025-02-01 13:45:16 +13:00
void * QWebPluginFactory_metacast ( QWebPluginFactory * self , const char * param1 ) {
2024-11-26 22:31:32 +13:00
return self - > qt_metacast ( param1 ) ;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QWebPluginFactory_tr ( const char * s ) {
2024-11-26 22:31:32 +13:00
QString _ret = QWebPluginFactory : : 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 ;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QWebPluginFactory_trUtf8 ( const char * s ) {
2024-11-26 22:31:32 +13:00
QString _ret = QWebPluginFactory : : 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 < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QWebPluginFactory__Plugin* */ QWebPluginFactory_plugins ( const QWebPluginFactory * self ) {
2024-11-26 22:31:32 +13:00
QList < QWebPluginFactory : : Plugin > _ret = self - > plugins ( ) ;
// Convert QList<> from C++ memory to manually-managed C memory
QWebPluginFactory__Plugin * * _arr = static_cast < QWebPluginFactory__Plugin * * > ( malloc ( sizeof ( QWebPluginFactory__Plugin * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = new QWebPluginFactory : : Plugin ( _ret [ i ] ) ;
}
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
return _out ;
}
2025-02-01 13:45:16 +13:00
void QWebPluginFactory_refreshPlugins ( QWebPluginFactory * self ) {
2024-11-26 22:31:32 +13:00
self - > refreshPlugins ( ) ;
}
2025-02-01 13:45:16 +13:00
QObject * QWebPluginFactory_create ( const QWebPluginFactory * self , struct miqt_string mimeType , QUrl * param2 , struct miqt_array /* of struct miqt_string */ argumentNames , struct miqt_array /* of struct miqt_string */ argumentValues ) {
2024-11-26 22:31:32 +13:00
QString mimeType_QString = QString : : fromUtf8 ( mimeType . data , mimeType . len ) ;
QStringList argumentNames_QList ;
argumentNames_QList . reserve ( argumentNames . len ) ;
struct miqt_string * argumentNames_arr = static_cast < struct miqt_string * > ( argumentNames . data ) ;
for ( size_t i = 0 ; i < argumentNames . len ; + + i ) {
QString argumentNames_arr_i_QString = QString : : fromUtf8 ( argumentNames_arr [ i ] . data , argumentNames_arr [ i ] . len ) ;
argumentNames_QList . push_back ( argumentNames_arr_i_QString ) ;
}
QStringList argumentValues_QList ;
argumentValues_QList . reserve ( argumentValues . len ) ;
struct miqt_string * argumentValues_arr = static_cast < struct miqt_string * > ( argumentValues . data ) ;
for ( size_t i = 0 ; i < argumentValues . len ; + + i ) {
QString argumentValues_arr_i_QString = QString : : fromUtf8 ( argumentValues_arr [ i ] . data , argumentValues_arr [ i ] . len ) ;
argumentValues_QList . push_back ( argumentValues_arr_i_QString ) ;
}
return self - > create ( mimeType_QString , * param2 , argumentNames_QList , argumentValues_QList ) ;
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_extension ( QWebPluginFactory * self , int extension , QWebPluginFactory__ExtensionOption * option , QWebPluginFactory__ExtensionReturn * output ) {
2024-11-26 22:31:32 +13:00
return self - > extension ( static_cast < QWebPluginFactory : : Extension > ( extension ) , option , output ) ;
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_supportsExtension ( const QWebPluginFactory * self , int extension ) {
2024-11-26 22:31:32 +13:00
return self - > supportsExtension ( static_cast < QWebPluginFactory : : Extension > ( extension ) ) ;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QWebPluginFactory_tr2 ( const char * s , const char * c ) {
2024-11-26 22:31:32 +13:00
QString _ret = QWebPluginFactory : : 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 ;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QWebPluginFactory_tr3 ( const char * s , const char * c , int n ) {
2024-11-26 22:31:32 +13:00
QString _ret = QWebPluginFactory : : 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 ;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QWebPluginFactory_trUtf82 ( const char * s , const char * c ) {
2024-11-26 22:31:32 +13:00
QString _ret = QWebPluginFactory : : 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 < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QWebPluginFactory_trUtf83 ( const char * s , const char * c , int n ) {
2024-11-26 22:31:32 +13:00
QString _ret = QWebPluginFactory : : trUtf8 ( 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 ;
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_override_virtual_plugins ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQWebPluginFactory * self_cast = dynamic_cast < MiqtVirtualQWebPluginFactory * > ( ( QWebPluginFactory * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__plugins = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_override_virtual_refreshPlugins ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQWebPluginFactory * self_cast = dynamic_cast < MiqtVirtualQWebPluginFactory * > ( ( QWebPluginFactory * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__refreshPlugins = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
void QWebPluginFactory_virtualbase_refreshPlugins ( void * self ) {
( ( MiqtVirtualQWebPluginFactory * ) ( self ) ) - > virtualbase_refreshPlugins ( ) ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_override_virtual_create ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQWebPluginFactory * self_cast = dynamic_cast < MiqtVirtualQWebPluginFactory * > ( ( QWebPluginFactory * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__create = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_override_virtual_extension ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQWebPluginFactory * self_cast = dynamic_cast < MiqtVirtualQWebPluginFactory * > ( ( QWebPluginFactory * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__extension = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_virtualbase_extension ( void * self , int extension , QWebPluginFactory__ExtensionOption * option , QWebPluginFactory__ExtensionReturn * output ) {
return ( ( MiqtVirtualQWebPluginFactory * ) ( self ) ) - > virtualbase_extension ( extension , option , output ) ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_override_virtual_supportsExtension ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQWebPluginFactory * self_cast = dynamic_cast < MiqtVirtualQWebPluginFactory * > ( ( QWebPluginFactory * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__supportsExtension = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_virtualbase_supportsExtension ( const void * self , int extension ) {
return ( ( const MiqtVirtualQWebPluginFactory * ) ( self ) ) - > virtualbase_supportsExtension ( extension ) ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_override_virtual_event ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQWebPluginFactory * self_cast = dynamic_cast < MiqtVirtualQWebPluginFactory * > ( ( QWebPluginFactory * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__event = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_virtualbase_event ( void * self , QEvent * event ) {
return ( ( MiqtVirtualQWebPluginFactory * ) ( self ) ) - > virtualbase_event ( event ) ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_override_virtual_eventFilter ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQWebPluginFactory * self_cast = dynamic_cast < MiqtVirtualQWebPluginFactory * > ( ( QWebPluginFactory * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__eventFilter = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_virtualbase_eventFilter ( void * self , QObject * watched , QEvent * event ) {
return ( ( MiqtVirtualQWebPluginFactory * ) ( self ) ) - > virtualbase_eventFilter ( watched , event ) ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_override_virtual_timerEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQWebPluginFactory * self_cast = dynamic_cast < MiqtVirtualQWebPluginFactory * > ( ( QWebPluginFactory * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__timerEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
void QWebPluginFactory_virtualbase_timerEvent ( void * self , QTimerEvent * event ) {
( ( MiqtVirtualQWebPluginFactory * ) ( self ) ) - > virtualbase_timerEvent ( event ) ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_override_virtual_childEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQWebPluginFactory * self_cast = dynamic_cast < MiqtVirtualQWebPluginFactory * > ( ( QWebPluginFactory * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__childEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
void QWebPluginFactory_virtualbase_childEvent ( void * self , QChildEvent * event ) {
( ( MiqtVirtualQWebPluginFactory * ) ( self ) ) - > virtualbase_childEvent ( event ) ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_override_virtual_customEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQWebPluginFactory * self_cast = dynamic_cast < MiqtVirtualQWebPluginFactory * > ( ( QWebPluginFactory * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__customEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
void QWebPluginFactory_virtualbase_customEvent ( void * self , QEvent * event ) {
( ( MiqtVirtualQWebPluginFactory * ) ( self ) ) - > virtualbase_customEvent ( event ) ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_override_virtual_connectNotify ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQWebPluginFactory * self_cast = dynamic_cast < MiqtVirtualQWebPluginFactory * > ( ( QWebPluginFactory * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__connectNotify = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
void QWebPluginFactory_virtualbase_connectNotify ( void * self , QMetaMethod * signal ) {
( ( MiqtVirtualQWebPluginFactory * ) ( self ) ) - > virtualbase_connectNotify ( signal ) ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory_override_virtual_disconnectNotify ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQWebPluginFactory * self_cast = dynamic_cast < MiqtVirtualQWebPluginFactory * > ( ( QWebPluginFactory * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__disconnectNotify = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
void QWebPluginFactory_virtualbase_disconnectNotify ( void * self , QMetaMethod * signal ) {
( ( MiqtVirtualQWebPluginFactory * ) ( self ) ) - > virtualbase_disconnectNotify ( signal ) ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
void QWebPluginFactory_delete ( QWebPluginFactory * self ) {
2025-01-18 17:42:41 +13:00
delete self ;
2024-11-26 22:31:32 +13:00
}
2024-12-07 17:15:57 +13:00
QWebPluginFactory__MimeType * QWebPluginFactory__MimeType_new ( QWebPluginFactory__MimeType * param1 ) {
return new QWebPluginFactory : : MimeType ( * param1 ) ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory__MimeType_operatorEqual ( const QWebPluginFactory__MimeType * self , QWebPluginFactory__MimeType * other ) {
2024-11-26 22:31:32 +13:00
return ( * self = = * other ) ;
}
2025-02-01 13:45:16 +13:00
bool QWebPluginFactory__MimeType_operatorNotEqual ( const QWebPluginFactory__MimeType * self , QWebPluginFactory__MimeType * other ) {
2024-11-26 22:31:32 +13:00
return ( * self ! = * other ) ;
}
2025-02-01 13:45:16 +13:00
void QWebPluginFactory__MimeType_operatorAssign ( QWebPluginFactory__MimeType * self , QWebPluginFactory__MimeType * param1 ) {
2024-11-26 22:31:32 +13:00
self - > operator = ( * param1 ) ;
}
2025-02-01 13:45:16 +13:00
void QWebPluginFactory__MimeType_delete ( QWebPluginFactory__MimeType * self ) {
2025-01-18 17:42:41 +13:00
delete self ;
2024-11-26 22:31:32 +13:00
}
2024-12-07 17:15:57 +13:00
QWebPluginFactory__Plugin * QWebPluginFactory__Plugin_new ( QWebPluginFactory__Plugin * param1 ) {
return new QWebPluginFactory : : Plugin ( * param1 ) ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
void QWebPluginFactory__Plugin_operatorAssign ( QWebPluginFactory__Plugin * self , QWebPluginFactory__Plugin * param1 ) {
2024-11-26 22:31:32 +13:00
self - > operator = ( * param1 ) ;
}
2025-02-01 13:45:16 +13:00
void QWebPluginFactory__Plugin_delete ( QWebPluginFactory__Plugin * self ) {
2025-01-18 17:42:41 +13:00
delete self ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
void QWebPluginFactory__ExtensionOption_delete ( QWebPluginFactory__ExtensionOption * self ) {
2025-01-18 17:42:41 +13:00
delete self ;
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
void QWebPluginFactory__ExtensionReturn_delete ( QWebPluginFactory__ExtensionReturn * self ) {
2025-01-18 17:42:41 +13:00
delete self ;
2024-11-26 22:31:32 +13:00
}