PythonQtWrapper_QHostAddress.cpp
108 lines
| 3.1 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QHostAddress.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qhostaddress.h> | ||||
QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress() | ||||
{ | ||||
return new QHostAddress(); } | ||||
QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(QHostAddress::SpecialAddress address) | ||||
{ | ||||
return new QHostAddress(address); } | ||||
QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(const QHostAddress& copy) | ||||
{ | ||||
return new QHostAddress(copy); } | ||||
QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(const QIPv6Address& ip6Addr) | ||||
{ | ||||
return new QHostAddress(ip6Addr); } | ||||
QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(const QString& address) | ||||
{ | ||||
return new QHostAddress(address); } | ||||
QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(unsigned int ip4Addr) | ||||
{ | ||||
return new QHostAddress(ip4Addr); } | ||||
florianlink
|
r73 | bool PythonQtWrapper_QHostAddress::isNull(QHostAddress* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isNull()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QHostAddress::operator_equal(QHostAddress* theWrappedObject, const QHostAddress& address) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( (*theWrappedObject)== address); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QHostAddress::setAddress(QHostAddress* theWrappedObject, const QIPv6Address& ip6Addr) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setAddress(ip6Addr)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QHostAddress::setAddress(QHostAddress* theWrappedObject, unsigned int ip4Addr) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setAddress(ip4Addr)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QHostAddress::writeTo(QHostAddress* theWrappedObject, QDataStream& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | arg__1 << (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QHostAddress::readFrom(QHostAddress* theWrappedObject, QDataStream& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | arg__1 >> (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | unsigned int PythonQtWrapper_QHostAddress::toIPv4Address(QHostAddress* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toIPv4Address()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QHostAddress::operator_equal(QHostAddress* theWrappedObject, QHostAddress::SpecialAddress address) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( (*theWrappedObject)== address); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QHostAddress::toString(QHostAddress* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toString()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QHostAddress::scopeId(QHostAddress* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->scopeId()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QHostAddress::setAddress(QHostAddress* theWrappedObject, const QString& address) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->setAddress(address)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QHostAddress::clear(QHostAddress* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->clear()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QAbstractSocket::NetworkLayerProtocol PythonQtWrapper_QHostAddress::protocol(QHostAddress* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->protocol()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QHostAddress::setScopeId(QHostAddress* theWrappedObject, const QString& id) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setScopeId(id)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QIPv6Address PythonQtWrapper_QHostAddress::toIPv6Address(QHostAddress* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toIPv6Address()); | ||
florianlink
|
r13 | } | ||