##// 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.cpp
105 lines | 2.9 KiB | text/x-c | CppLexer
#include "PythonQtWrapper_QHostAddress.h"
#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); }
void PythonQtWrapper_QHostAddress::clear(QHostAddress* theWrappedObject)
{
theWrappedObject->clear();
}
bool PythonQtWrapper_QHostAddress::isNull(QHostAddress* theWrappedObject) const
{
return theWrappedObject->isNull();
}
void PythonQtWrapper_QHostAddress::writeTo(QHostAddress* theWrappedObject, QDataStream& arg__1)
{
arg__1 << *theWrappedObject;
}
bool PythonQtWrapper_QHostAddress::operator_equal(QHostAddress* theWrappedObject, QHostAddress::SpecialAddress address) const
{
return *theWrappedObject == address;
}
bool PythonQtWrapper_QHostAddress::operator_equal(QHostAddress* theWrappedObject, const QHostAddress& address) const
{
return *theWrappedObject == address;
}
void PythonQtWrapper_QHostAddress::readFrom(QHostAddress* theWrappedObject, QDataStream& arg__1)
{
arg__1 >> *theWrappedObject;
}
QAbstractSocket::NetworkLayerProtocol PythonQtWrapper_QHostAddress::protocol(QHostAddress* theWrappedObject) const
{
return theWrappedObject->protocol();
}
QString PythonQtWrapper_QHostAddress::scopeId(QHostAddress* theWrappedObject) const
{
return theWrappedObject->scopeId();
}
void PythonQtWrapper_QHostAddress::setAddress(QHostAddress* theWrappedObject, const QIPv6Address& ip6Addr)
{
theWrappedObject->setAddress(ip6Addr);
}
bool PythonQtWrapper_QHostAddress::setAddress(QHostAddress* theWrappedObject, const QString& address)
{
return theWrappedObject->setAddress(address);
}
void PythonQtWrapper_QHostAddress::setAddress(QHostAddress* theWrappedObject, unsigned int ip4Addr)
{
theWrappedObject->setAddress(ip4Addr);
}
void PythonQtWrapper_QHostAddress::setScopeId(QHostAddress* theWrappedObject, const QString& id)
{
theWrappedObject->setScopeId(id);
}
unsigned int PythonQtWrapper_QHostAddress::toIPv4Address(QHostAddress* theWrappedObject) const
{
return theWrappedObject->toIPv4Address();
}
QIPv6Address PythonQtWrapper_QHostAddress::toIPv6Address(QHostAddress* theWrappedObject) const
{
return theWrappedObject->toIPv6Address();
}
QString PythonQtWrapper_QHostAddress::toString(QHostAddress* theWrappedObject) const
{
return theWrappedObject->toString();
}