java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.network.QHostInfo
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Static functions for host name lookups
Java wrapper for Qt's class QHostInfo
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionOverloaded constructor forQHostInfo(int)
withlookupId = -1
.QHostInfo
(int lookupId) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
abortHostLookup
(int lookupId) final QList<QHostAddress>
clone()
final QHostInfo.HostInfoError
error()
final String
static QHostInfo
final String
hostName()
static String
static String
static int
lookupHost
(String name, QMetaObject.Connectable1<QHostInfo> signal) static int
lookupHost
(String name, QMetaObject.Slot1<QHostInfo> slot) static int
lookupHost
(String name, QObject context, QMetaObject.Slot1<QHostInfo> slot) static int
lookupHost
(String name, QObject receiver, String member) final int
lookupId()
final void
setAddresses
(Collection<? extends QHostAddress> addresses) final void
setError
(QHostInfo.HostInfoError error) final void
setErrorString
(String errorString) final void
setHostName
(String name) final void
setLookupId
(int id) final void
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QHostInfo
-
QHostInfo
public QHostInfo()Overloaded constructor for
QHostInfo(int)
withlookupId = -1
. -
QHostInfo
public QHostInfo(int lookupId) -
QHostInfo
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
addresses
-
error
-
errorString
-
hostName
-
lookupId
-
setAddresses
-
setError
-
setErrorString
-
setHostName
-
setLookupId
-
swap
-
abortHostLookup
public static void abortHostLookup(int lookupId) -
fromName
-
localDomainName
-
localHostName
-
lookupHost
-
lookupHost
-
lookupHost
@QtUninvokable public static int lookupHost(String name, QObject context, QMetaObject.Slot1<QHostInfo> slot) -
lookupHost
@QtUninvokable public static int lookupHost(String name, QMetaObject.Connectable1<QHostInfo> signal) -
clone
-