PythonQtWrapper_QHostAddress.h
44 lines
| 2.1 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QHOSTADDRESS_H | ||
#define PYTHONQTWRAPPER_QHOSTADDRESS_H | ||||
#include <qhostaddress.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #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; } | ||||
florianlink
|
r28 | bool isNull(QHostAddress* theWrappedObject) const; | ||
florianlink
|
r73 | bool operator_equal(QHostAddress* theWrappedObject, const QHostAddress& address) const; | ||
void setAddress(QHostAddress* theWrappedObject, const QIPv6Address& ip6Addr); | ||||
florianlink
|
r24 | void setAddress(QHostAddress* theWrappedObject, unsigned int ip4Addr); | ||
florianlink
|
r28 | void writeTo(QHostAddress* theWrappedObject, QDataStream& arg__1); | ||
florianlink
|
r73 | void readFrom(QHostAddress* theWrappedObject, QDataStream& arg__1); | ||
florianlink
|
r28 | unsigned int toIPv4Address(QHostAddress* theWrappedObject) const; | ||
bool operator_equal(QHostAddress* theWrappedObject, QHostAddress::SpecialAddress address) const; | ||||
florianlink
|
r73 | QString toString(QHostAddress* theWrappedObject) const; | ||
QString scopeId(QHostAddress* theWrappedObject) const; | ||||
bool setAddress(QHostAddress* theWrappedObject, const QString& address); | ||||
void clear(QHostAddress* theWrappedObject); | ||||
QAbstractSocket::NetworkLayerProtocol protocol(QHostAddress* theWrappedObject) const; | ||||
void setScopeId(QHostAddress* theWrappedObject, const QString& id); | ||||
QIPv6Address toIPv6Address(QHostAddress* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QHOSTADDRESS_H | ||||