|
|
#ifndef PYTHONQTWRAPPER_QHOSTINFO_H
|
|
|
#define PYTHONQTWRAPPER_QHOSTINFO_H
|
|
|
|
|
|
#include <qhostinfo.h>
|
|
|
#include <QObject>
|
|
|
|
|
|
#include <QVariant>
|
|
|
#include <qhostaddress.h>
|
|
|
#include <qhostinfo.h>
|
|
|
#include <qlist.h>
|
|
|
#include <qobject.h>
|
|
|
|
|
|
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; }
|
|
|
void static_QHostInfo_abortHostLookup(int lookupId);
|
|
|
QList<QHostAddress > addresses(QHostInfo* theWrappedObject) const;
|
|
|
QHostInfo::HostInfoError error(QHostInfo* theWrappedObject) const;
|
|
|
QString errorString(QHostInfo* theWrappedObject) const;
|
|
|
QHostInfo static_QHostInfo_fromName(const QString& name);
|
|
|
QString hostName(QHostInfo* theWrappedObject) const;
|
|
|
QString static_QHostInfo_localHostName();
|
|
|
int static_QHostInfo_lookupHost(const QString& name, QObject* receiver, const char* member);
|
|
|
int lookupId(QHostInfo* theWrappedObject) const;
|
|
|
void setAddresses(QHostInfo* theWrappedObject, const QList<QHostAddress >& addresses);
|
|
|
void setError(QHostInfo* theWrappedObject, QHostInfo::HostInfoError error);
|
|
|
void setErrorString(QHostInfo* theWrappedObject, const QString& errorString);
|
|
|
void setHostName(QHostInfo* theWrappedObject, const QString& name);
|
|
|
void setLookupId(QHostInfo* theWrappedObject, int id);
|
|
|
};
|
|
|
|
|
|
#endif // PYTHONQTWRAPPER_QHOSTINFO_H
|
|
|
|