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

API reference - Class QNetworkInterface

Notation used in Ruby API documentation

Description: Binding of QNetworkInterface

Public constructors

new QNetworkInterfacenewConstructor QNetworkInterface::QNetworkInterface()
new QNetworkInterfacenew(const QNetworkInterface other)Constructor QNetworkInterface::QNetworkInterface(const QNetworkInterface &other)

Public methods

[const]QNetworkAddressEntry[]addressEntriesMethod QList<class QNetworkAddressEntry> QNetworkInterface::addressEntries()
QNetworkInterfaceassign(const QNetworkInterface other)Method QNetworkInterface & QNetworkInterface::operator=(const QNetworkInterface &other)
[const]voidassign(const QNetworkInterface 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]QNetworkInterfacedupCreates a copy of self
[const]intflagsMethod QFlags<enum QNetworkInterface::InterfaceFlag> QNetworkInterface::flags()
[const]stringhardwareAddressMethod QString QNetworkInterface::hardwareAddress()
[const]stringhumanReadableNameMethod QString QNetworkInterface::humanReadableName()
[const]intindexMethod int QNetworkInterface::index()
[const]boolisValidMethod bool QNetworkInterface::isValid()
[const]boolisValid?Method bool QNetworkInterface::isValid()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]stringnameMethod QString QNetworkInterface::name()

Public static methods and constants

QNetworkInterface_InterfaceFlagCanBroadcastEnum constant enum QNetworkInterface::CanBroadcast
QNetworkInterface_InterfaceFlagCanMulticastEnum constant enum QNetworkInterface::CanMulticast
QNetworkInterface_InterfaceFlagIsLoopBackEnum constant enum QNetworkInterface::IsLoopBack
QNetworkInterface_InterfaceFlagIsPointToPointEnum constant enum QNetworkInterface::IsPointToPoint
QNetworkInterface_InterfaceFlagIsRunningEnum constant enum QNetworkInterface::IsRunning
QNetworkInterface_InterfaceFlagIsUpEnum constant enum QNetworkInterface::IsUp
QHostAddress[]allAddressesStatic method QList<class QHostAddress> QNetworkInterface::allAddresses()
QNetworkInterface[]allInterfacesStatic method QList<class QNetworkInterface> QNetworkInterface::allInterfaces()
QNetworkInterfaceinterfaceFromIndex(int index)Static method QNetworkInterface QNetworkInterface::interfaceFromIndex(int index)
QNetworkInterfaceinterfaceFromName(string name)Static method QNetworkInterface QNetworkInterface::interfaceFromName(const QString &name)

Detailed description

[static] QNetworkInterface_InterfaceFlag CanBroadcast

Description: Enum constant enum QNetworkInterface::CanBroadcast

[static] QNetworkInterface_InterfaceFlag CanMulticast

Description: Enum constant enum QNetworkInterface::CanMulticast

[static] QNetworkInterface_InterfaceFlag IsLoopBack

Description: Enum constant enum QNetworkInterface::IsLoopBack

[static] QNetworkInterface_InterfaceFlag IsPointToPoint

Description: Enum constant enum QNetworkInterface::IsPointToPoint

[static] QNetworkInterface_InterfaceFlag IsRunning

Description: Enum constant enum QNetworkInterface::IsRunning

[static] QNetworkInterface_InterfaceFlag IsUp

Description: Enum constant enum QNetworkInterface::IsUp

[const] QNetworkAddressEntry[] addressEntries

Description: Method QList<class QNetworkAddressEntry> QNetworkInterface::addressEntries()

[static] QHostAddress[] allAddresses

Description: Static method QList<class QHostAddress> QNetworkInterface::allAddresses()

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

[static] QNetworkInterface[] allInterfaces

Description: Static method QList<class QNetworkInterface> QNetworkInterface::allInterfaces()

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

QNetworkInterface assign(const QNetworkInterface other)

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

[const] void assign(const QNetworkInterface 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] QNetworkInterface dup

Description: Creates a copy of self

[const] int flags

Description: Method QFlags<enum QNetworkInterface::InterfaceFlag> QNetworkInterface::flags()

[const] string hardwareAddress

Description: Method QString QNetworkInterface::hardwareAddress()

[const] string humanReadableName

Description: Method QString QNetworkInterface::humanReadableName()

[const] int index

Description: Method int QNetworkInterface::index()

[static] QNetworkInterface interfaceFromIndex(int index)

Description: Static method QNetworkInterface QNetworkInterface::interfaceFromIndex(int index)

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

[static] QNetworkInterface interfaceFromName(string name)

Description: Static method QNetworkInterface QNetworkInterface::interfaceFromName(const QString &name)

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

[const] bool isValid

Description: Method bool QNetworkInterface::isValid()

[const] bool isValid?

Description: Method bool QNetworkInterface::isValid()

[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] string name

Description: Method QString QNetworkInterface::name()

[static] new QNetworkInterface new

Description: Constructor QNetworkInterface::QNetworkInterface()

This method creates an object of class QNetworkInterface.

[static] new QNetworkInterface new(const QNetworkInterface other)

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

This method creates an object of class QNetworkInterface.