##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QHostInfo.h
39 lines | 1.6 KiB | text/x-c | CLexer
#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