miqt/qt/network/gen_qhostinfo.h

51 lines
1.6 KiB
C
Raw Normal View History

#pragma once
#ifndef MIQT_QT_NETWORK_GEN_QHOSTINFO_H
#define MIQT_QT_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
QHostInfo* QHostInfo_new();
QHostInfo* QHostInfo_new2(QHostInfo* d);
QHostInfo* QHostInfo_new3(int lookupId);
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);
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();
void QHostInfo_Delete(QHostInfo* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif