KLayout 0.29.8 (2024-10-28 63dd591e5) [master]

API reference - Class QDnsLookup

Notation used in Ruby API documentation

Module: QtNetwork

Description: Binding of QDnsLookup

Class hierarchy: QDnsLookup » QObject

Sub-classes: Error, QFlags_Error, Type, QFlags_Type

Public constructors

new QDnsLookupnew(QObject ptr parent = nullptr)Constructor QDnsLookup::QDnsLookup(QObject *parent)
new QDnsLookupnew(const QDnsLookup_Type type,
string name,
QObject ptr parent = nullptr)
Constructor QDnsLookup::QDnsLookup(QDnsLookup::Type type, const QString &name, QObject *parent)
new QDnsLookupnew(const QDnsLookup_Type type,
string name,
const QHostAddress nameserver,
QObject ptr parent = nullptr)
Constructor QDnsLookup::QDnsLookup(QDnsLookup::Type type, const QString &name, const QHostAddress &nameserver, QObject *parent)

Public methods

[const]QDnsLookup ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
voidabortMethod void QDnsLookup::abort()
[const]QDnsDomainNameRecord[]canonicalNameRecordsMethod QList<QDnsDomainNameRecord> QDnsLookup::canonicalNameRecords()
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QDnsLookup::destroyed(QObject *)
voidemit_destroyed(QObject ptr arg1 = nullptr)Emitter for signal void QDnsLookup::destroyed(QObject *)
voidemit_finishedEmitter for signal void QDnsLookup::finished()
voidemit_nameChanged(string name)Emitter for signal void QDnsLookup::nameChanged(const QString &name)
voidemit_nameserverChanged(const QHostAddress nameserver)Emitter for signal void QDnsLookup::nameserverChanged(const QHostAddress &nameserver)
voidemit_objectNameChanged(string objectName)Emitter for signal void QDnsLookup::objectNameChanged(const QString &objectName)
voidemit_typeChanged(const QDnsLookup_Type type)Emitter for signal void QDnsLookup::typeChanged(QDnsLookup::Type type)
[const]QDnsLookup_ErrorerrorMethod QDnsLookup::Error QDnsLookup::error()
[const]stringerrorStringMethod QString QDnsLookup::errorString()
boolevent(QEvent ptr event)Virtual method bool QDnsLookup::event(QEvent *event)
booleventFilter(QObject ptr watched,
QEvent ptr event)
Virtual method bool QDnsLookup::eventFilter(QObject *watched, QEvent *event)
[signal]voidfinishedSignal declaration for QDnsLookup::finished()
[const]QDnsHostAddressRecord[]hostAddressRecordsMethod QList<QDnsHostAddressRecord> QDnsLookup::hostAddressRecords()
[const]boolisFinished?Method bool QDnsLookup::isFinished()
voidlookupMethod void QDnsLookup::lookup()
[const]QDnsMailExchangeRecord[]mailExchangeRecordsMethod QList<QDnsMailExchangeRecord> QDnsLookup::mailExchangeRecords()
[const]stringnameMethod QString QDnsLookup::name()
voidname=(string name)Method void QDnsLookup::setName(const QString &name)
[signal]voidnameChanged(string name)Signal declaration for QDnsLookup::nameChanged(const QString &name)
[const]QDnsDomainNameRecord[]nameServerRecordsMethod QList<QDnsDomainNameRecord> QDnsLookup::nameServerRecords()
[const]QHostAddressnameserverMethod QHostAddress QDnsLookup::nameserver()
voidnameserver=(const QHostAddress nameserver)Method void QDnsLookup::setNameserver(const QHostAddress &nameserver)
[signal]voidnameserverChanged(const QHostAddress nameserver)Signal declaration for QDnsLookup::nameserverChanged(const QHostAddress &nameserver)
[signal]voidobjectNameChanged(string objectName)Signal declaration for QDnsLookup::objectNameChanged(const QString &objectName)
[const]QDnsDomainNameRecord[]pointerRecordsMethod QList<QDnsDomainNameRecord> QDnsLookup::pointerRecords()
[const]QDnsServiceRecord[]serviceRecordsMethod QList<QDnsServiceRecord> QDnsLookup::serviceRecords()
voidsetName(string name)Method void QDnsLookup::setName(const QString &name)
voidsetNameserver(const QHostAddress nameserver)Method void QDnsLookup::setNameserver(const QHostAddress &nameserver)
voidsetType(const QDnsLookup_Type arg1)Method void QDnsLookup::setType(QDnsLookup::Type)
[const]QDnsTextRecord[]textRecordsMethod QList<QDnsTextRecord> QDnsLookup::textRecords()
[const]QDnsLookup_TypetypeMethod QDnsLookup::Type QDnsLookup::type()
voidtype=(const QDnsLookup_Type arg1)Method void QDnsLookup::setType(QDnsLookup::Type)
[signal]voidtypeChanged(const QDnsLookup_Type type)Signal declaration for QDnsLookup::typeChanged(QDnsLookup::Type type)

