2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT6_NETWORK_GEN_QHOSTINFO_H
|
|
|
|
#define MIQT_QT6_NETWORK_GEN_QHOSTINFO_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 QHostAddress;
|
|
|
|
class QHostInfo;
|
|
|
|
#else
|
|
|
|
typedef struct QHostAddress QHostAddress;
|
|
|
|
typedef struct QHostInfo QHostInfo;
|
|
|
|
#endif
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QHostInfo* QHostInfo_new();
|
|
|
|
QHostInfo* QHostInfo_new2(QHostInfo* d);
|
|
|
|
QHostInfo* QHostInfo_new3(int lookupId);
|
2024-11-04 09:53:04 +00:00
|
|
|
void QHostInfo_OperatorAssign(QHostInfo* self, QHostInfo* d);
|
|
|
|
void QHostInfo_Swap(QHostInfo* self, QHostInfo* other);
|
|
|
|
struct miqt_string QHostInfo_HostName(const QHostInfo* self);
|
|
|
|
void QHostInfo_SetHostName(QHostInfo* self, struct miqt_string name);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of QHostAddress* */ QHostInfo_Addresses(const QHostInfo* self);
|
|
|
|
void QHostInfo_SetAddresses(QHostInfo* self, struct miqt_array /* of QHostAddress* */ addresses);
|
2024-11-04 09:53:04 +00:00
|
|
|
int QHostInfo_Error(const QHostInfo* self);
|
|
|
|
void QHostInfo_SetError(QHostInfo* self, int error);
|
|
|
|
struct miqt_string QHostInfo_ErrorString(const QHostInfo* self);
|
|
|
|
void QHostInfo_SetErrorString(QHostInfo* self, struct miqt_string errorString);
|
|
|
|
void QHostInfo_SetLookupId(QHostInfo* self, int id);
|
|
|
|
int QHostInfo_LookupId(const QHostInfo* self);
|
|
|
|
void QHostInfo_AbortHostLookup(int lookupId);
|
|
|
|
QHostInfo* QHostInfo_FromName(struct miqt_string name);
|
|
|
|
struct miqt_string QHostInfo_LocalHostName();
|
|
|
|
struct miqt_string QHostInfo_LocalDomainName();
|
2024-11-19 06:29:06 +00:00
|
|
|
void QHostInfo_Delete(QHostInfo* self, bool isSubclass);
|
2024-11-04 09:53:04 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|