#ifndef PYTHONQTWRAPPER_QHOSTINFO_H #define PYTHONQTWRAPPER_QHOSTINFO_H #include #include #include #include #include #include #include #include class PythonQtWrapper_QHostInfo : public QObject { Q_OBJECT public: Q_ENUMS(HostInfoError ) enum HostInfoError{ NoError = QHostInfo::NoError, HostNotFound = QHostInfo::HostNotFound, UnknownError = QHostInfo::UnknownError}; public slots: QHostInfo* new_QHostInfo(const QHostInfo& d); QHostInfo* new_QHostInfo(int lookupId = -1); void delete_QHostInfo(QHostInfo* obj) { delete obj; } int static_QHostInfo_lookupHost(const QString& name, QObject* receiver, const char* member); QString errorString(QHostInfo* theWrappedObject) const; QString hostName(QHostInfo* theWrappedObject) const; void setAddresses(QHostInfo* theWrappedObject, const QList& addresses); void setLookupId(QHostInfo* theWrappedObject, int id); QList addresses(QHostInfo* theWrappedObject) const; QString static_QHostInfo_localHostName(); void setErrorString(QHostInfo* theWrappedObject, const QString& errorString); QHostInfo static_QHostInfo_fromName(const QString& name); int lookupId(QHostInfo* theWrappedObject) const; QHostInfo::HostInfoError error(QHostInfo* theWrappedObject) const; void setError(QHostInfo* theWrappedObject, QHostInfo::HostInfoError error); void setHostName(QHostInfo* theWrappedObject, const QString& name); void static_QHostInfo_abortHostLookup(int lookupId); }; #endif // PYTHONQTWRAPPER_QHOSTINFO_H