2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT6_NETWORK_GEN_QNETWORKINTERFACE_H
|
|
|
|
#define MIQT_QT6_NETWORK_GEN_QNETWORKINTERFACE_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 QDeadlineTimer;
|
|
|
|
class QHostAddress;
|
|
|
|
class QNetworkAddressEntry;
|
|
|
|
class QNetworkInterface;
|
|
|
|
#else
|
|
|
|
typedef struct QDeadlineTimer QDeadlineTimer;
|
|
|
|
typedef struct QHostAddress QHostAddress;
|
|
|
|
typedef struct QNetworkAddressEntry QNetworkAddressEntry;
|
|
|
|
typedef struct QNetworkInterface QNetworkInterface;
|
|
|
|
#endif
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QNetworkAddressEntry_new(QNetworkAddressEntry** outptr_QNetworkAddressEntry);
|
|
|
|
void QNetworkAddressEntry_new2(QNetworkAddressEntry* other, QNetworkAddressEntry** outptr_QNetworkAddressEntry);
|
2024-11-04 09:53:04 +00:00
|
|
|
void QNetworkAddressEntry_OperatorAssign(QNetworkAddressEntry* self, QNetworkAddressEntry* other);
|
|
|
|
void QNetworkAddressEntry_Swap(QNetworkAddressEntry* self, QNetworkAddressEntry* other);
|
|
|
|
bool QNetworkAddressEntry_OperatorEqual(const QNetworkAddressEntry* self, QNetworkAddressEntry* other);
|
|
|
|
bool QNetworkAddressEntry_OperatorNotEqual(const QNetworkAddressEntry* self, QNetworkAddressEntry* other);
|
|
|
|
int8_t QNetworkAddressEntry_DnsEligibility(const QNetworkAddressEntry* self);
|
|
|
|
void QNetworkAddressEntry_SetDnsEligibility(QNetworkAddressEntry* self, int8_t status);
|
|
|
|
QHostAddress* QNetworkAddressEntry_Ip(const QNetworkAddressEntry* self);
|
|
|
|
void QNetworkAddressEntry_SetIp(QNetworkAddressEntry* self, QHostAddress* newIp);
|
|
|
|
QHostAddress* QNetworkAddressEntry_Netmask(const QNetworkAddressEntry* self);
|
|
|
|
void QNetworkAddressEntry_SetNetmask(QNetworkAddressEntry* self, QHostAddress* newNetmask);
|
|
|
|
int QNetworkAddressEntry_PrefixLength(const QNetworkAddressEntry* self);
|
|
|
|
void QNetworkAddressEntry_SetPrefixLength(QNetworkAddressEntry* self, int length);
|
|
|
|
QHostAddress* QNetworkAddressEntry_Broadcast(const QNetworkAddressEntry* self);
|
|
|
|
void QNetworkAddressEntry_SetBroadcast(QNetworkAddressEntry* self, QHostAddress* newBroadcast);
|
|
|
|
bool QNetworkAddressEntry_IsLifetimeKnown(const QNetworkAddressEntry* self);
|
|
|
|
QDeadlineTimer* QNetworkAddressEntry_PreferredLifetime(const QNetworkAddressEntry* self);
|
|
|
|
QDeadlineTimer* QNetworkAddressEntry_ValidityLifetime(const QNetworkAddressEntry* self);
|
|
|
|
void QNetworkAddressEntry_SetAddressLifetime(QNetworkAddressEntry* self, QDeadlineTimer* preferred, QDeadlineTimer* validity);
|
|
|
|
void QNetworkAddressEntry_ClearAddressLifetime(QNetworkAddressEntry* self);
|
|
|
|
bool QNetworkAddressEntry_IsPermanent(const QNetworkAddressEntry* self);
|
|
|
|
bool QNetworkAddressEntry_IsTemporary(const QNetworkAddressEntry* self);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QNetworkAddressEntry_Delete(QNetworkAddressEntry* self, bool isSubclass);
|
2024-11-04 09:53:04 +00:00
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QNetworkInterface_new(QNetworkInterface** outptr_QNetworkInterface);
|
|
|
|
void QNetworkInterface_new2(QNetworkInterface* other, QNetworkInterface** outptr_QNetworkInterface);
|
2024-11-04 09:53:04 +00:00
|
|
|
void QNetworkInterface_OperatorAssign(QNetworkInterface* self, QNetworkInterface* other);
|
|
|
|
void QNetworkInterface_Swap(QNetworkInterface* self, QNetworkInterface* other);
|
|
|
|
bool QNetworkInterface_IsValid(const QNetworkInterface* self);
|
|
|
|
int QNetworkInterface_Index(const QNetworkInterface* self);
|
|
|
|
int QNetworkInterface_MaximumTransmissionUnit(const QNetworkInterface* self);
|
|
|
|
struct miqt_string QNetworkInterface_Name(const QNetworkInterface* self);
|
|
|
|
struct miqt_string QNetworkInterface_HumanReadableName(const QNetworkInterface* self);
|
|
|
|
int QNetworkInterface_Flags(const QNetworkInterface* self);
|
|
|
|
int QNetworkInterface_Type(const QNetworkInterface* self);
|
|
|
|
struct miqt_string QNetworkInterface_HardwareAddress(const QNetworkInterface* self);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of QNetworkAddressEntry* */ QNetworkInterface_AddressEntries(const QNetworkInterface* self);
|
2024-11-04 09:53:04 +00:00
|
|
|
int QNetworkInterface_InterfaceIndexFromName(struct miqt_string name);
|
|
|
|
QNetworkInterface* QNetworkInterface_InterfaceFromName(struct miqt_string name);
|
|
|
|
QNetworkInterface* QNetworkInterface_InterfaceFromIndex(int index);
|
|
|
|
struct miqt_string QNetworkInterface_InterfaceNameFromIndex(int index);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of QNetworkInterface* */ QNetworkInterface_AllInterfaces();
|
|
|
|
struct miqt_array /* of QHostAddress* */ QNetworkInterface_AllAddresses();
|
2024-11-19 06:29:06 +00:00
|
|
|
void QNetworkInterface_Delete(QNetworkInterface* self, bool isSubclass);
|
2024-11-04 09:53:04 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|