##// 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_QHostAddress.h
42 lines | 2.0 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QHOSTADDRESS_H
#define PYTHONQTWRAPPER_QHOSTADDRESS_H
#include <qhostaddress.h>
#include <QObject>
#include <QVariant>
#include <qdatastream.h>
#include <qhostaddress.h>
class PythonQtWrapper_QHostAddress : public QObject
{ Q_OBJECT
public:
Q_ENUMS(SpecialAddress )
enum SpecialAddress{
Null = QHostAddress::Null, Broadcast = QHostAddress::Broadcast, LocalHost = QHostAddress::LocalHost, LocalHostIPv6 = QHostAddress::LocalHostIPv6, Any = QHostAddress::Any, AnyIPv6 = QHostAddress::AnyIPv6};
public slots:
QHostAddress* new_QHostAddress();
QHostAddress* new_QHostAddress(QHostAddress::SpecialAddress address);
QHostAddress* new_QHostAddress(const QHostAddress& copy);
QHostAddress* new_QHostAddress(const QIPv6Address& ip6Addr);
QHostAddress* new_QHostAddress(const QString& address);
QHostAddress* new_QHostAddress(unsigned int ip4Addr);
void delete_QHostAddress(QHostAddress* obj) { delete obj; }
void clear(QHostAddress* theWrappedObject);
bool isNull(QHostAddress* theWrappedObject) const;
void writeTo(QHostAddress* theWrappedObject, QDataStream& arg__1);
bool operator_equal(QHostAddress* theWrappedObject, QHostAddress::SpecialAddress address) const;
bool operator_equal(QHostAddress* theWrappedObject, const QHostAddress& address) const;
void readFrom(QHostAddress* theWrappedObject, QDataStream& arg__1);
QAbstractSocket::NetworkLayerProtocol protocol(QHostAddress* theWrappedObject) const;
QString scopeId(QHostAddress* theWrappedObject) const;
void setAddress(QHostAddress* theWrappedObject, const QIPv6Address& ip6Addr);
bool setAddress(QHostAddress* theWrappedObject, const QString& address);
void setAddress(QHostAddress* theWrappedObject, unsigned int ip4Addr);
void setScopeId(QHostAddress* theWrappedObject, const QString& id);
unsigned int toIPv4Address(QHostAddress* theWrappedObject) const;
QIPv6Address toIPv6Address(QHostAddress* theWrappedObject) const;
QString toString(QHostAddress* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QHOSTADDRESS_H