Public static methods and constants

[static,const]QDnsLookup_TypeAEnum constant QDnsLookup::A
[static,const]QDnsLookup_TypeAAAAEnum constant QDnsLookup::AAAA
[static,const]QDnsLookup_TypeANYEnum constant QDnsLookup::ANY
[static,const]QDnsLookup_TypeCNAMEEnum constant QDnsLookup::CNAME
[static,const]QDnsLookup_ErrorInvalidReplyErrorEnum constant QDnsLookup::InvalidReplyError
[static,const]QDnsLookup_ErrorInvalidRequestErrorEnum constant QDnsLookup::InvalidRequestError
[static,const]QDnsLookup_TypeMXEnum constant QDnsLookup::MX
[static,const]QDnsLookup_TypeNSEnum constant QDnsLookup::NS
[static,const]QDnsLookup_ErrorNoErrorEnum constant QDnsLookup::NoError
[static,const]QDnsLookup_ErrorNotFoundErrorEnum constant QDnsLookup::NotFoundError
[static,const]QDnsLookup_ErrorOperationCancelledErrorEnum constant QDnsLookup::OperationCancelledError
[static,const]QDnsLookup_TypePTREnum constant QDnsLookup::PTR
[static,const]QDnsLookup_ErrorResolverErrorEnum constant QDnsLookup::ResolverError
[static,const]QDnsLookup_TypeSRVEnum constant QDnsLookup::SRV
[static,const]QDnsLookup_ErrorServerFailureErrorEnum constant QDnsLookup::ServerFailureError
[static,const]QDnsLookup_ErrorServerRefusedErrorEnum constant QDnsLookup::ServerRefusedError
[static,const]QDnsLookup_TypeTXTEnum constant QDnsLookup::TXT
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = nullptr,
int n = -1)
Static method QString QDnsLookup::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = nullptr,
int n = -1)
Static method QString QDnsLookup::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

voidchildEvent(QChildEvent ptr event)Virtual method void QDnsLookup::childEvent(QChildEvent *event)
voidcustomEvent(QEvent ptr event)Virtual method void QDnsLookup::customEvent(QEvent *event)
voiddisconnectNotify(const QMetaMethod signal)Virtual method void QDnsLookup::disconnectNotify(const QMetaMethod &signal)
[const]boolisSignalConnected(const QMetaMethod signal)Method bool QDnsLookup::isSignalConnected(const QMetaMethod &signal)
[const]intreceivers(string signal)Method int QDnsLookup::receivers(const char *signal)
[const]QObject ptrsenderMethod QObject *QDnsLookup::sender()
[const]intsenderSignalIndexMethod int QDnsLookup::senderSignalIndex()
voidtimerEvent(QTimerEvent ptr event)Virtual method void QDnsLookup::timerEvent(QTimerEvent *event)

Detailed description

A

Signature: [static,const] QDnsLookup_Type A

Description: Enum constant QDnsLookup::A

Python specific notes:
The object exposes a readable attribute 'A'. This is the getter.

AAAA

Signature: [static,const] QDnsLookup_Type AAAA

Description: Enum constant QDnsLookup::AAAA

Python specific notes:
The object exposes a readable attribute 'AAAA'. This is the getter.

ANY

Signature: [static,const] QDnsLookup_Type ANY

Description: Enum constant QDnsLookup::ANY

Python specific notes:
The object exposes a readable attribute 'ANY'. This is the getter.

CNAME

Signature: [static,const] QDnsLookup_Type CNAME

Description: Enum constant QDnsLookup::CNAME

