QtNetwork/qnetworkinterface.h Source File
Go to the documentation of this file.
42 #ifndef QNETWORKINTERFACE_H
43 #define QNETWORKINTERFACE_H
49 #ifndef QT_NO_NETWORKINTERFACE
57 template<typename T> class
QList;
59 class QNetworkAddressEntryPrivate;
63 QNetworkAddressEntry();
64 QNetworkAddressEntry(
const QNetworkAddressEntry &other);
65 QNetworkAddressEntry &operator=(
const QNetworkAddressEntry &other);
66 ~QNetworkAddressEntry();
67 bool operator==(
const QNetworkAddressEntry &other)
const;
68 inline bool operator!=(
const QNetworkAddressEntry &other)
const
69 {
return !(*
this == other); }
76 int prefixLength()
const;
77 void setPrefixLength(
int length);
86 class QNetworkInterfacePrivate;
95 IsPointToPoint = 0x10,
98 Q_DECLARE_FLAGS(InterfaceFlags, InterfaceFlag)
101 QNetworkInterface(const QNetworkInterface &other);
102 QNetworkInterface &operator=(const QNetworkInterface &other);
103 ~QNetworkInterface();
105 bool isValid() const;
109 QString humanReadableName() const;
110 InterfaceFlags flags() const;
111 QString hardwareAddress() const;
114 static QNetworkInterface interfaceFromName(const
QString &
name);
115 static QNetworkInterface interfaceFromIndex(
int index);
116 static
QList<QNetworkInterface> allInterfaces();
120 friend class QNetworkInterfacePrivate;
124 Q_DECLARE_OPERATORS_FOR_FLAGS(QNetworkInterface::InterfaceFlags)
126 #ifndef QT_NO_DEBUG_STREAM
134 #endif // QT_NO_NETWORKINTERFACE
Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QNetworkInterface &networkInterface)
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
#define QT_BEGIN_NAMESPACE
GLuint GLsizei GLsizei * length
GLuint const GLchar * name
bool operator!=(const QNetworkAddressEntry &other) const