2024-08-25 04:08:24 +00:00
# include <QAbstractEventDispatcher>
2024-08-29 07:01:51 +00:00
# define WORKAROUND_INNER_CLASS_DEFINITION_QAbstractEventDispatcher__TimerInfo
2024-08-25 04:08:24 +00:00
# include <QAbstractNativeEventFilter>
2024-09-20 22:32:57 +00:00
# include <QByteArray>
2024-08-29 07:01:51 +00:00
# include <QList>
2024-08-25 04:08:24 +00:00
# include <QMetaObject>
# include <QObject>
# include <QSocketNotifier>
# include <QString>
2024-08-29 07:01:51 +00:00
# include <QByteArray>
# include <cstring>
2024-08-25 04:08:24 +00:00
# include <QThread>
2024-10-16 05:07:56 +00:00
# include <qabstracteventdispatcher.h>
2024-08-29 07:01:51 +00:00
# include "gen_qabstracteventdispatcher.h"
2024-09-14 22:29:05 +00:00
# include "_cgo_export.h"
2024-08-25 04:08:24 +00:00
2024-09-11 05:41:09 +00:00
QMetaObject * QAbstractEventDispatcher_MetaObject ( const QAbstractEventDispatcher * self ) {
return ( QMetaObject * ) self - > metaObject ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-20 22:32:57 +00:00
void * QAbstractEventDispatcher_Metacast ( QAbstractEventDispatcher * self , const char * param1 ) {
return self - > qt_metacast ( param1 ) ;
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAbstractEventDispatcher_Tr ( const char * s ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAbstractEventDispatcher : : tr ( s ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
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 ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAbstractEventDispatcher_TrUtf8 ( const char * s ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAbstractEventDispatcher : : trUtf8 ( s ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
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 ;
2024-08-25 04:08:24 +00:00
}
QAbstractEventDispatcher * QAbstractEventDispatcher_Instance ( ) {
return QAbstractEventDispatcher : : instance ( ) ;
}
2024-08-29 07:01:51 +00:00
bool QAbstractEventDispatcher_ProcessEvents ( QAbstractEventDispatcher * self , int flags ) {
return self - > processEvents ( static_cast < QEventLoop : : ProcessEventsFlags > ( flags ) ) ;
}
2024-08-25 04:08:24 +00:00
bool QAbstractEventDispatcher_HasPendingEvents ( QAbstractEventDispatcher * self ) {
return self - > hasPendingEvents ( ) ;
}
void QAbstractEventDispatcher_RegisterSocketNotifier ( QAbstractEventDispatcher * self , QSocketNotifier * notifier ) {
self - > registerSocketNotifier ( notifier ) ;
}
void QAbstractEventDispatcher_UnregisterSocketNotifier ( QAbstractEventDispatcher * self , QSocketNotifier * notifier ) {
self - > unregisterSocketNotifier ( notifier ) ;
}
2024-09-18 00:12:02 +00:00
int QAbstractEventDispatcher_RegisterTimer ( QAbstractEventDispatcher * self , int interval , int timerType , QObject * object ) {
2024-08-29 07:01:51 +00:00
return self - > registerTimer ( static_cast < int > ( interval ) , static_cast < Qt : : TimerType > ( timerType ) , object ) ;
}
2024-09-18 00:12:02 +00:00
void QAbstractEventDispatcher_RegisterTimer2 ( QAbstractEventDispatcher * self , int timerId , int interval , int timerType , QObject * object ) {
2024-08-29 07:01:51 +00:00
self - > registerTimer ( static_cast < int > ( timerId ) , static_cast < int > ( interval ) , static_cast < Qt : : TimerType > ( timerType ) , object ) ;
}
2024-08-25 04:08:24 +00:00
bool QAbstractEventDispatcher_UnregisterTimer ( QAbstractEventDispatcher * self , int timerId ) {
return self - > unregisterTimer ( static_cast < int > ( timerId ) ) ;
}
bool QAbstractEventDispatcher_UnregisterTimers ( QAbstractEventDispatcher * self , QObject * object ) {
return self - > unregisterTimers ( object ) ;
}
2024-11-17 06:21:37 +00:00
struct miqt_array /* of QAbstractEventDispatcher__TimerInfo* */ QAbstractEventDispatcher_RegisteredTimers ( const QAbstractEventDispatcher * self , QObject * object ) {
2024-09-14 22:29:05 +00:00
QList < QAbstractEventDispatcher : : TimerInfo > _ret = self - > registeredTimers ( object ) ;
2024-09-17 06:29:11 +00:00
// Convert QList<> from C++ memory to manually-managed C memory
QAbstractEventDispatcher__TimerInfo * * _arr = static_cast < QAbstractEventDispatcher__TimerInfo * * > ( malloc ( sizeof ( QAbstractEventDispatcher__TimerInfo * ) * _ret . length ( ) ) ) ;
2024-09-14 22:29:05 +00:00
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = new QAbstractEventDispatcher : : TimerInfo ( _ret [ i ] ) ;
2024-08-29 07:01:51 +00:00
}
2024-11-04 07:18:27 +00:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-14 22:29:05 +00:00
return _out ;
2024-08-29 07:01:51 +00:00
}
2024-08-25 04:08:24 +00:00
int QAbstractEventDispatcher_RemainingTime ( QAbstractEventDispatcher * self , int timerId ) {
return self - > remainingTime ( static_cast < int > ( timerId ) ) ;
}
void QAbstractEventDispatcher_WakeUp ( QAbstractEventDispatcher * self ) {
self - > wakeUp ( ) ;
}
void QAbstractEventDispatcher_Interrupt ( QAbstractEventDispatcher * self ) {
self - > interrupt ( ) ;
}
void QAbstractEventDispatcher_Flush ( QAbstractEventDispatcher * self ) {
self - > flush ( ) ;
}
void QAbstractEventDispatcher_StartingUp ( QAbstractEventDispatcher * self ) {
self - > startingUp ( ) ;
}
void QAbstractEventDispatcher_ClosingDown ( QAbstractEventDispatcher * self ) {
self - > closingDown ( ) ;
}
void QAbstractEventDispatcher_InstallNativeEventFilter ( QAbstractEventDispatcher * self , QAbstractNativeEventFilter * filterObj ) {
self - > installNativeEventFilter ( filterObj ) ;
}
void QAbstractEventDispatcher_RemoveNativeEventFilter ( QAbstractEventDispatcher * self , QAbstractNativeEventFilter * filterObj ) {
self - > removeNativeEventFilter ( filterObj ) ;
}
2024-10-18 23:53:33 +00:00
bool QAbstractEventDispatcher_FilterNativeEvent ( QAbstractEventDispatcher * self , struct miqt_string eventType , void * message , long * result ) {
QByteArray eventType_QByteArray ( eventType . data , eventType . len ) ;
return self - > filterNativeEvent ( eventType_QByteArray , message , static_cast < long * > ( result ) ) ;
2024-09-20 22:32:57 +00:00
}
2024-08-25 04:08:24 +00:00
void QAbstractEventDispatcher_AboutToBlock ( QAbstractEventDispatcher * self ) {
self - > aboutToBlock ( ) ;
}
2024-10-13 06:06:06 +00:00
void QAbstractEventDispatcher_connect_AboutToBlock ( QAbstractEventDispatcher * self , intptr_t slot ) {
2024-11-23 08:11:35 +00:00
QAbstractEventDispatcher : : connect ( self , static_cast < void ( QAbstractEventDispatcher : : * ) ( ) > ( & QAbstractEventDispatcher : : aboutToBlock ) , self , [ = ] ( ) {
2024-09-14 22:29:05 +00:00
miqt_exec_callback_QAbstractEventDispatcher_AboutToBlock ( slot ) ;
2024-08-25 04:08:24 +00:00
} ) ;
}
void QAbstractEventDispatcher_Awake ( QAbstractEventDispatcher * self ) {
self - > awake ( ) ;
}
2024-10-13 06:06:06 +00:00
void QAbstractEventDispatcher_connect_Awake ( QAbstractEventDispatcher * self , intptr_t slot ) {
2024-11-23 08:11:35 +00:00
QAbstractEventDispatcher : : connect ( self , static_cast < void ( QAbstractEventDispatcher : : * ) ( ) > ( & QAbstractEventDispatcher : : awake ) , self , [ = ] ( ) {
2024-09-14 22:29:05 +00:00
miqt_exec_callback_QAbstractEventDispatcher_Awake ( slot ) ;
2024-08-25 04:08:24 +00:00
} ) ;
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAbstractEventDispatcher_Tr2 ( const char * s , const char * c ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAbstractEventDispatcher : : tr ( s , c ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
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 ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAbstractEventDispatcher_Tr3 ( const char * s , const char * c , int n ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAbstractEventDispatcher : : tr ( s , c , static_cast < int > ( n ) ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
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 ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAbstractEventDispatcher_TrUtf82 ( const char * s , const char * c ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAbstractEventDispatcher : : trUtf8 ( s , c ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
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 ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAbstractEventDispatcher_TrUtf83 ( const char * s , const char * c , int n ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAbstractEventDispatcher : : trUtf8 ( s , c , static_cast < int > ( n ) ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
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 ;
2024-08-25 04:08:24 +00:00
}
QAbstractEventDispatcher * QAbstractEventDispatcher_Instance1 ( QThread * thread ) {
return QAbstractEventDispatcher : : instance ( thread ) ;
}
2024-11-19 06:29:06 +00:00
void QAbstractEventDispatcher_Delete ( QAbstractEventDispatcher * self , bool isSubclass ) {
if ( isSubclass ) {
2024-11-23 08:11:35 +00:00
delete dynamic_cast < QAbstractEventDispatcher * > ( self ) ;
2024-11-19 06:29:06 +00:00
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QAbstractEventDispatcher__TimerInfo_new ( int id , int i , int t , QAbstractEventDispatcher__TimerInfo * * outptr_QAbstractEventDispatcher__TimerInfo ) {
QAbstractEventDispatcher : : TimerInfo * ret = new QAbstractEventDispatcher : : TimerInfo ( static_cast < int > ( id ) , static_cast < int > ( i ) , static_cast < Qt : : TimerType > ( t ) ) ;
* outptr_QAbstractEventDispatcher__TimerInfo = ret ;
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QAbstractEventDispatcher__TimerInfo_Delete ( QAbstractEventDispatcher__TimerInfo * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAbstractEventDispatcher : : TimerInfo * > ( self ) ;
} else {
delete self ;
}
2024-08-29 07:01:51 +00:00
}