Python specific notes:
The object exposes a readable attribute 'CNAME'. This is the getter.

InvalidReplyError

Signature: [static,const] QDnsLookup_Error InvalidReplyError

Description: Enum constant QDnsLookup::InvalidReplyError

Python specific notes:
The object exposes a readable attribute 'InvalidReplyError'. This is the getter.

InvalidRequestError

Signature: [static,const] QDnsLookup_Error InvalidRequestError

Description: Enum constant QDnsLookup::InvalidRequestError

Python specific notes:
The object exposes a readable attribute 'InvalidRequestError'. This is the getter.

MX

Signature: [static,const] QDnsLookup_Type MX

Description: Enum constant QDnsLookup::MX

Python specific notes:
The object exposes a readable attribute 'MX'. This is the getter.

NS

Signature: [static,const] QDnsLookup_Type NS

Description: Enum constant QDnsLookup::NS

Python specific notes:
The object exposes a readable attribute 'NS'. This is the getter.

NoError

Signature: [static,const] QDnsLookup_Error NoError

Description: Enum constant QDnsLookup::NoError

Python specific notes:
The object exposes a readable attribute 'NoError'. This is the getter.

NotFoundError

Signature: [static,const] QDnsLookup_Error NotFoundError

Description: Enum constant QDnsLookup::NotFoundError

Python specific notes:
The object exposes a readable attribute 'NotFoundError'. This is the getter.

OperationCancelledError

Signature: [static,const] QDnsLookup_Error OperationCancelledError

Description: Enum constant QDnsLookup::OperationCancelledError

Python specific notes:
The object exposes a readable attribute 'OperationCancelledError'. This is the getter.

PTR

Signature: [static,const] QDnsLookup_Type PTR

Description: Enum constant QDnsLookup::PTR

Python specific notes:
The object exposes a readable attribute 'PTR'. This is the getter.

ResolverError

Signature: [static,const] QDnsLookup_Error ResolverError

Description: Enum constant QDnsLookup::ResolverError

Python specific notes:
The object exposes a readable attribute 'ResolverError'. This is the getter.

SRV

Signature: [static,const] QDnsLookup_Type SRV

Description: Enum constant QDnsLookup::SRV

Python specific notes:
The object exposes a readable attribute 'SRV'. This is the getter.

ServerFailureError

Signature: [static,const] QDnsLookup_Error ServerFailureError

Description: Enum constant QDnsLookup::ServerFailureError

Python specific notes:
The object exposes a readable attribute 'ServerFailureError'. This is the getter.

ServerRefusedError

Signature: [static,const] QDnsLookup_Error ServerRefusedError

Description: Enum constant QDnsLookup::ServerRefusedError

Python specific notes:
The object exposes a readable attribute 'ServerRefusedError'. This is the getter.

TXT

Signature: [static,const] QDnsLookup_Type TXT

Description: Enum constant QDnsLookup::TXT

Python specific notes:
The object exposes a readable attribute 'TXT'. This is the getter.

_const_cast

Signature: [const] QDnsLookup ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: 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.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

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

_destroyed?

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

_is_const_object?

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

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

abort

Signature: void abort

Description: Method void QDnsLookup::abort()

canonicalNameRecords

Signature: [const] QDnsDomainNameRecord[] canonicalNameRecords

Description: Method QList<QDnsDomainNameRecord> QDnsLookup::canonicalNameRecords()

childEvent

Signature: void childEvent (QChildEvent ptr event)

Description: Virtual method void QDnsLookup::childEvent(QChildEvent *event)

This method can be reimplemented in a derived class.

customEvent

Signature: void customEvent (QEvent ptr event)

Description: Virtual method void QDnsLookup::customEvent(QEvent *event)

This method can be reimplemented in a derived class.

destroyed

Signature: [signal] void destroyed (QObject ptr arg1)

Description: Signal declaration for QDnsLookup::destroyed(QObject *)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'destroyed'. This is the getter.
The object exposes a writable attribute 'destroyed'. This is the setter.

disconnectNotify

Signature: void disconnectNotify (const QMetaMethod signal)

Description: Virtual method void QDnsLookup::disconnectNotify(const QMetaMethod &signal)

This method can be reimplemented in a derived class.

emit_destroyed

