API reference - Class QHostAddress

Notation used in Ruby API documentation

Description: Binding of QHostAddress

Public constructors

new QHostAddressnewConstructor QHostAddress::QHostAddress()
new QHostAddressnew(string address)Constructor QHostAddress::QHostAddress(const QString &address)
new QHostAddressnew(const QHostAddress copy)Constructor QHostAddress::QHostAddress(const QHostAddress &copy)
new QHostAddressnew_ip4(unsigned int ip4Addr)Constructor QHostAddress::QHostAddress(quint32 ip4Addr)
new QHostAddressnew_special(const QHostAddress_SpecialAddress address)Constructor QHostAddress::QHostAddress(QHostAddress::SpecialAddress address)

Public methods

[const]bool!=(const QHostAddress address)Method bool QHostAddress::operator !=(const QHostAddress &address)
[const]bool!=(const QHostAddress_SpecialAddress address)Method bool QHostAddress::operator !=(QHostAddress::SpecialAddress address)
[const]bool==(const QHostAddress address)Method bool QHostAddress::operator ==(const QHostAddress &address)
[const]bool==(const QHostAddress_SpecialAddress address)Method bool QHostAddress::operator ==(QHostAddress::SpecialAddress address)
QHostAddressassign(const QHostAddress other)Method QHostAddress &QHostAddress::operator=(const QHostAddress &other)
QHostAddressassign(string address)Method QHostAddress &QHostAddress::operator=(const QString &address)
[const]voidassign(const QHostAddress other)Assign the contents of another object to self
voidclearMethod void QHostAddress::clear()
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QHostAddressdupCreates a copy of self
[const]boolisInSubnet(const QHostAddress subnet,
int netmask)
Method bool QHostAddress::isInSubnet(const QHostAddress &subnet, int netmask)
[const]boolisInSubnet(const QHostAddressIntPair subnet)Method bool QHostAddress::isInSubnet(const QPair<QHostAddress, int> &subnet)
[const]boolisInSubnet?(const QHostAddress subnet,
int netmask)
Method bool QHostAddress::isInSubnet(const QHostAddress &subnet, int netmask)
[const]boolisInSubnet?(const QHostAddressIntPair subnet)Method bool QHostAddress::isInSubnet(const QPair<QHostAddress, int> &subnet)
[const]boolisNullMethod bool QHostAddress::isNull()
[const]boolisNull?Method bool QHostAddress::isNull()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]QAbstractSocket_NetworkLayerProtocolprotocolMethod QAbstractSocket::NetworkLayerProtocol QHostAddress::protocol()
[const]stringscopeIdMethod QString QHostAddress::scopeId()
voidscopeId=(string id)Method void QHostAddress::setScopeId(const QString &id)
voidsetAddress(unsigned int ip4Addr)Method void QHostAddress::setAddress(quint32 ip4Addr)
boolsetAddress(string address)Method bool QHostAddress::setAddress(const QString &address)
voidsetScopeId(string id)Method void QHostAddress::setScopeId(const QString &id)
[const]unsigned inttoIPv4AddressMethod quint32 QHostAddress::toIPv4Address()
[const]stringtoStringMethod QString QHostAddress::toString()
[const]stringto_sMethod QString QHostAddress::toString()

Public static methods and constants

QHostAddress_SpecialAddressAnyEnum constant QHostAddress::Any
QHostAddress_SpecialAddressAnyIPv6Enum constant QHostAddress::AnyIPv6
QHostAddress_SpecialAddressBroadcastEnum constant QHostAddress::Broadcast
QHostAddress_SpecialAddressLocalHostEnum constant QHostAddress::LocalHost
QHostAddress_SpecialAddressLocalHostIPv6Enum constant QHostAddress::LocalHostIPv6
QHostAddress_SpecialAddressNullEnum constant QHostAddress::Null
QHostAddressIntPairparseSubnet(string subnet)Static method QPair<QHostAddress, int> QHostAddress::parseSubnet(const QString &subnet)

Detailed description

[const] bool !=(const QHostAddress address)

Description: Method bool QHostAddress::operator !=(const QHostAddress &address)

[const] bool !=(const QHostAddress_SpecialAddress address)

