miqt/qt6/network/gen_qtcpserver.h

104 lines
4.7 KiB
C
Raw Normal View History

#pragma once
#ifndef MIQT_QT6_NETWORK_GEN_QTCPSERVER_H
#define MIQT_QT6_NETWORK_GEN_QTCPSERVER_H
2024-11-04 09:53:04 +00:00
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "../../libmiqt/libmiqt.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
2024-11-19 06:29:06 +00:00
class QChildEvent;
class QEvent;
2024-11-04 09:53:04 +00:00
class QHostAddress;
2024-11-19 06:29:06 +00:00
class QMetaMethod;
2024-11-04 09:53:04 +00:00
class QMetaObject;
class QNetworkProxy;
class QObject;
class QTcpServer;
class QTcpSocket;
2024-11-19 06:29:06 +00:00
class QTimerEvent;
2024-11-04 09:53:04 +00:00
#else
2024-11-19 06:29:06 +00:00
typedef struct QChildEvent QChildEvent;
typedef struct QEvent QEvent;
2024-11-04 09:53:04 +00:00
typedef struct QHostAddress QHostAddress;
2024-11-19 06:29:06 +00:00
typedef struct QMetaMethod QMetaMethod;
2024-11-04 09:53:04 +00:00
typedef struct QMetaObject QMetaObject;
typedef struct QNetworkProxy QNetworkProxy;
typedef struct QObject QObject;
typedef struct QTcpServer QTcpServer;
typedef struct QTcpSocket QTcpSocket;
2024-11-19 06:29:06 +00:00
typedef struct QTimerEvent QTimerEvent;
2024-11-04 09:53:04 +00:00
#endif
2024-11-19 06:29:06 +00:00
void QTcpServer_new(QTcpServer** outptr_QTcpServer, QObject** outptr_QObject);
void QTcpServer_new2(QObject* parent, QTcpServer** outptr_QTcpServer, QObject** outptr_QObject);
2024-11-04 09:53:04 +00:00
QMetaObject* QTcpServer_MetaObject(const QTcpServer* self);
void* QTcpServer_Metacast(QTcpServer* self, const char* param1);
struct miqt_string QTcpServer_Tr(const char* s);
bool QTcpServer_Listen(QTcpServer* self);
void QTcpServer_Close(QTcpServer* self);
bool QTcpServer_IsListening(const QTcpServer* self);
void QTcpServer_SetMaxPendingConnections(QTcpServer* self, int numConnections);
int QTcpServer_MaxPendingConnections(const QTcpServer* self);
void QTcpServer_SetListenBacklogSize(QTcpServer* self, int size);
int QTcpServer_ListenBacklogSize(const QTcpServer* self);
uint16_t QTcpServer_ServerPort(const QTcpServer* self);
QHostAddress* QTcpServer_ServerAddress(const QTcpServer* self);
intptr_t QTcpServer_SocketDescriptor(const QTcpServer* self);
bool QTcpServer_SetSocketDescriptor(QTcpServer* self, intptr_t socketDescriptor);
bool QTcpServer_WaitForNewConnection(QTcpServer* self);
bool QTcpServer_HasPendingConnections(const QTcpServer* self);
QTcpSocket* QTcpServer_NextPendingConnection(QTcpServer* self);
int QTcpServer_ServerError(const QTcpServer* self);
struct miqt_string QTcpServer_ErrorString(const QTcpServer* self);
void QTcpServer_PauseAccepting(QTcpServer* self);
void QTcpServer_ResumeAccepting(QTcpServer* self);
void QTcpServer_SetProxy(QTcpServer* self, QNetworkProxy* networkProxy);
QNetworkProxy* QTcpServer_Proxy(const QTcpServer* self);
2024-11-19 06:29:06 +00:00
void QTcpServer_IncomingConnection(QTcpServer* self, intptr_t handle);
2024-11-04 09:53:04 +00:00
void QTcpServer_NewConnection(QTcpServer* self);
void QTcpServer_connect_NewConnection(QTcpServer* self, intptr_t slot);
void QTcpServer_AcceptError(QTcpServer* self, int socketError);
void QTcpServer_connect_AcceptError(QTcpServer* self, intptr_t slot);
struct miqt_string QTcpServer_Tr2(const char* s, const char* c);
struct miqt_string QTcpServer_Tr3(const char* s, const char* c, int n);
bool QTcpServer_Listen1(QTcpServer* self, QHostAddress* address);
bool QTcpServer_Listen2(QTcpServer* self, QHostAddress* address, uint16_t port);
bool QTcpServer_WaitForNewConnection1(QTcpServer* self, int msec);
bool QTcpServer_WaitForNewConnection2(QTcpServer* self, int msec, bool* timedOut);
2024-11-19 06:29:06 +00:00
void QTcpServer_override_virtual_HasPendingConnections(void* self, intptr_t slot);
bool QTcpServer_virtualbase_HasPendingConnections(const void* self);
void QTcpServer_override_virtual_NextPendingConnection(void* self, intptr_t slot);
QTcpSocket* QTcpServer_virtualbase_NextPendingConnection(void* self);
void QTcpServer_override_virtual_IncomingConnection(void* self, intptr_t slot);
void QTcpServer_virtualbase_IncomingConnection(void* self, intptr_t handle);
void QTcpServer_override_virtual_Event(void* self, intptr_t slot);
bool QTcpServer_virtualbase_Event(void* self, QEvent* event);
void QTcpServer_override_virtual_EventFilter(void* self, intptr_t slot);
bool QTcpServer_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event);
void QTcpServer_override_virtual_TimerEvent(void* self, intptr_t slot);
void QTcpServer_virtualbase_TimerEvent(void* self, QTimerEvent* event);
void QTcpServer_override_virtual_ChildEvent(void* self, intptr_t slot);
void QTcpServer_virtualbase_ChildEvent(void* self, QChildEvent* event);
void QTcpServer_override_virtual_CustomEvent(void* self, intptr_t slot);
void QTcpServer_virtualbase_CustomEvent(void* self, QEvent* event);
void QTcpServer_override_virtual_ConnectNotify(void* self, intptr_t slot);
void QTcpServer_virtualbase_ConnectNotify(void* self, QMetaMethod* signal);
void QTcpServer_override_virtual_DisconnectNotify(void* self, intptr_t slot);
void QTcpServer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal);
void QTcpServer_Delete(QTcpServer* self, bool isSubclass);
2024-11-04 09:53:04 +00:00
#ifdef __cplusplus
} /* extern C */
#endif
#endif