miqt/qt6/network/gen_qdtls.h

151 lines
8.3 KiB
C
Raw Normal View History

#pragma once
#ifndef MIQT_QT6_NETWORK_GEN_QDTLS_H
#define MIQT_QT6_NETWORK_GEN_QDTLS_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;
2024-11-04 09:53:04 +00:00
class QDtls;
class QDtlsClientVerifier;
#if defined(WORKAROUND_INNER_CLASS_DEFINITION_QDtlsClientVerifier__GeneratorParameters)
typedef QDtlsClientVerifier::GeneratorParameters QDtlsClientVerifier__GeneratorParameters;
#else
class QDtlsClientVerifier__GeneratorParameters;
#endif
2024-11-19 06:29:06 +00:00
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 QObject;
class QSslCipher;
class QSslConfiguration;
class QSslError;
class QSslPreSharedKeyAuthenticator;
2024-11-19 06:29:06 +00:00
class QTimerEvent;
2024-11-04 09:53:04 +00:00
class QUdpSocket;
#else
2024-11-19 06:29:06 +00:00
typedef struct QChildEvent QChildEvent;
2024-11-04 09:53:04 +00:00
typedef struct QDtls QDtls;
typedef struct QDtlsClientVerifier QDtlsClientVerifier;
typedef struct QDtlsClientVerifier__GeneratorParameters QDtlsClientVerifier__GeneratorParameters;
2024-11-19 06:29:06 +00:00
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 QObject QObject;
typedef struct QSslCipher QSslCipher;
typedef struct QSslConfiguration QSslConfiguration;
typedef struct QSslError QSslError;
typedef struct QSslPreSharedKeyAuthenticator QSslPreSharedKeyAuthenticator;
2024-11-19 06:29:06 +00:00
typedef struct QTimerEvent QTimerEvent;
2024-11-04 09:53:04 +00:00
typedef struct QUdpSocket QUdpSocket;
#endif
2024-11-19 06:29:06 +00:00
void QDtlsClientVerifier_new(QDtlsClientVerifier** outptr_QDtlsClientVerifier, QObject** outptr_QObject);
void QDtlsClientVerifier_new2(QObject* parent, QDtlsClientVerifier** outptr_QDtlsClientVerifier, QObject** outptr_QObject);
2024-11-04 09:53:04 +00:00
QMetaObject* QDtlsClientVerifier_MetaObject(const QDtlsClientVerifier* self);
void* QDtlsClientVerifier_Metacast(QDtlsClientVerifier* self, const char* param1);
struct miqt_string QDtlsClientVerifier_Tr(const char* s);
bool QDtlsClientVerifier_SetCookieGeneratorParameters(QDtlsClientVerifier* self, QDtlsClientVerifier__GeneratorParameters* params);
QDtlsClientVerifier__GeneratorParameters* QDtlsClientVerifier_CookieGeneratorParameters(const QDtlsClientVerifier* self);
bool QDtlsClientVerifier_VerifyClient(QDtlsClientVerifier* self, QUdpSocket* socket, struct miqt_string dgram, QHostAddress* address, uint16_t port);
struct miqt_string QDtlsClientVerifier_VerifiedHello(const QDtlsClientVerifier* self);
unsigned char QDtlsClientVerifier_DtlsError(const QDtlsClientVerifier* self);
struct miqt_string QDtlsClientVerifier_DtlsErrorString(const QDtlsClientVerifier* self);
struct miqt_string QDtlsClientVerifier_Tr2(const char* s, const char* c);
struct miqt_string QDtlsClientVerifier_Tr3(const char* s, const char* c, int n);
2024-11-19 06:29:06 +00:00
void QDtlsClientVerifier_override_virtual_Event(void* self, intptr_t slot);
bool QDtlsClientVerifier_virtualbase_Event(void* self, QEvent* event);
void QDtlsClientVerifier_override_virtual_EventFilter(void* self, intptr_t slot);
bool QDtlsClientVerifier_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event);
void QDtlsClientVerifier_override_virtual_TimerEvent(void* self, intptr_t slot);
void QDtlsClientVerifier_virtualbase_TimerEvent(void* self, QTimerEvent* event);
void QDtlsClientVerifier_override_virtual_ChildEvent(void* self, intptr_t slot);
void QDtlsClientVerifier_virtualbase_ChildEvent(void* self, QChildEvent* event);
void QDtlsClientVerifier_override_virtual_CustomEvent(void* self, intptr_t slot);
void QDtlsClientVerifier_virtualbase_CustomEvent(void* self, QEvent* event);
void QDtlsClientVerifier_override_virtual_ConnectNotify(void* self, intptr_t slot);
void QDtlsClientVerifier_virtualbase_ConnectNotify(void* self, QMetaMethod* signal);
void QDtlsClientVerifier_override_virtual_DisconnectNotify(void* self, intptr_t slot);
void QDtlsClientVerifier_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal);
void QDtlsClientVerifier_Delete(QDtlsClientVerifier* self, bool isSubclass);
2024-11-04 09:53:04 +00:00
2024-11-19 06:29:06 +00:00
void QDtls_new(int mode, QDtls** outptr_QDtls, QObject** outptr_QObject);
void QDtls_new2(int mode, QObject* parent, QDtls** outptr_QDtls, QObject** outptr_QObject);
2024-11-04 09:53:04 +00:00
QMetaObject* QDtls_MetaObject(const QDtls* self);
void* QDtls_Metacast(QDtls* self, const char* param1);
struct miqt_string QDtls_Tr(const char* s);
bool QDtls_SetPeer(QDtls* self, QHostAddress* address, uint16_t port);
bool QDtls_SetPeerVerificationName(QDtls* self, struct miqt_string name);
QHostAddress* QDtls_PeerAddress(const QDtls* self);
uint16_t QDtls_PeerPort(const QDtls* self);
struct miqt_string QDtls_PeerVerificationName(const QDtls* self);
int QDtls_SslMode(const QDtls* self);
void QDtls_SetMtuHint(QDtls* self, uint16_t mtuHint);
uint16_t QDtls_MtuHint(const QDtls* self);
bool QDtls_SetCookieGeneratorParameters(QDtls* self, QDtlsClientVerifier__GeneratorParameters* params);
QDtlsClientVerifier__GeneratorParameters* QDtls_CookieGeneratorParameters(const QDtls* self);
bool QDtls_SetDtlsConfiguration(QDtls* self, QSslConfiguration* configuration);
QSslConfiguration* QDtls_DtlsConfiguration(const QDtls* self);
int QDtls_HandshakeState(const QDtls* self);
bool QDtls_DoHandshake(QDtls* self, QUdpSocket* socket);
bool QDtls_HandleTimeout(QDtls* self, QUdpSocket* socket);
bool QDtls_ResumeHandshake(QDtls* self, QUdpSocket* socket);
bool QDtls_AbortHandshake(QDtls* self, QUdpSocket* socket);
bool QDtls_Shutdown(QDtls* self, QUdpSocket* socket);
bool QDtls_IsConnectionEncrypted(const QDtls* self);
QSslCipher* QDtls_SessionCipher(const QDtls* self);
int QDtls_SessionProtocol(const QDtls* self);
long long QDtls_WriteDatagramEncrypted(QDtls* self, QUdpSocket* socket, struct miqt_string dgram);
struct miqt_string QDtls_DecryptDatagram(QDtls* self, QUdpSocket* socket, struct miqt_string dgram);
unsigned char QDtls_DtlsError(const QDtls* self);
struct miqt_string QDtls_DtlsErrorString(const QDtls* self);
struct miqt_array /* of QSslError* */ QDtls_PeerVerificationErrors(const QDtls* self);
void QDtls_IgnoreVerificationErrors(QDtls* self, struct miqt_array /* of QSslError* */ errorsToIgnore);
2024-11-04 09:53:04 +00:00
void QDtls_PskRequired(QDtls* self, QSslPreSharedKeyAuthenticator* authenticator);
void QDtls_connect_PskRequired(QDtls* self, intptr_t slot);
void QDtls_HandshakeTimeout(QDtls* self);
void QDtls_connect_HandshakeTimeout(QDtls* self, intptr_t slot);
struct miqt_string QDtls_Tr2(const char* s, const char* c);
struct miqt_string QDtls_Tr3(const char* s, const char* c, int n);
bool QDtls_SetPeer3(QDtls* self, QHostAddress* address, uint16_t port, struct miqt_string verificationName);
bool QDtls_DoHandshake2(QDtls* self, QUdpSocket* socket, struct miqt_string dgram);
2024-11-19 06:29:06 +00:00
void QDtls_override_virtual_Event(void* self, intptr_t slot);
bool QDtls_virtualbase_Event(void* self, QEvent* event);
void QDtls_override_virtual_EventFilter(void* self, intptr_t slot);
bool QDtls_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event);
void QDtls_override_virtual_TimerEvent(void* self, intptr_t slot);
void QDtls_virtualbase_TimerEvent(void* self, QTimerEvent* event);
void QDtls_override_virtual_ChildEvent(void* self, intptr_t slot);
void QDtls_virtualbase_ChildEvent(void* self, QChildEvent* event);
void QDtls_override_virtual_CustomEvent(void* self, intptr_t slot);
void QDtls_virtualbase_CustomEvent(void* self, QEvent* event);
void QDtls_override_virtual_ConnectNotify(void* self, intptr_t slot);
void QDtls_virtualbase_ConnectNotify(void* self, QMetaMethod* signal);
void QDtls_override_virtual_DisconnectNotify(void* self, intptr_t slot);
void QDtls_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal);
void QDtls_Delete(QDtls* self, bool isSubclass);
2024-11-04 09:53:04 +00:00
2024-11-19 06:29:06 +00:00
void QDtlsClientVerifier__GeneratorParameters_new(QDtlsClientVerifier__GeneratorParameters** outptr_QDtlsClientVerifier__GeneratorParameters);
void QDtlsClientVerifier__GeneratorParameters_new2(int a, struct miqt_string s, QDtlsClientVerifier__GeneratorParameters** outptr_QDtlsClientVerifier__GeneratorParameters);
void QDtlsClientVerifier__GeneratorParameters_new3(QDtlsClientVerifier__GeneratorParameters* param1, QDtlsClientVerifier__GeneratorParameters** outptr_QDtlsClientVerifier__GeneratorParameters);
2024-11-04 09:53:04 +00:00
void QDtlsClientVerifier__GeneratorParameters_OperatorAssign(QDtlsClientVerifier__GeneratorParameters* self, QDtlsClientVerifier__GeneratorParameters* param1);
2024-11-19 06:29:06 +00:00
void QDtlsClientVerifier__GeneratorParameters_Delete(QDtlsClientVerifier__GeneratorParameters* self, bool isSubclass);
2024-11-04 09:53:04 +00:00
#ifdef __cplusplus
} /* extern C */
#endif
#endif