API reference - Class QNetworkAddressEntry

Notation used in Ruby API documentation

Description: Binding of QNetworkAddressEntry

Public constructors

new QNetworkAddressEntrynewConstructor QNetworkAddressEntry::QNetworkAddressEntry()
new QNetworkAddressEntrynew(const QNetworkAddressEntry other)Constructor QNetworkAddressEntry::QNetworkAddressEntry(const QNetworkAddressEntry &other)

Public methods

[const]bool!=(const QNetworkAddressEntry other)Method bool QNetworkAddressEntry::operator!=(const QNetworkAddressEntry &other)
[const]bool==(const QNetworkAddressEntry other)Method bool QNetworkAddressEntry::operator==(const QNetworkAddressEntry &other)
QNetworkAddressEntryassign(const QNetworkAddressEntry other)Method QNetworkAddressEntry &QNetworkAddressEntry::operator=(const QNetworkAddressEntry &other)
[const]voidassign(const QNetworkAddressEntry other)Assign the contents of another object to self
[const]QHostAddressbroadcastMethod QHostAddress QNetworkAddressEntry::broadcast()
voidbroadcast=(const QHostAddress newBroadcast)Method void QNetworkAddressEntry::setBroadcast(const QHostAddress &newBroadcast)
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QNetworkAddressEntrydupCreates a copy of self
[const]QHostAddressipMethod QHostAddress QNetworkAddressEntry::ip()
voidip=(const QHostAddress newIp)Method void QNetworkAddressEntry::setIp(const QHostAddress &newIp)
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]QHostAddressnetmaskMethod QHostAddress QNetworkAddressEntry::netmask()
voidnetmask=(const QHostAddress newNetmask)Method void QNetworkAddressEntry::setNetmask(const QHostAddress &newNetmask)
[const]intprefixLengthMethod int QNetworkAddressEntry::prefixLength()
voidprefixLength=(int length)Method void QNetworkAddressEntry::setPrefixLength(int length)
voidsetBroadcast(const QHostAddress newBroadcast)Method void QNetworkAddressEntry::setBroadcast(const QHostAddress &newBroadcast)
voidsetIp(const QHostAddress newIp)Method void QNetworkAddressEntry::setIp(const QHostAddress &newIp)
voidsetNetmask(const QHostAddress newNetmask)Method void QNetworkAddressEntry::setNetmask(const QHostAddress &newNetmask)
voidsetPrefixLength(int length)Method void QNetworkAddressEntry::setPrefixLength(int length)

Detailed description

[const] bool !=(const QNetworkAddressEntry other)

Description: Method bool QNetworkAddressEntry::operator!=(const QNetworkAddressEntry &other)

[const] bool ==(const QNetworkAddressEntry other)

Description: Method bool QNetworkAddressEntry::operator==(const QNetworkAddressEntry &other)

QNetworkAddressEntry assign(const QNetworkAddressEntry other)

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

[const] void assign(const QNetworkAddressEntry 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.

[const] QHostAddress broadcast

Description: Method QHostAddress QNetworkAddressEntry::broadcast()

void broadcast=(const QHostAddress newBroadcast)

Description: Method void QNetworkAddressEntry::setBroadcast(const QHostAddress &newBroadcast)

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

Description: Creates a copy of self

[const] QHostAddress ip

Description: Method QHostAddress QNetworkAddressEntry::ip()

void ip=(const QHostAddress newIp)

Description: Method void QNetworkAddressEntry::setIp(const QHostAddress &newIp)

[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.

[const] QHostAddress netmask

Description: Method QHostAddress QNetworkAddressEntry::netmask()

void netmask=(const QHostAddress newNetmask)

Description: Method void QNetworkAddressEntry::setNetmask(const QHostAddress &newNetmask)

[static] new QNetworkAddressEntry new

Description: Constructor QNetworkAddressEntry::QNetworkAddressEntry()

This method creates an object of class QNetworkAddressEntry.

[static] new QNetworkAddressEntry new(const QNetworkAddressEntry other)

Description: Constructor QNetworkAddressEntry::QNetworkAddressEntry(const QNetworkAddressEntry &other)

This method creates an object of class QNetworkAddressEntry.

[const] int prefixLength

Description: Method int QNetworkAddressEntry::prefixLength()

void prefixLength=(int length)

Description: Method void QNetworkAddressEntry::setPrefixLength(int length)

void setBroadcast(const QHostAddress newBroadcast)

Description: Method void QNetworkAddressEntry::setBroadcast(const QHostAddress &newBroadcast)

void setIp(const QHostAddress newIp)

Description: Method void QNetworkAddressEntry::setIp(const QHostAddress &newIp)

void setNetmask(const QHostAddress newNetmask)

Description: Method void QNetworkAddressEntry::setNetmask(const QHostAddress &newNetmask)

void setPrefixLength(int length)

Description: Method void QNetworkAddressEntry::setPrefixLength(int length)