Description: Method bool QHostAddress::operator !=(QHostAddress::SpecialAddress address)

[const] bool ==(const QHostAddress address)

Description: Method bool QHostAddress::operator ==(const QHostAddress &address)

[const] bool ==(const QHostAddress_SpecialAddress address)

Description: Method bool QHostAddress::operator ==(QHostAddress::SpecialAddress address)

[static] QHostAddress_SpecialAddress Any

Description: Enum constant QHostAddress::Any

[static] QHostAddress_SpecialAddress AnyIPv6

Description: Enum constant QHostAddress::AnyIPv6

[static] QHostAddress_SpecialAddress Broadcast

Description: Enum constant QHostAddress::Broadcast

[static] QHostAddress_SpecialAddress LocalHost

Description: Enum constant QHostAddress::LocalHost

[static] QHostAddress_SpecialAddress LocalHostIPv6

Description: Enum constant QHostAddress::LocalHostIPv6

[static] QHostAddress_SpecialAddress Null

Description: Enum constant QHostAddress::Null

QHostAddress assign(const QHostAddress other)

Description: Method QHostAddress &QHostAddress::operator=(const QHostAddress &other)

QHostAddress assign(string address)

Description: Method QHostAddress &QHostAddress::operator=(const QString &address)

[const] void assign(const QHostAddress 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 clear

Description: Method void QHostAddress::clear()

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] QHostAddress dup

Description: Creates a copy of self

[const] bool isInSubnet(const QHostAddress subnet,int netmask)

Description: Method bool QHostAddress::isInSubnet(const QHostAddress &subnet, int netmask)

[const] bool isInSubnet(const QHostAddressIntPair subnet)

Description: Method bool QHostAddress::isInSubnet(const QPair<QHostAddress, int> &subnet)

[const] bool isInSubnet?(const QHostAddress subnet,int netmask)

Description: Method bool QHostAddress::isInSubnet(const QHostAddress &subnet, int netmask)

[const] bool isInSubnet?(const QHostAddressIntPair subnet)

Description: Method bool QHostAddress::isInSubnet(const QPair<QHostAddress, int> &subnet)

[const] bool isNull

Description: Method bool QHostAddress::isNull()

[const] bool isNull?

Description: Method bool QHostAddress::isNull()

[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] new QHostAddress new

Description: Constructor QHostAddress::QHostAddress()

This method creates an object of class QHostAddress.

[static] new QHostAddress new(string address)

Description: Constructor QHostAddress::QHostAddress(const QString &address)

This method creates an object of class QHostAddress.

[static] new QHostAddress new(const QHostAddress copy)

Description: Constructor QHostAddress::QHostAddress(const QHostAddress &copy)

This method creates an object of class QHostAddress.

[static] new QHostAddress new_ip4(unsigned int ip4Addr)

Description: Constructor QHostAddress::QHostAddress(quint32 ip4Addr)

This method creates an object of class QHostAddress.

[static] new QHostAddress new_special(const QHostAddress_SpecialAddress address)

Description: Constructor QHostAddress::QHostAddress(QHostAddress::SpecialAddress address)

This method creates an object of class QHostAddress.

[static] QHostAddressIntPair parseSubnet(string subnet)

Description: Static method QPair<QHostAddress, int> QHostAddress::parseSubnet(const QString &subnet)

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

[const] QAbstractSocket_NetworkLayerProtocol protocol

Description: Method QAbstractSocket::NetworkLayerProtocol QHostAddress::protocol()

[const] string scopeId

Description: Method QString QHostAddress::scopeId()

void scopeId=(string id)

Description: Method void QHostAddress::setScopeId(const QString &id)

void setAddress(unsigned int ip4Addr)

Description: Method void QHostAddress::setAddress(quint32 ip4Addr)

bool setAddress(string address)

Description: Method bool QHostAddress::setAddress(const QString &address)

void setScopeId(string id)

Description: Method void QHostAddress::setScopeId(const QString &id)

[const] unsigned int toIPv4Address

Description: Method quint32 QHostAddress::toIPv4Address()

[const] string toString

Description: Method QString QHostAddress::toString()

[const] string to_s

Description: Method QString QHostAddress::toString()