#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "gen_qdnslookup.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" QDnsDomainNameRecord* QDnsDomainNameRecord_new() { return new QDnsDomainNameRecord(); } QDnsDomainNameRecord* QDnsDomainNameRecord_new2(QDnsDomainNameRecord* other) { return new QDnsDomainNameRecord(*other); } void QDnsDomainNameRecord_OperatorAssign(QDnsDomainNameRecord* self, QDnsDomainNameRecord* other) { self->operator=(*other); } void QDnsDomainNameRecord_Swap(QDnsDomainNameRecord* self, QDnsDomainNameRecord* other) { self->swap(*other); } struct miqt_string QDnsDomainNameRecord_Name(const QDnsDomainNameRecord* self) { QString _ret = self->name(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } unsigned int QDnsDomainNameRecord_TimeToLive(const QDnsDomainNameRecord* self) { quint32 _ret = self->timeToLive(); return static_cast(_ret); } struct miqt_string QDnsDomainNameRecord_Value(const QDnsDomainNameRecord* self) { QString _ret = self->value(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QDnsDomainNameRecord_Delete(QDnsDomainNameRecord* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } QDnsHostAddressRecord* QDnsHostAddressRecord_new() { return new QDnsHostAddressRecord(); } QDnsHostAddressRecord* QDnsHostAddressRecord_new2(QDnsHostAddressRecord* other) { return new QDnsHostAddressRecord(*other); } void QDnsHostAddressRecord_OperatorAssign(QDnsHostAddressRecord* self, QDnsHostAddressRecord* other) { self->operator=(*other); } void QDnsHostAddressRecord_Swap(QDnsHostAddressRecord* self, QDnsHostAddressRecord* other) { self->swap(*other); } struct miqt_string QDnsHostAddressRecord_Name(const QDnsHostAddressRecord* self) { QString _ret = self->name(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } unsigned int QDnsHostAddressRecord_TimeToLive(const QDnsHostAddressRecord* self) { quint32 _ret = self->timeToLive(); return static_cast(_ret); } QHostAddress* QDnsHostAddressRecord_Value(const QDnsHostAddressRecord* self) { return new QHostAddress(self->value()); } void QDnsHostAddressRecord_Delete(QDnsHostAddressRecord* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } QDnsMailExchangeRecord* QDnsMailExchangeRecord_new() { return new QDnsMailExchangeRecord(); } QDnsMailExchangeRecord* QDnsMailExchangeRecord_new2(QDnsMailExchangeRecord* other) { return new QDnsMailExchangeRecord(*other); } void QDnsMailExchangeRecord_OperatorAssign(QDnsMailExchangeRecord* self, QDnsMailExchangeRecord* other) { self->operator=(*other); } void QDnsMailExchangeRecord_Swap(QDnsMailExchangeRecord* self, QDnsMailExchangeRecord* other) { self->swap(*other); } struct miqt_string QDnsMailExchangeRecord_Exchange(const QDnsMailExchangeRecord* self) { QString _ret = self->exchange(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QDnsMailExchangeRecord_Name(const QDnsMailExchangeRecord* self) { QString _ret = self->name(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } uint16_t QDnsMailExchangeRecord_Preference(const QDnsMailExchangeRecord* self) { quint16 _ret = self->preference(); return static_cast(_ret); } unsigned int QDnsMailExchangeRecord_TimeToLive(const QDnsMailExchangeRecord* self) { quint32 _ret = self->timeToLive(); return static_cast(_ret); } void QDnsMailExchangeRecord_Delete(QDnsMailExchangeRecord* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } QDnsServiceRecord* QDnsServiceRecord_new() { return new QDnsServiceRecord(); } QDnsServiceRecord* QDnsServiceRecord_new2(QDnsServiceRecord* other) { return new QDnsServiceRecord(*other); } void QDnsServiceRecord_OperatorAssign(QDnsServiceRecord* self, QDnsServiceRecord* other) { self->operator=(*other); } void QDnsServiceRecord_Swap(QDnsServiceRecord* self, QDnsServiceRecord* other) { self->swap(*other); } struct miqt_string QDnsServiceRecord_Name(const QDnsServiceRecord* self) { QString _ret = self->name(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } uint16_t QDnsServiceRecord_Port(const QDnsServiceRecord* self) { quint16 _ret = self->port(); return static_cast(_ret); } uint16_t QDnsServiceRecord_Priority(const QDnsServiceRecord* self) { quint16 _ret = self->priority(); return static_cast(_ret); } struct miqt_string QDnsServiceRecord_Target(const QDnsServiceRecord* self) { QString _ret = self->target(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } unsigned int QDnsServiceRecord_TimeToLive(const QDnsServiceRecord* self) { quint32 _ret = self->timeToLive(); return static_cast(_ret); } uint16_t QDnsServiceRecord_Weight(const QDnsServiceRecord* self) { quint16 _ret = self->weight(); return static_cast(_ret); } void QDnsServiceRecord_Delete(QDnsServiceRecord* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } QDnsTextRecord* QDnsTextRecord_new() { return new QDnsTextRecord(); } QDnsTextRecord* QDnsTextRecord_new2(QDnsTextRecord* other) { return new QDnsTextRecord(*other); } void QDnsTextRecord_OperatorAssign(QDnsTextRecord* self, QDnsTextRecord* other) { self->operator=(*other); } void QDnsTextRecord_Swap(QDnsTextRecord* self, QDnsTextRecord* other) { self->swap(*other); } struct miqt_string QDnsTextRecord_Name(const QDnsTextRecord* self) { QString _ret = self->name(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } unsigned int QDnsTextRecord_TimeToLive(const QDnsTextRecord* self) { quint32 _ret = self->timeToLive(); return static_cast(_ret); } struct miqt_array /* of struct miqt_string */ QDnsTextRecord_Values(const QDnsTextRecord* self) { QList _ret = self->values(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { QByteArray _lv_qb = _ret[i]; struct miqt_string _lv_ms; _lv_ms.len = _lv_qb.length(); _lv_ms.data = static_cast(malloc(_lv_ms.len)); memcpy(_lv_ms.data, _lv_qb.data(), _lv_ms.len); _arr[i] = _lv_ms; } struct miqt_array _out; _out.len = _ret.length(); _out.data = static_cast(_arr); return _out; } void QDnsTextRecord_Delete(QDnsTextRecord* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } class MiqtVirtualQDnsLookup : public virtual QDnsLookup { public: MiqtVirtualQDnsLookup(): QDnsLookup() {}; MiqtVirtualQDnsLookup(QDnsLookup::Type typeVal, const QString& name): QDnsLookup(typeVal, name) {}; MiqtVirtualQDnsLookup(QDnsLookup::Type typeVal, const QString& name, const QHostAddress& nameserver): QDnsLookup(typeVal, name, nameserver) {}; MiqtVirtualQDnsLookup(QObject* parent): QDnsLookup(parent) {}; MiqtVirtualQDnsLookup(QDnsLookup::Type typeVal, const QString& name, QObject* parent): QDnsLookup(typeVal, name, parent) {}; MiqtVirtualQDnsLookup(QDnsLookup::Type typeVal, const QString& name, const QHostAddress& nameserver, QObject* parent): QDnsLookup(typeVal, name, nameserver, parent) {}; virtual ~MiqtVirtualQDnsLookup() = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; // Subclass to allow providing a Go implementation virtual bool event(QEvent* event) override { if (handle__Event == 0) { return QDnsLookup::event(event); } QEvent* sigval1 = event; bool callback_return_value = miqt_exec_callback_QDnsLookup_Event(this, handle__Event, sigval1); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_Event(QEvent* event) { return QDnsLookup::event(event); } // cgo.Handle value for overwritten implementation intptr_t handle__EventFilter = 0; // Subclass to allow providing a Go implementation virtual bool eventFilter(QObject* watched, QEvent* event) override { if (handle__EventFilter == 0) { return QDnsLookup::eventFilter(watched, event); } QObject* sigval1 = watched; QEvent* sigval2 = event; bool callback_return_value = miqt_exec_callback_QDnsLookup_EventFilter(this, handle__EventFilter, sigval1, sigval2); return callback_return_value; } // Wrapper to allow calling protected method bool virtualbase_EventFilter(QObject* watched, QEvent* event) { return QDnsLookup::eventFilter(watched, event); } // cgo.Handle value for overwritten implementation intptr_t handle__TimerEvent = 0; // Subclass to allow providing a Go implementation virtual void timerEvent(QTimerEvent* event) override { if (handle__TimerEvent == 0) { QDnsLookup::timerEvent(event); return; } QTimerEvent* sigval1 = event; miqt_exec_callback_QDnsLookup_TimerEvent(this, handle__TimerEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_TimerEvent(QTimerEvent* event) { QDnsLookup::timerEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__ChildEvent = 0; // Subclass to allow providing a Go implementation virtual void childEvent(QChildEvent* event) override { if (handle__ChildEvent == 0) { QDnsLookup::childEvent(event); return; } QChildEvent* sigval1 = event; miqt_exec_callback_QDnsLookup_ChildEvent(this, handle__ChildEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_ChildEvent(QChildEvent* event) { QDnsLookup::childEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__CustomEvent = 0; // Subclass to allow providing a Go implementation virtual void customEvent(QEvent* event) override { if (handle__CustomEvent == 0) { QDnsLookup::customEvent(event); return; } QEvent* sigval1 = event; miqt_exec_callback_QDnsLookup_CustomEvent(this, handle__CustomEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_CustomEvent(QEvent* event) { QDnsLookup::customEvent(event); } // cgo.Handle value for overwritten implementation intptr_t handle__ConnectNotify = 0; // Subclass to allow providing a Go implementation virtual void connectNotify(const QMetaMethod& signal) override { if (handle__ConnectNotify == 0) { QDnsLookup::connectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QDnsLookup_ConnectNotify(this, handle__ConnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_ConnectNotify(QMetaMethod* signal) { QDnsLookup::connectNotify(*signal); } // cgo.Handle value for overwritten implementation intptr_t handle__DisconnectNotify = 0; // Subclass to allow providing a Go implementation virtual void disconnectNotify(const QMetaMethod& signal) override { if (handle__DisconnectNotify == 0) { QDnsLookup::disconnectNotify(signal); return; } const QMetaMethod& signal_ret = signal; // Cast returned reference into pointer QMetaMethod* sigval1 = const_cast(&signal_ret); miqt_exec_callback_QDnsLookup_DisconnectNotify(this, handle__DisconnectNotify, sigval1); } // Wrapper to allow calling protected method void virtualbase_DisconnectNotify(QMetaMethod* signal) { QDnsLookup::disconnectNotify(*signal); } }; QDnsLookup* QDnsLookup_new() { return new MiqtVirtualQDnsLookup(); } QDnsLookup* QDnsLookup_new2(int typeVal, struct miqt_string name) { QString name_QString = QString::fromUtf8(name.data, name.len); return new MiqtVirtualQDnsLookup(static_cast(typeVal), name_QString); } QDnsLookup* QDnsLookup_new3(int typeVal, struct miqt_string name, QHostAddress* nameserver) { QString name_QString = QString::fromUtf8(name.data, name.len); return new MiqtVirtualQDnsLookup(static_cast(typeVal), name_QString, *nameserver); } QDnsLookup* QDnsLookup_new4(QObject* parent) { return new MiqtVirtualQDnsLookup(parent); } QDnsLookup* QDnsLookup_new5(int typeVal, struct miqt_string name, QObject* parent) { QString name_QString = QString::fromUtf8(name.data, name.len); return new MiqtVirtualQDnsLookup(static_cast(typeVal), name_QString, parent); } QDnsLookup* QDnsLookup_new6(int typeVal, struct miqt_string name, QHostAddress* nameserver, QObject* parent) { QString name_QString = QString::fromUtf8(name.data, name.len); return new MiqtVirtualQDnsLookup(static_cast(typeVal), name_QString, *nameserver, parent); } void QDnsLookup_virtbase(QDnsLookup* src, QObject** outptr_QObject) { *outptr_QObject = static_cast(src); } QMetaObject* QDnsLookup_MetaObject(const QDnsLookup* self) { return (QMetaObject*) self->metaObject(); } void* QDnsLookup_Metacast(QDnsLookup* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QDnsLookup_Tr(const char* s) { QString _ret = QDnsLookup::tr(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } int QDnsLookup_Error(const QDnsLookup* self) { QDnsLookup::Error _ret = self->error(); return static_cast(_ret); } struct miqt_string QDnsLookup_ErrorString(const QDnsLookup* self) { QString _ret = self->errorString(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } bool QDnsLookup_IsFinished(const QDnsLookup* self) { return self->isFinished(); } struct miqt_string QDnsLookup_Name(const QDnsLookup* self) { QString _ret = self->name(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QDnsLookup_SetName(QDnsLookup* self, struct miqt_string name) { QString name_QString = QString::fromUtf8(name.data, name.len); self->setName(name_QString); } int QDnsLookup_Type(const QDnsLookup* self) { QDnsLookup::Type _ret = self->type(); return static_cast(_ret); } void QDnsLookup_SetType(QDnsLookup* self, int typeVal) { self->setType(static_cast(typeVal)); } QHostAddress* QDnsLookup_Nameserver(const QDnsLookup* self) { return new QHostAddress(self->nameserver()); } void QDnsLookup_SetNameserver(QDnsLookup* self, QHostAddress* nameserver) { self->setNameserver(*nameserver); } struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_CanonicalNameRecords(const QDnsLookup* self) { QList _ret = self->canonicalNameRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsDomainNameRecord** _arr = static_cast(malloc(sizeof(QDnsDomainNameRecord*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = new QDnsDomainNameRecord(_ret[i]); } struct miqt_array _out; _out.len = _ret.length(); _out.data = static_cast(_arr); return _out; } struct miqt_array /* of QDnsHostAddressRecord* */ QDnsLookup_HostAddressRecords(const QDnsLookup* self) { QList _ret = self->hostAddressRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsHostAddressRecord** _arr = static_cast(malloc(sizeof(QDnsHostAddressRecord*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = new QDnsHostAddressRecord(_ret[i]); } struct miqt_array _out; _out.len = _ret.length(); _out.data = static_cast(_arr); return _out; } struct miqt_array /* of QDnsMailExchangeRecord* */ QDnsLookup_MailExchangeRecords(const QDnsLookup* self) { QList _ret = self->mailExchangeRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsMailExchangeRecord** _arr = static_cast(malloc(sizeof(QDnsMailExchangeRecord*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = new QDnsMailExchangeRecord(_ret[i]); } struct miqt_array _out; _out.len = _ret.length(); _out.data = static_cast(_arr); return _out; } struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_NameServerRecords(const QDnsLookup* self) { QList _ret = self->nameServerRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsDomainNameRecord** _arr = static_cast(malloc(sizeof(QDnsDomainNameRecord*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = new QDnsDomainNameRecord(_ret[i]); } struct miqt_array _out; _out.len = _ret.length(); _out.data = static_cast(_arr); return _out; } struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_PointerRecords(const QDnsLookup* self) { QList _ret = self->pointerRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsDomainNameRecord** _arr = static_cast(malloc(sizeof(QDnsDomainNameRecord*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = new QDnsDomainNameRecord(_ret[i]); } struct miqt_array _out; _out.len = _ret.length(); _out.data = static_cast(_arr); return _out; } struct miqt_array /* of QDnsServiceRecord* */ QDnsLookup_ServiceRecords(const QDnsLookup* self) { QList _ret = self->serviceRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsServiceRecord** _arr = static_cast(malloc(sizeof(QDnsServiceRecord*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = new QDnsServiceRecord(_ret[i]); } struct miqt_array _out; _out.len = _ret.length(); _out.data = static_cast(_arr); return _out; } struct miqt_array /* of QDnsTextRecord* */ QDnsLookup_TextRecords(const QDnsLookup* self) { QList _ret = self->textRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsTextRecord** _arr = static_cast(malloc(sizeof(QDnsTextRecord*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = new QDnsTextRecord(_ret[i]); } struct miqt_array _out; _out.len = _ret.length(); _out.data = static_cast(_arr); return _out; } void QDnsLookup_Abort(QDnsLookup* self) { self->abort(); } void QDnsLookup_Lookup(QDnsLookup* self) { self->lookup(); } void QDnsLookup_Finished(QDnsLookup* self) { self->finished(); } void QDnsLookup_connect_Finished(QDnsLookup* self, intptr_t slot) { MiqtVirtualQDnsLookup::connect(self, static_cast(&QDnsLookup::finished), self, [=]() { miqt_exec_callback_QDnsLookup_Finished(slot); }); } void QDnsLookup_NameChanged(QDnsLookup* self, struct miqt_string name) { QString name_QString = QString::fromUtf8(name.data, name.len); self->nameChanged(name_QString); } void QDnsLookup_connect_NameChanged(QDnsLookup* self, intptr_t slot) { MiqtVirtualQDnsLookup::connect(self, static_cast(&QDnsLookup::nameChanged), self, [=](const QString& name) { const QString name_ret = name; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray name_b = name_ret.toUtf8(); struct miqt_string name_ms; name_ms.len = name_b.length(); name_ms.data = static_cast(malloc(name_ms.len)); memcpy(name_ms.data, name_b.data(), name_ms.len); struct miqt_string sigval1 = name_ms; miqt_exec_callback_QDnsLookup_NameChanged(slot, sigval1); }); } void QDnsLookup_TypeChanged(QDnsLookup* self, int typeVal) { self->typeChanged(static_cast(typeVal)); } void QDnsLookup_connect_TypeChanged(QDnsLookup* self, intptr_t slot) { MiqtVirtualQDnsLookup::connect(self, static_cast(&QDnsLookup::typeChanged), self, [=](QDnsLookup::Type typeVal) { QDnsLookup::Type typeVal_ret = typeVal; int sigval1 = static_cast(typeVal_ret); miqt_exec_callback_QDnsLookup_TypeChanged(slot, sigval1); }); } void QDnsLookup_NameserverChanged(QDnsLookup* self, QHostAddress* nameserver) { self->nameserverChanged(*nameserver); } void QDnsLookup_connect_NameserverChanged(QDnsLookup* self, intptr_t slot) { MiqtVirtualQDnsLookup::connect(self, static_cast(&QDnsLookup::nameserverChanged), self, [=](const QHostAddress& nameserver) { const QHostAddress& nameserver_ret = nameserver; // Cast returned reference into pointer QHostAddress* sigval1 = const_cast(&nameserver_ret); miqt_exec_callback_QDnsLookup_NameserverChanged(slot, sigval1); }); } struct miqt_string QDnsLookup_Tr2(const char* s, const char* c) { QString _ret = QDnsLookup::tr(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QDnsLookup_Tr3(const char* s, const char* c, int n) { QString _ret = QDnsLookup::tr(s, c, static_cast(n)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QDnsLookup_override_virtual_Event(void* self, intptr_t slot) { dynamic_cast( (QDnsLookup*)(self) )->handle__Event = slot; } bool QDnsLookup_virtualbase_Event(void* self, QEvent* event) { return ( (MiqtVirtualQDnsLookup*)(self) )->virtualbase_Event(event); } void QDnsLookup_override_virtual_EventFilter(void* self, intptr_t slot) { dynamic_cast( (QDnsLookup*)(self) )->handle__EventFilter = slot; } bool QDnsLookup_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event) { return ( (MiqtVirtualQDnsLookup*)(self) )->virtualbase_EventFilter(watched, event); } void QDnsLookup_override_virtual_TimerEvent(void* self, intptr_t slot) { dynamic_cast( (QDnsLookup*)(self) )->handle__TimerEvent = slot; } void QDnsLookup_virtualbase_TimerEvent(void* self, QTimerEvent* event) { ( (MiqtVirtualQDnsLookup*)(self) )->virtualbase_TimerEvent(event); } void QDnsLookup_override_virtual_ChildEvent(void* self, intptr_t slot) { dynamic_cast( (QDnsLookup*)(self) )->handle__ChildEvent = slot; } void QDnsLookup_virtualbase_ChildEvent(void* self, QChildEvent* event) { ( (MiqtVirtualQDnsLookup*)(self) )->virtualbase_ChildEvent(event); } void QDnsLookup_override_virtual_CustomEvent(void* self, intptr_t slot) { dynamic_cast( (QDnsLookup*)(self) )->handle__CustomEvent = slot; } void QDnsLookup_virtualbase_CustomEvent(void* self, QEvent* event) { ( (MiqtVirtualQDnsLookup*)(self) )->virtualbase_CustomEvent(event); } void QDnsLookup_override_virtual_ConnectNotify(void* self, intptr_t slot) { dynamic_cast( (QDnsLookup*)(self) )->handle__ConnectNotify = slot; } void QDnsLookup_virtualbase_ConnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQDnsLookup*)(self) )->virtualbase_ConnectNotify(signal); } void QDnsLookup_override_virtual_DisconnectNotify(void* self, intptr_t slot) { dynamic_cast( (QDnsLookup*)(self) )->handle__DisconnectNotify = slot; } void QDnsLookup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQDnsLookup*)(self) )->virtualbase_DisconnectNotify(signal); } void QDnsLookup_Delete(QDnsLookup* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }