java.lang.Object
io.qt.QtObject
io.qt.network.QHostAddress
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
IP address
Java wrapper for Qt's class QHostAddress
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
QFlags type for enumQHostAddress.ConversionModeFlag
static enum
Java wrapper for Qt enum QHostAddress::ConversionModeFlagstatic enum
Java wrapper for Qt enum QHostAddress::SpecialAddressNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQHostAddress
(int ip4Addr) QHostAddress
(QHostAddress copy) QHostAddress
(QHostAddress.SpecialAddress address) QHostAddress
(QIPv6Address ip6Addr) QHostAddress
(String address) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QHostAddress other) final void
assign
(QHostAddress.SpecialAddress address) final void
Deprecated.use = QHostAddress(string) insteadfinal void
clear()
clone()
boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.int
hashCode()
final boolean
final boolean
isEqual
(QHostAddress address) Overloaded function forisEqual(io.qt.network.QHostAddress, io.qt.network.QHostAddress.ConversionMode)
withmode = new io.qt.network.QHostAddress.ConversionMode(255)
.final boolean
isEqual
(QHostAddress address, QHostAddress.ConversionMode mode) final boolean
isEqual
(QHostAddress address, QHostAddress.ConversionModeFlag ... mode) Overloaded function forisEqual(io.qt.network.QHostAddress, io.qt.network.QHostAddress.ConversionMode)
.final boolean
isGlobal()
final boolean
isInSubnet
(QPair<? extends QHostAddress, @QtPrimitiveType Integer> subnet) final boolean
isInSubnet
(QHostAddress subnet, int netmask) final boolean
final boolean
final boolean
final boolean
isNull()
final boolean
final boolean
static QPair<QHostAddress,
@QtPrimitiveType Integer> parseSubnet
(String subnet) protocol()
void
readFrom
(QDataStream arg__1) final String
scopeId()
final void
setAddress
(int ip4Addr) final void
setAddress
(QHostAddress.SpecialAddress address) final void
setAddress
(QIPv6Address ip6Addr) final boolean
setAddress
(String address) final void
setScopeId
(String id) final void
swap
(QHostAddress other) final int
final QIPv6Address
final String
toString()
void
writeTo
(QDataStream arg__1) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QHostAddress
public QHostAddress() -
QHostAddress
-
QHostAddress
-
QHostAddress
-
QHostAddress
-
QHostAddress
public QHostAddress(int ip4Addr) -
QHostAddress
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
clear
-
isBroadcast
-
isEqual
@QtUninvokable public final boolean isEqual(QHostAddress address, QHostAddress.ConversionModeFlag ... mode) Overloaded function for
isEqual(io.qt.network.QHostAddress, io.qt.network.QHostAddress.ConversionMode)
. -
isEqual
Overloaded function for
isEqual(io.qt.network.QHostAddress, io.qt.network.QHostAddress.ConversionMode)
withmode = new io.qt.network.QHostAddress.ConversionMode(255)
. -
isEqual
-
isGlobal
-
isInSubnet
-
isInSubnet
@QtUninvokable public final boolean isInSubnet(QPair<? extends QHostAddress, @QtPrimitiveType Integer> subnet) -
isLinkLocal
-
isLoopback
-
isMulticast
-
isNull
-
isSiteLocal
-
isUniqueLocalUnicast
-
writeTo
-
assign
-
assign
-
assign
Deprecated.use = QHostAddress(string) instead -
readFrom
-
protocol
-
scopeId
-
setAddress
-
setAddress
-
setAddress
-
setAddress
-
setScopeId
-
swap
-
toIPv4Address
-
toIPv6Address
-
toString
-
parseSubnet
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
clone
-