Signature: void emit_destroyed (QObject ptr arg1 = nullptr)

Description: Emitter for signal void QDnsLookup::destroyed(QObject *)

Call this method to emit this signal.

emit_finished

Signature: void emit_finished

Description: Emitter for signal void QDnsLookup::finished()

Call this method to emit this signal.

emit_nameChanged

Signature: void emit_nameChanged (string name)

Description: Emitter for signal void QDnsLookup::nameChanged(const QString &name)

Call this method to emit this signal.

emit_nameserverChanged

Signature: void emit_nameserverChanged (const QHostAddress nameserver)

Description: Emitter for signal void QDnsLookup::nameserverChanged(const QHostAddress &nameserver)

Call this method to emit this signal.

emit_objectNameChanged

Signature: void emit_objectNameChanged (string objectName)

Description: Emitter for signal void QDnsLookup::objectNameChanged(const QString &objectName)

Call this method to emit this signal.

emit_typeChanged

Signature: void emit_typeChanged (const QDnsLookup_Type type)

Description: Emitter for signal void QDnsLookup::typeChanged(QDnsLookup::Type type)

Call this method to emit this signal.

error

Signature: [const] QDnsLookup_Error error

Description: Method QDnsLookup::Error QDnsLookup::error()

Python specific notes:
The object exposes a readable attribute 'error'. This is the getter.

errorString

Signature: [const] string errorString

Description: Method QString QDnsLookup::errorString()

Python specific notes:
The object exposes a readable attribute 'errorString'. This is the getter.

event

Signature: bool event (QEvent ptr event)

Description: Virtual method bool QDnsLookup::event(QEvent *event)

This method can be reimplemented in a derived class.

eventFilter

Signature: bool eventFilter (QObject ptr watched, QEvent ptr event)

Description: Virtual method bool QDnsLookup::eventFilter(QObject *watched, QEvent *event)

This method can be reimplemented in a derived class.

finished

Signature: [signal] void finished

Description: Signal declaration for QDnsLookup::finished()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'finished'. This is the getter.
The object exposes a writable attribute 'finished'. This is the setter.

hostAddressRecords

Signature: [const] QDnsHostAddressRecord[] hostAddressRecords

Description: Method QList<QDnsHostAddressRecord> QDnsLookup::hostAddressRecords()

isFinished?

Signature: [const] bool isFinished?

Description: Method bool QDnsLookup::isFinished()

isSignalConnected

Signature: [const] bool isSignalConnected (const QMetaMethod signal)

Description: Method bool QDnsLookup::isSignalConnected(const QMetaMethod &signal)

This method is protected and can only be called from inside a derived class.

lookup

Signature: void lookup

Description: Method void QDnsLookup::lookup()

mailExchangeRecords

Signature: [const] QDnsMailExchangeRecord[] mailExchangeRecords

Description: Method QList<QDnsMailExchangeRecord> QDnsLookup::mailExchangeRecords()

name

Signature: [const] string name

Description: Method QString QDnsLookup::name()

Python specific notes:
The object exposes a readable attribute 'name'. This is the getter.

name=

Signature: void name= (string name)

Description: Method void QDnsLookup::setName(const QString &name)

Python specific notes:
The object exposes a writable attribute 'name'. This is the setter.

nameChanged

Signature: [signal] void nameChanged (string name)

Description: Signal declaration for QDnsLookup::nameChanged(const QString &name)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'nameChanged'. This is the getter.
The object exposes a writable attribute 'nameChanged'. This is the setter.

nameServerRecords

Signature: [const] QDnsDomainNameRecord[] nameServerRecords

Description: Method QList<QDnsDomainNameRecord> QDnsLookup::nameServerRecords()

nameserver

Signature: [const] QHostAddress nameserver

Description: Method QHostAddress QDnsLookup::nameserver()

Python specific notes:
The object exposes a readable attribute 'nameserver'. This is the getter.

nameserver=

Signature: void nameserver= (const QHostAddress nameserver)

Description: Method void QDnsLookup::setNameserver(const QHostAddress &nameserver)

Python specific notes:
The object exposes a writable attribute 'nameserver'. This is the setter.

nameserverChanged

Signature: [signal] void nameserverChanged (const QHostAddress nameserver)

