miqt/qt6/network/gen_qabstractsocket.h

164 lines
9.8 KiB
C
Raw Normal View History

#pragma once
#ifndef MIQT_QT6_NETWORK_GEN_QABSTRACTSOCKET_H
#define MIQT_QT6_NETWORK_GEN_QABSTRACTSOCKET_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
class QAbstractSocket;
class QAuthenticator;
class QHostAddress;
2024-11-19 06:29:06 +00:00
class QIODevice;
class QIODeviceBase;
2024-11-04 09:53:04 +00:00
class QMetaObject;
class QNetworkProxy;
class QObject;
class QVariant;
#else
typedef struct QAbstractSocket QAbstractSocket;
typedef struct QAuthenticator QAuthenticator;
typedef struct QHostAddress QHostAddress;
2024-11-19 06:29:06 +00:00
typedef struct QIODevice QIODevice;
typedef struct QIODeviceBase QIODeviceBase;
2024-11-04 09:53:04 +00:00
typedef struct QMetaObject QMetaObject;
typedef struct QNetworkProxy QNetworkProxy;
typedef struct QObject QObject;
typedef struct QVariant QVariant;
#endif
2024-11-19 06:29:06 +00:00
void QAbstractSocket_new(int socketType, QObject* parent, QAbstractSocket** outptr_QAbstractSocket, QIODevice** outptr_QIODevice, QObject** outptr_QObject, QIODeviceBase** outptr_QIODeviceBase);
2024-11-04 09:53:04 +00:00
QMetaObject* QAbstractSocket_MetaObject(const QAbstractSocket* self);
void* QAbstractSocket_Metacast(QAbstractSocket* self, const char* param1);
struct miqt_string QAbstractSocket_Tr(const char* s);
void QAbstractSocket_Resume(QAbstractSocket* self);
int QAbstractSocket_PauseMode(const QAbstractSocket* self);
void QAbstractSocket_SetPauseMode(QAbstractSocket* self, int pauseMode);
2024-11-19 06:29:06 +00:00
bool QAbstractSocket_Bind(QAbstractSocket* self, QHostAddress* address, uint16_t port, int mode);
2024-11-04 09:53:04 +00:00
bool QAbstractSocket_Bind2(QAbstractSocket* self);
2024-11-19 06:29:06 +00:00
void QAbstractSocket_ConnectToHost(QAbstractSocket* self, struct miqt_string hostName, uint16_t port, int mode, int protocol);
2024-11-04 09:53:04 +00:00
void QAbstractSocket_ConnectToHost2(QAbstractSocket* self, QHostAddress* address, uint16_t port);
void QAbstractSocket_DisconnectFromHost(QAbstractSocket* self);
bool QAbstractSocket_IsValid(const QAbstractSocket* self);
long long QAbstractSocket_BytesAvailable(const QAbstractSocket* self);
long long QAbstractSocket_BytesToWrite(const QAbstractSocket* self);
uint16_t QAbstractSocket_LocalPort(const QAbstractSocket* self);
QHostAddress* QAbstractSocket_LocalAddress(const QAbstractSocket* self);
uint16_t QAbstractSocket_PeerPort(const QAbstractSocket* self);
QHostAddress* QAbstractSocket_PeerAddress(const QAbstractSocket* self);
struct miqt_string QAbstractSocket_PeerName(const QAbstractSocket* self);
long long QAbstractSocket_ReadBufferSize(const QAbstractSocket* self);
void QAbstractSocket_SetReadBufferSize(QAbstractSocket* self, long long size);
void QAbstractSocket_Abort(QAbstractSocket* self);
intptr_t QAbstractSocket_SocketDescriptor(const QAbstractSocket* self);
2024-11-19 06:29:06 +00:00
bool QAbstractSocket_SetSocketDescriptor(QAbstractSocket* self, intptr_t socketDescriptor, int state, int openMode);
2024-11-04 09:53:04 +00:00
void QAbstractSocket_SetSocketOption(QAbstractSocket* self, int option, QVariant* value);
QVariant* QAbstractSocket_SocketOption(QAbstractSocket* self, int option);
int QAbstractSocket_SocketType(const QAbstractSocket* self);
int QAbstractSocket_State(const QAbstractSocket* self);
int QAbstractSocket_Error(const QAbstractSocket* self);
void QAbstractSocket_Close(QAbstractSocket* self);
bool QAbstractSocket_IsSequential(const QAbstractSocket* self);
bool QAbstractSocket_Flush(QAbstractSocket* self);
2024-11-19 06:29:06 +00:00
bool QAbstractSocket_WaitForConnected(QAbstractSocket* self, int msecs);
bool QAbstractSocket_WaitForReadyRead(QAbstractSocket* self, int msecs);
bool QAbstractSocket_WaitForBytesWritten(QAbstractSocket* self, int msecs);
bool QAbstractSocket_WaitForDisconnected(QAbstractSocket* self, int msecs);
2024-11-04 09:53:04 +00:00
void QAbstractSocket_SetProxy(QAbstractSocket* self, QNetworkProxy* networkProxy);
QNetworkProxy* QAbstractSocket_Proxy(const QAbstractSocket* self);
struct miqt_string QAbstractSocket_ProtocolTag(const QAbstractSocket* self);
void QAbstractSocket_SetProtocolTag(QAbstractSocket* self, struct miqt_string tag);
void QAbstractSocket_HostFound(QAbstractSocket* self);
void QAbstractSocket_connect_HostFound(QAbstractSocket* self, intptr_t slot);
void QAbstractSocket_Connected(QAbstractSocket* self);
void QAbstractSocket_connect_Connected(QAbstractSocket* self, intptr_t slot);
void QAbstractSocket_Disconnected(QAbstractSocket* self);
void QAbstractSocket_connect_Disconnected(QAbstractSocket* self, intptr_t slot);
void QAbstractSocket_StateChanged(QAbstractSocket* self, int param1);
void QAbstractSocket_connect_StateChanged(QAbstractSocket* self, intptr_t slot);
void QAbstractSocket_ErrorOccurred(QAbstractSocket* self, int param1);
void QAbstractSocket_connect_ErrorOccurred(QAbstractSocket* self, intptr_t slot);
void QAbstractSocket_ProxyAuthenticationRequired(QAbstractSocket* self, QNetworkProxy* proxy, QAuthenticator* authenticator);
void QAbstractSocket_connect_ProxyAuthenticationRequired(QAbstractSocket* self, intptr_t slot);
2024-11-19 06:29:06 +00:00
long long QAbstractSocket_ReadData(QAbstractSocket* self, char* data, long long maxlen);
long long QAbstractSocket_ReadLineData(QAbstractSocket* self, char* data, long long maxlen);
long long QAbstractSocket_SkipData(QAbstractSocket* self, long long maxSize);
long long QAbstractSocket_WriteData(QAbstractSocket* self, const char* data, long long lenVal);
2024-11-04 09:53:04 +00:00
struct miqt_string QAbstractSocket_Tr2(const char* s, const char* c);
struct miqt_string QAbstractSocket_Tr3(const char* s, const char* c, int n);
bool QAbstractSocket_Bind1(QAbstractSocket* self, uint16_t port);
2024-11-19 06:29:06 +00:00
bool QAbstractSocket_Bind22(QAbstractSocket* self, uint16_t port, int mode);
void QAbstractSocket_ConnectToHost3(QAbstractSocket* self, QHostAddress* address, uint16_t port, int mode);
void QAbstractSocket_override_virtual_Resume(void* self, intptr_t slot);
void QAbstractSocket_virtualbase_Resume(void* self);
void QAbstractSocket_override_virtual_Bind(void* self, intptr_t slot);
bool QAbstractSocket_virtualbase_Bind(void* self, QHostAddress* address, uint16_t port, int mode);
void QAbstractSocket_override_virtual_ConnectToHost(void* self, intptr_t slot);
void QAbstractSocket_virtualbase_ConnectToHost(void* self, struct miqt_string hostName, uint16_t port, int mode, int protocol);
void QAbstractSocket_override_virtual_DisconnectFromHost(void* self, intptr_t slot);
void QAbstractSocket_virtualbase_DisconnectFromHost(void* self);
void QAbstractSocket_override_virtual_BytesAvailable(void* self, intptr_t slot);
long long QAbstractSocket_virtualbase_BytesAvailable(const void* self);
void QAbstractSocket_override_virtual_BytesToWrite(void* self, intptr_t slot);
long long QAbstractSocket_virtualbase_BytesToWrite(const void* self);
void QAbstractSocket_override_virtual_SetReadBufferSize(void* self, intptr_t slot);
void QAbstractSocket_virtualbase_SetReadBufferSize(void* self, long long size);
void QAbstractSocket_override_virtual_SocketDescriptor(void* self, intptr_t slot);
intptr_t QAbstractSocket_virtualbase_SocketDescriptor(const void* self);
void QAbstractSocket_override_virtual_SetSocketDescriptor(void* self, intptr_t slot);
bool QAbstractSocket_virtualbase_SetSocketDescriptor(void* self, intptr_t socketDescriptor, int state, int openMode);
void QAbstractSocket_override_virtual_SetSocketOption(void* self, intptr_t slot);
void QAbstractSocket_virtualbase_SetSocketOption(void* self, int option, QVariant* value);
void QAbstractSocket_override_virtual_SocketOption(void* self, intptr_t slot);
QVariant* QAbstractSocket_virtualbase_SocketOption(void* self, int option);
void QAbstractSocket_override_virtual_Close(void* self, intptr_t slot);
void QAbstractSocket_virtualbase_Close(void* self);
void QAbstractSocket_override_virtual_IsSequential(void* self, intptr_t slot);
bool QAbstractSocket_virtualbase_IsSequential(const void* self);
void QAbstractSocket_override_virtual_WaitForConnected(void* self, intptr_t slot);
bool QAbstractSocket_virtualbase_WaitForConnected(void* self, int msecs);
void QAbstractSocket_override_virtual_WaitForReadyRead(void* self, intptr_t slot);
bool QAbstractSocket_virtualbase_WaitForReadyRead(void* self, int msecs);
void QAbstractSocket_override_virtual_WaitForBytesWritten(void* self, intptr_t slot);
bool QAbstractSocket_virtualbase_WaitForBytesWritten(void* self, int msecs);
void QAbstractSocket_override_virtual_WaitForDisconnected(void* self, intptr_t slot);
bool QAbstractSocket_virtualbase_WaitForDisconnected(void* self, int msecs);
void QAbstractSocket_override_virtual_ReadData(void* self, intptr_t slot);
long long QAbstractSocket_virtualbase_ReadData(void* self, char* data, long long maxlen);
void QAbstractSocket_override_virtual_ReadLineData(void* self, intptr_t slot);
long long QAbstractSocket_virtualbase_ReadLineData(void* self, char* data, long long maxlen);
void QAbstractSocket_override_virtual_SkipData(void* self, intptr_t slot);
long long QAbstractSocket_virtualbase_SkipData(void* self, long long maxSize);
void QAbstractSocket_override_virtual_WriteData(void* self, intptr_t slot);
long long QAbstractSocket_virtualbase_WriteData(void* self, const char* data, long long lenVal);
void QAbstractSocket_override_virtual_Open(void* self, intptr_t slot);
bool QAbstractSocket_virtualbase_Open(void* self, int mode);
void QAbstractSocket_override_virtual_Pos(void* self, intptr_t slot);
long long QAbstractSocket_virtualbase_Pos(const void* self);
void QAbstractSocket_override_virtual_Size(void* self, intptr_t slot);
long long QAbstractSocket_virtualbase_Size(const void* self);
void QAbstractSocket_override_virtual_Seek(void* self, intptr_t slot);
bool QAbstractSocket_virtualbase_Seek(void* self, long long pos);
void QAbstractSocket_override_virtual_AtEnd(void* self, intptr_t slot);
bool QAbstractSocket_virtualbase_AtEnd(const void* self);
void QAbstractSocket_override_virtual_Reset(void* self, intptr_t slot);
bool QAbstractSocket_virtualbase_Reset(void* self);
void QAbstractSocket_override_virtual_CanReadLine(void* self, intptr_t slot);
bool QAbstractSocket_virtualbase_CanReadLine(const void* self);
void QAbstractSocket_Delete(QAbstractSocket* self, bool isSubclass);
2024-11-04 09:53:04 +00:00
#ifdef __cplusplus
} /* extern C */
#endif
#endif