miqt/qt/network/gen_qtcpserver.cpp

637 lines
18 KiB
C++
Raw Normal View History

2024-11-19 19:29:06 +13:00
#include <QChildEvent>
#include <QEvent>
2024-11-04 22:53:04 +13:00
#include <QHostAddress>
2024-11-19 19:29:06 +13:00
#include <QMetaMethod>
2024-11-04 22:53:04 +13:00
#include <QMetaObject>
#include <QNetworkProxy>
#include <QObject>
#include <QString>
#include <QByteArray>
#include <cstring>
#include <QTcpServer>
#include <QTcpSocket>
2024-11-19 19:29:06 +13:00
#include <QTimerEvent>
2024-11-04 22:53:04 +13:00
#include <qtcpserver.h>
#include "gen_qtcpserver.h"
#ifdef __cplusplus
extern "C" {
#endif
2025-02-01 13:45:16 +13:00
void miqt_exec_callback_QTcpServer_newConnection(intptr_t);
void miqt_exec_callback_QTcpServer_acceptError(intptr_t, int);
bool miqt_exec_callback_QTcpServer_hasPendingConnections(const QTcpServer*, intptr_t);
QTcpSocket* miqt_exec_callback_QTcpServer_nextPendingConnection(QTcpServer*, intptr_t);
void miqt_exec_callback_QTcpServer_incomingConnection(QTcpServer*, intptr_t, intptr_t);
bool miqt_exec_callback_QTcpServer_event(QTcpServer*, intptr_t, QEvent*);
bool miqt_exec_callback_QTcpServer_eventFilter(QTcpServer*, intptr_t, QObject*, QEvent*);
void miqt_exec_callback_QTcpServer_timerEvent(QTcpServer*, intptr_t, QTimerEvent*);
void miqt_exec_callback_QTcpServer_childEvent(QTcpServer*, intptr_t, QChildEvent*);
void miqt_exec_callback_QTcpServer_customEvent(QTcpServer*, intptr_t, QEvent*);
void miqt_exec_callback_QTcpServer_connectNotify(QTcpServer*, intptr_t, QMetaMethod*);
void miqt_exec_callback_QTcpServer_disconnectNotify(QTcpServer*, intptr_t, QMetaMethod*);
#ifdef __cplusplus
} /* extern C */
#endif
2024-11-04 22:53:04 +13:00
class MiqtVirtualQTcpServer final : public QTcpServer {
2024-11-19 19:29:06 +13:00
public:
MiqtVirtualQTcpServer(): QTcpServer() {};
MiqtVirtualQTcpServer(QObject* parent): QTcpServer(parent) {};
virtual ~MiqtVirtualQTcpServer() override = default;
2024-11-19 19:29:06 +13:00
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__hasPendingConnections = 0;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual bool hasPendingConnections() const override {
2025-02-01 13:45:16 +13:00
if (handle__hasPendingConnections == 0) {
2024-11-19 19:29:06 +13:00
return QTcpServer::hasPendingConnections();
}
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QTcpServer_hasPendingConnections(this, handle__hasPendingConnections);
2024-11-19 19:29:06 +13:00
return callback_return_value;
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
bool virtualbase_hasPendingConnections() const {
2024-11-19 19:29:06 +13:00
return QTcpServer::hasPendingConnections();
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__nextPendingConnection = 0;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual QTcpSocket* nextPendingConnection() override {
2025-02-01 13:45:16 +13:00
if (handle__nextPendingConnection == 0) {
2024-11-19 19:29:06 +13:00
return QTcpServer::nextPendingConnection();
}
2025-02-01 13:45:16 +13:00
QTcpSocket* callback_return_value = miqt_exec_callback_QTcpServer_nextPendingConnection(this, handle__nextPendingConnection);
2024-11-19 19:29:06 +13:00
return callback_return_value;
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
QTcpSocket* virtualbase_nextPendingConnection() {
2024-11-19 19:29:06 +13:00
return QTcpServer::nextPendingConnection();
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__incomingConnection = 0;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void incomingConnection(qintptr handle) override {
2025-02-01 13:45:16 +13:00
if (handle__incomingConnection == 0) {
2024-11-19 19:29:06 +13:00
QTcpServer::incomingConnection(handle);
return;
}
qintptr handle_ret = handle;
intptr_t sigval1 = (intptr_t)(handle_ret);
2024-11-19 19:29:06 +13:00
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QTcpServer_incomingConnection(this, handle__incomingConnection, sigval1);
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_incomingConnection(intptr_t handle) {
2024-11-19 19:29:06 +13:00
QTcpServer::incomingConnection((qintptr)(handle));
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__event = 0;
2024-11-19 19:29:06 +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-19 19:29:06 +13:00
return QTcpServer::event(event);
}
QEvent* sigval1 = event;
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QTcpServer_event(this, handle__event, sigval1);
2024-11-19 19:29:06 +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-19 19:29:06 +13:00
return QTcpServer::event(event);
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__eventFilter = 0;
2024-11-19 19:29:06 +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-19 19:29:06 +13:00
return QTcpServer::eventFilter(watched, event);
}
QObject* sigval1 = watched;
QEvent* sigval2 = event;
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QTcpServer_eventFilter(this, handle__eventFilter, sigval1, sigval2);
2024-11-19 19:29:06 +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-19 19:29:06 +13:00
return QTcpServer::eventFilter(watched, event);
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__timerEvent = 0;
2024-11-19 19:29:06 +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-19 19:29:06 +13:00
QTcpServer::timerEvent(event);
return;
}
QTimerEvent* sigval1 = event;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QTcpServer_timerEvent(this, handle__timerEvent, sigval1);
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_timerEvent(QTimerEvent* event) {
2024-11-19 19:29:06 +13:00
QTcpServer::timerEvent(event);
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__childEvent = 0;
2024-11-19 19:29:06 +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-19 19:29:06 +13:00
QTcpServer::childEvent(event);
return;
}
QChildEvent* sigval1 = event;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QTcpServer_childEvent(this, handle__childEvent, sigval1);
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_childEvent(QChildEvent* event) {
2024-11-19 19:29:06 +13:00
QTcpServer::childEvent(event);
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__customEvent = 0;
2024-11-19 19:29:06 +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-19 19:29:06 +13:00
QTcpServer::customEvent(event);
return;
}
QEvent* sigval1 = event;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QTcpServer_customEvent(this, handle__customEvent, sigval1);
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_customEvent(QEvent* event) {
2024-11-19 19:29:06 +13:00
QTcpServer::customEvent(event);
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__connectNotify = 0;
2024-11-19 19:29:06 +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-19 19:29:06 +13:00
QTcpServer::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_QTcpServer_connectNotify(this, handle__connectNotify, sigval1);
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_connectNotify(QMetaMethod* signal) {
2024-11-19 19:29:06 +13:00
QTcpServer::connectNotify(*signal);
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__disconnectNotify = 0;
2024-11-19 19:29:06 +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-19 19:29:06 +13:00
QTcpServer::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_QTcpServer_disconnectNotify(this, handle__disconnectNotify, sigval1);
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_disconnectNotify(QMetaMethod* signal) {
2024-11-19 19:29:06 +13:00
QTcpServer::disconnectNotify(*signal);
}
};
2024-12-07 17:15:57 +13:00
QTcpServer* QTcpServer_new() {
return new MiqtVirtualQTcpServer();
2024-11-04 22:53:04 +13:00
}
2024-12-07 17:15:57 +13:00
QTcpServer* QTcpServer_new2(QObject* parent) {
return new MiqtVirtualQTcpServer(parent);
}
void QTcpServer_virtbase(QTcpServer* src, QObject** outptr_QObject) {
*outptr_QObject = static_cast<QObject*>(src);
2024-11-04 22:53:04 +13:00
}
2025-02-01 13:45:16 +13:00
QMetaObject* QTcpServer_metaObject(const QTcpServer* self) {
2024-11-04 22:53:04 +13:00
return (QMetaObject*) self->metaObject();
}
2025-02-01 13:45:16 +13:00
void* QTcpServer_metacast(QTcpServer* self, const char* param1) {
2024-11-04 22:53:04 +13:00
return self->qt_metacast(param1);
}
2025-02-01 13:45:16 +13:00
struct miqt_string QTcpServer_tr(const char* s) {
2024-11-04 22:53:04 +13:00
QString _ret = QTcpServer::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 QTcpServer_trUtf8(const char* s) {
2024-11-04 22:53:04 +13:00
QString _ret = QTcpServer::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
bool QTcpServer_listen(QTcpServer* self) {
2024-11-04 22:53:04 +13:00
return self->listen();
}
2025-02-01 13:45:16 +13:00
void QTcpServer_close(QTcpServer* self) {
2024-11-04 22:53:04 +13:00
self->close();
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_isListening(const QTcpServer* self) {
2024-11-04 22:53:04 +13:00
return self->isListening();
}
2025-02-01 13:45:16 +13:00
void QTcpServer_setMaxPendingConnections(QTcpServer* self, int numConnections) {
2024-11-04 22:53:04 +13:00
self->setMaxPendingConnections(static_cast<int>(numConnections));
}
2025-02-01 13:45:16 +13:00
int QTcpServer_maxPendingConnections(const QTcpServer* self) {
2024-11-04 22:53:04 +13:00
return self->maxPendingConnections();
}
2025-02-01 13:45:16 +13:00
uint16_t QTcpServer_serverPort(const QTcpServer* self) {
2024-11-04 22:53:04 +13:00
quint16 _ret = self->serverPort();
return static_cast<uint16_t>(_ret);
}
2025-02-01 13:45:16 +13:00
QHostAddress* QTcpServer_serverAddress(const QTcpServer* self) {
2024-11-04 22:53:04 +13:00
return new QHostAddress(self->serverAddress());
}
2025-02-01 13:45:16 +13:00
intptr_t QTcpServer_socketDescriptor(const QTcpServer* self) {
2024-11-04 22:53:04 +13:00
qintptr _ret = self->socketDescriptor();
return (intptr_t)(_ret);
2024-11-04 22:53:04 +13:00
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_setSocketDescriptor(QTcpServer* self, intptr_t socketDescriptor) {
2024-11-04 22:53:04 +13:00
return self->setSocketDescriptor((qintptr)(socketDescriptor));
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_waitForNewConnection(QTcpServer* self) {
2024-11-04 22:53:04 +13:00
return self->waitForNewConnection();
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_hasPendingConnections(const QTcpServer* self) {
2024-11-04 22:53:04 +13:00
return self->hasPendingConnections();
}
2025-02-01 13:45:16 +13:00
QTcpSocket* QTcpServer_nextPendingConnection(QTcpServer* self) {
2024-11-04 22:53:04 +13:00
return self->nextPendingConnection();
}
2025-02-01 13:45:16 +13:00
int QTcpServer_serverError(const QTcpServer* self) {
2024-11-04 22:53:04 +13:00
QAbstractSocket::SocketError _ret = self->serverError();
return static_cast<int>(_ret);
}
2025-02-01 13:45:16 +13:00
struct miqt_string QTcpServer_errorString(const QTcpServer* self) {
2024-11-04 22:53:04 +13:00
QString _ret = self->errorString();
// 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
void QTcpServer_pauseAccepting(QTcpServer* self) {
2024-11-04 22:53:04 +13:00
self->pauseAccepting();
}
2025-02-01 13:45:16 +13:00
void QTcpServer_resumeAccepting(QTcpServer* self) {
2024-11-04 22:53:04 +13:00
self->resumeAccepting();
}
2025-02-01 13:45:16 +13:00
void QTcpServer_setProxy(QTcpServer* self, QNetworkProxy* networkProxy) {
2024-11-04 22:53:04 +13:00
self->setProxy(*networkProxy);
}
2025-02-01 13:45:16 +13:00
QNetworkProxy* QTcpServer_proxy(const QTcpServer* self) {
2024-11-04 22:53:04 +13:00
return new QNetworkProxy(self->proxy());
}
2025-02-01 13:45:16 +13:00
void QTcpServer_newConnection(QTcpServer* self) {
2024-11-04 22:53:04 +13:00
self->newConnection();
}
2025-02-01 13:45:16 +13:00
void QTcpServer_connect_newConnection(QTcpServer* self, intptr_t slot) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQTcpServer::connect(self, static_cast<void (QTcpServer::*)()>(&QTcpServer::newConnection), self, [=]() {
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QTcpServer_newConnection(slot);
2024-11-04 22:53:04 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QTcpServer_acceptError(QTcpServer* self, int socketError) {
2024-11-04 22:53:04 +13:00
self->acceptError(static_cast<QAbstractSocket::SocketError>(socketError));
}
2025-02-01 13:45:16 +13:00
void QTcpServer_connect_acceptError(QTcpServer* self, intptr_t slot) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQTcpServer::connect(self, static_cast<void (QTcpServer::*)(QAbstractSocket::SocketError)>(&QTcpServer::acceptError), self, [=](QAbstractSocket::SocketError socketError) {
2024-11-04 22:53:04 +13:00
QAbstractSocket::SocketError socketError_ret = socketError;
int sigval1 = static_cast<int>(socketError_ret);
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QTcpServer_acceptError(slot, sigval1);
2024-11-04 22:53:04 +13:00
});
}
2025-02-01 13:45:16 +13:00
struct miqt_string QTcpServer_tr2(const char* s, const char* c) {
2024-11-04 22:53:04 +13:00
QString _ret = QTcpServer::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 QTcpServer_tr3(const char* s, const char* c, int n) {
2024-11-04 22:53:04 +13:00
QString _ret = QTcpServer::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 QTcpServer_trUtf82(const char* s, const char* c) {
2024-11-04 22:53:04 +13:00
QString _ret = QTcpServer::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 QTcpServer_trUtf83(const char* s, const char* c, int n) {
2024-11-04 22:53:04 +13:00
QString _ret = QTcpServer::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 QTcpServer_listen1(QTcpServer* self, QHostAddress* address) {
2024-11-04 22:53:04 +13:00
return self->listen(*address);
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_listen2(QTcpServer* self, QHostAddress* address, uint16_t port) {
2024-11-04 22:53:04 +13:00
return self->listen(*address, static_cast<quint16>(port));
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_waitForNewConnection1(QTcpServer* self, int msec) {
2024-11-04 22:53:04 +13:00
return self->waitForNewConnection(static_cast<int>(msec));
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_waitForNewConnection2(QTcpServer* self, int msec, bool* timedOut) {
2024-11-04 22:53:04 +13:00
return self->waitForNewConnection(static_cast<int>(msec), timedOut);
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_override_virtual_hasPendingConnections(void* self, intptr_t slot) {
MiqtVirtualQTcpServer* self_cast = dynamic_cast<MiqtVirtualQTcpServer*>( (QTcpServer*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__hasPendingConnections = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_virtualbase_hasPendingConnections(const void* self) {
return ( (const MiqtVirtualQTcpServer*)(self) )->virtualbase_hasPendingConnections();
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_override_virtual_nextPendingConnection(void* self, intptr_t slot) {
MiqtVirtualQTcpServer* self_cast = dynamic_cast<MiqtVirtualQTcpServer*>( (QTcpServer*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__nextPendingConnection = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
QTcpSocket* QTcpServer_virtualbase_nextPendingConnection(void* self) {
return ( (MiqtVirtualQTcpServer*)(self) )->virtualbase_nextPendingConnection();
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_override_virtual_incomingConnection(void* self, intptr_t slot) {
MiqtVirtualQTcpServer* self_cast = dynamic_cast<MiqtVirtualQTcpServer*>( (QTcpServer*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__incomingConnection = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QTcpServer_virtualbase_incomingConnection(void* self, intptr_t handle) {
( (MiqtVirtualQTcpServer*)(self) )->virtualbase_incomingConnection(handle);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_override_virtual_event(void* self, intptr_t slot) {
MiqtVirtualQTcpServer* self_cast = dynamic_cast<MiqtVirtualQTcpServer*>( (QTcpServer*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__event = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_virtualbase_event(void* self, QEvent* event) {
return ( (MiqtVirtualQTcpServer*)(self) )->virtualbase_event(event);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_override_virtual_eventFilter(void* self, intptr_t slot) {
MiqtVirtualQTcpServer* self_cast = dynamic_cast<MiqtVirtualQTcpServer*>( (QTcpServer*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__eventFilter = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_virtualbase_eventFilter(void* self, QObject* watched, QEvent* event) {
return ( (MiqtVirtualQTcpServer*)(self) )->virtualbase_eventFilter(watched, event);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_override_virtual_timerEvent(void* self, intptr_t slot) {
MiqtVirtualQTcpServer* self_cast = dynamic_cast<MiqtVirtualQTcpServer*>( (QTcpServer*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__timerEvent = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QTcpServer_virtualbase_timerEvent(void* self, QTimerEvent* event) {
( (MiqtVirtualQTcpServer*)(self) )->virtualbase_timerEvent(event);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_override_virtual_childEvent(void* self, intptr_t slot) {
MiqtVirtualQTcpServer* self_cast = dynamic_cast<MiqtVirtualQTcpServer*>( (QTcpServer*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__childEvent = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QTcpServer_virtualbase_childEvent(void* self, QChildEvent* event) {
( (MiqtVirtualQTcpServer*)(self) )->virtualbase_childEvent(event);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_override_virtual_customEvent(void* self, intptr_t slot) {
MiqtVirtualQTcpServer* self_cast = dynamic_cast<MiqtVirtualQTcpServer*>( (QTcpServer*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__customEvent = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QTcpServer_virtualbase_customEvent(void* self, QEvent* event) {
( (MiqtVirtualQTcpServer*)(self) )->virtualbase_customEvent(event);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_override_virtual_connectNotify(void* self, intptr_t slot) {
MiqtVirtualQTcpServer* self_cast = dynamic_cast<MiqtVirtualQTcpServer*>( (QTcpServer*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__connectNotify = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QTcpServer_virtualbase_connectNotify(void* self, QMetaMethod* signal) {
( (MiqtVirtualQTcpServer*)(self) )->virtualbase_connectNotify(signal);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QTcpServer_override_virtual_disconnectNotify(void* self, intptr_t slot) {
MiqtVirtualQTcpServer* self_cast = dynamic_cast<MiqtVirtualQTcpServer*>( (QTcpServer*)(self) );
if (self_cast == nullptr) {
return false;
}
2025-02-01 13:45:16 +13:00
self_cast->handle__disconnectNotify = slot;
return true;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QTcpServer_virtualbase_disconnectNotify(void* self, QMetaMethod* signal) {
( (MiqtVirtualQTcpServer*)(self) )->virtualbase_disconnectNotify(signal);
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QTcpServer_delete(QTcpServer* self) {
delete self;
2024-11-04 22:53:04 +13:00
}