Description: Signal declaration for QDnsLookup::nameserverChanged(const QHostAddress &nameserver)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'nameserverChanged'. This is the getter.
The object exposes a writable attribute 'nameserverChanged'. This is the setter.

new

(1) Signature: [static] new QDnsLookup new (QObject ptr parent = nullptr)

Description: Constructor QDnsLookup::QDnsLookup(QObject *parent)

This method creates an object of class QDnsLookup.

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QDnsLookup new (const QDnsLookup_Type type, string name, QObject ptr parent = nullptr)

Description: Constructor QDnsLookup::QDnsLookup(QDnsLookup::Type type, const QString &name, QObject *parent)

This method creates an object of class QDnsLookup.

Python specific notes:
This method is the default initializer of the object.

(3) Signature: [static] new QDnsLookup new (const QDnsLookup_Type type, string name, const QHostAddress nameserver, QObject ptr parent = nullptr)

Description: Constructor QDnsLookup::QDnsLookup(QDnsLookup::Type type, const QString &name, const QHostAddress &nameserver, QObject *parent)

This method creates an object of class QDnsLookup.

Python specific notes:
This method is the default initializer of the object.

objectNameChanged

Signature: [signal] void objectNameChanged (string objectName)

Description: Signal declaration for QDnsLookup::objectNameChanged(const QString &objectName)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'objectNameChanged'. This is the getter.
The object exposes a writable attribute 'objectNameChanged'. This is the setter.

pointerRecords

Signature: [const] QDnsDomainNameRecord[] pointerRecords

Description: Method QList<QDnsDomainNameRecord> QDnsLookup::pointerRecords()

receivers

Signature: [const] int receivers (string signal)

Description: Method int QDnsLookup::receivers(const char *signal)

This method is protected and can only be called from inside a derived class.

sender

Signature: [const] QObject ptr sender

Description: Method QObject *QDnsLookup::sender()

This method is protected and can only be called from inside a derived class.

senderSignalIndex

Signature: [const] int senderSignalIndex

Description: Method int QDnsLookup::senderSignalIndex()

This method is protected and can only be called from inside a derived class.

serviceRecords

Signature: [const] QDnsServiceRecord[] serviceRecords

Description: Method QList<QDnsServiceRecord> QDnsLookup::serviceRecords()

setName

Signature: void setName (string name)

Description: Method void QDnsLookup::setName(const QString &name)

Python specific notes:
The object exposes a writable attribute 'name'. This is the setter.

setNameserver

Signature: void setNameserver (const QHostAddress nameserver)

Description: Method void QDnsLookup::setNameserver(const QHostAddress &nameserver)

Python specific notes:
The object exposes a writable attribute 'nameserver'. This is the setter.

setType

Signature: void setType (const QDnsLookup_Type arg1)

Description: Method void QDnsLookup::setType(QDnsLookup::Type)

Python specific notes:
The object exposes a writable attribute 'type'. This is the setter.

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

textRecords

Signature: [const] QDnsTextRecord[] textRecords

Description: Method QList<QDnsTextRecord> QDnsLookup::textRecords()

timerEvent

Signature: void timerEvent (QTimerEvent ptr event)

Description: Virtual method void QDnsLookup::timerEvent(QTimerEvent *event)

This method can be reimplemented in a derived class.

tr

Signature: [static] string tr (string s, string c = nullptr, int n = -1)

Description: Static method QString QDnsLookup::tr(const char *s, const char *c, int n)

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

trUtf8

Signature: [static] string trUtf8 (string s, string c = nullptr, int n = -1)

Description: Static method QString QDnsLookup::trUtf8(const char *s, const char *c, int n)

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

type

Signature: [const] QDnsLookup_Type type

Description: Method QDnsLookup::Type QDnsLookup::type()

Python specific notes:
The object exposes a readable attribute 'type'. This is the getter.

type=

Signature: void type= (const QDnsLookup_Type arg1)

Description: Method void QDnsLookup::setType(QDnsLookup::Type)

Python specific notes:
The object exposes a writable attribute 'type'. This is the setter.

typeChanged

Signature: [signal] void typeChanged (const QDnsLookup_Type type)

Description: Signal declaration for QDnsLookup::typeChanged(QDnsLookup::Type type)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'typeChanged'. This is the getter.
The object exposes a writable attribute 'typeChanged'. This is the setter.