4#ifndef QNETWORKINTERFACE_H
5#define QNETWORKINTERFACE_H
7#include <QtNetwork/qtnetworkglobal.h>
8#include <QtCore/qshareddata.h>
9#include <QtCore/qscopedpointer.h>
10#include <QtNetwork/qhostaddress.h>
14#ifndef QT_NO_NETWORKINTERFACE
25 DnsEligibilityUnknown = -1,
40 {
return !(*
this ==
other); }
42 DnsEligibilityStatus dnsEligibility()
const;
43 void setDnsEligibility(DnsEligibilityStatus status);
50 int prefixLength()
const;
51 void setPrefixLength(
int length);
56 bool isLifetimeKnown()
const;
60 void clearAddressLifetime();
61 bool isPermanent()
const;
66 std::unique_ptr<QNetworkAddressEntryPrivate>
d;
81 IsPointToPoint = 0x10,
115 bool isValid()
const;
118 int maximumTransmissionUnit()
const;
120 QString humanReadableName()
const;
121 InterfaceFlags
flags()
const;
122 InterfaceType
type()
const;
123 QString hardwareAddress()
const;
126 static int interfaceIndexFromName(
const QString &
name);
142#ifndef QT_NO_DEBUG_STREAM
The QHostAddress class provides an IP address.
The QNetworkAddressEntry class stores one IP address supported by a network interface,...
bool operator!=(const QNetworkAddressEntry &other) const
Returns true if this network address entry is different from other.
void swap(QNetworkAddressEntry &other) noexcept
QNetworkAddressEntry & operator=(QNetworkAddressEntry &&other) noexcept
The QNetworkInterface class provides a listing of the host's IP addresses and network interfaces.
QNetworkInterface & operator=(QNetworkInterface &&other) noexcept
void swap(QNetworkInterface &other) noexcept
InterfaceFlag
Specifies the flags associated with this network interface.
InterfaceType
Specifies the type of hardware (PHY layer, OSI level 1) this interface is, if it could be determined.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QNetworkAddressEntry &entry)
GLenum GLuint GLenum GLsizei length
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
QT_BEGIN_NAMESPACE typedef signed char qint8