KLayout Manual: Main Index » Class Index » API reference - Class QHostInfo

API reference - Class QHostInfo

Notation used in Ruby API documentation

Description: Binding of QHostInfo

Public constructors

new QHostInfonew(const QHostInfo d)Constructor QHostInfo::QHostInfo(const QHostInfo &d)
new QHostInfonewConstructor QHostInfo::QHostInfo(int lookupId)
new QHostInfonew(int lookupId)Constructor QHostInfo::QHostInfo(int lookupId)

Public methods

[const]QHostAddress[]addressesMethod QList<class QHostAddress> QHostInfo::addresses()
voidaddresses=(QHostAddress[] addresses)Method void QHostInfo::setAddresses(const QList<class QHostAddress> &addresses)
QHostInfoassign(const QHostInfo d)Method QHostInfo & QHostInfo::operator=(const QHostInfo &d)
[const]voidassign(const QHostInfo other)Assign the contents of another object to self
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QHostInfodupCreates a copy of self
[const]QHostInfo_HostInfoErrorerrorMethod QHostInfo::HostInfoError QHostInfo::error()
voiderror=(const QHostInfo_HostInfoError error)Method void QHostInfo::setError(QHostInfo::HostInfoError error)
[const]stringerrorStringMethod QString QHostInfo::errorString()
voiderrorString=(string errorString)Method void QHostInfo::setErrorString(const QString &errorString)
[const]stringhostNameMethod QString QHostInfo::hostName()
voidhostName=(string name)Method void QHostInfo::setHostName(const QString &name)
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]intlookupIdMethod int QHostInfo::lookupId()
voidlookupId=(int id)Method void QHostInfo::setLookupId(int id)
voidsetAddresses(QHostAddress[] addresses)Method void QHostInfo::setAddresses(const QList<class QHostAddress> &addresses)
voidsetError(const QHostInfo_HostInfoError error)Method void QHostInfo::setError(QHostInfo::HostInfoError error)
voidsetErrorString(string errorString)Method void QHostInfo::setErrorString(const QString &errorString)
voidsetHostName(string name)Method void QHostInfo::setHostName(const QString &name)
voidsetLookupId(int id)Method void QHostInfo::setLookupId(int id)

Public static methods and constants

QHostInfo_HostInfoErrorHostNotFoundEnum constant enum QHostInfo::HostNotFound
QHostInfo_HostInfoErrorNoErrorEnum constant enum QHostInfo::NoError
QHostInfo_HostInfoErrorUnknownErrorEnum constant enum QHostInfo::UnknownError
voidabortHostLookup(int lookupId)Static method void QHostInfo::abortHostLookup(int lookupId)
QHostInfofromName(string name)Static method QHostInfo QHostInfo::fromName(const QString &name)
stringlocalDomainNameStatic method QString QHostInfo::localDomainName()
stringlocalHostNameStatic method QString QHostInfo::localHostName()
intlookupHost(string name,
QObject ptr receiver,
string member)
Static method int QHostInfo::lookupHost(const QString &name, QObject *receiver, const char *member)

Detailed description

[static] QHostInfo_HostInfoError HostNotFound

Description: Enum constant enum QHostInfo::HostNotFound

[static] QHostInfo_HostInfoError NoError

Description: Enum constant enum QHostInfo::NoError

[static] QHostInfo_HostInfoError UnknownError

Description: Enum constant enum QHostInfo::UnknownError

[static] void abortHostLookup(int lookupId)

Description: Static method void QHostInfo::abortHostLookup(int lookupId)

This method is static and can be called without an instance.

[const] QHostAddress[] addresses

Description: Method QList<class QHostAddress> QHostInfo::addresses()

void addresses=(QHostAddress[] addresses)

Description: Method void QHostInfo::setAddresses(const QList<class QHostAddress> &addresses)

QHostInfo assign(const QHostInfo d)

Description: Method QHostInfo & QHostInfo::operator=(const QHostInfo &d)

[const] void assign(const QHostInfo other)

Description: Assign the contents of another object to self

This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] QHostInfo dup

Description: Creates a copy of self

[const] QHostInfo_HostInfoError error

Description: Method QHostInfo::HostInfoError QHostInfo::error()

void error=(const QHostInfo_HostInfoError error)

Description: Method void QHostInfo::setError(QHostInfo::HostInfoError error)

[const] string errorString

Description: Method QString QHostInfo::errorString()

void errorString=(string errorString)

Description: Method void QHostInfo::setErrorString(const QString &errorString)

[static] QHostInfo fromName(string name)

Description: Static method QHostInfo QHostInfo::fromName(const QString &name)

This method is static and can be called without an instance.

[const] string hostName

Description: Method QString QHostInfo::hostName()

void hostName=(string name)

Description: Method void QHostInfo::setHostName(const QString &name)

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[static] string localDomainName

Description: Static method QString QHostInfo::localDomainName()

This method is static and can be called without an instance.

[static] string localHostName

Description: Static method QString QHostInfo::localHostName()

This method is static and can be called without an instance.

[static] int lookupHost(string name,QObject ptr receiver,string member)

Description: Static method int QHostInfo::lookupHost(const QString &name, QObject *receiver, const char *member)

This method is static and can be called without an instance.

[const] int lookupId

Description: Method int QHostInfo::lookupId()

void lookupId=(int id)

Description: Method void QHostInfo::setLookupId(int id)

[static] new QHostInfo new(const QHostInfo d)

Description: Constructor QHostInfo::QHostInfo(const QHostInfo &d)

This method creates an object of class QHostInfo.

[static] new QHostInfo new

Description: Constructor QHostInfo::QHostInfo(int lookupId)

This method creates an object of class QHostInfo.

[static] new QHostInfo new(int lookupId)

Description: Constructor QHostInfo::QHostInfo(int lookupId)

This method creates an object of class QHostInfo.

void setAddresses(QHostAddress[] addresses)

Description: Method void QHostInfo::setAddresses(const QList<class QHostAddress> &addresses)

void setError(const QHostInfo_HostInfoError error)

Description: Method void QHostInfo::setError(QHostInfo::HostInfoError error)

void setErrorString(string errorString)

Description: Method void QHostInfo::setErrorString(const QString &errorString)

void setHostName(string name)

Description: Method void QHostInfo::setHostName(const QString &name)

void setLookupId(int id)

Description: Method void QHostInfo::setLookupId(int id)