PythonQtWrapper_QNetworkInterface.cpp
70 lines
| 2.0 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QNetworkInterface.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qhostaddress.h> | ||||
#include <qlist.h> | ||||
#include <qnetworkinterface.h> | ||||
QNetworkInterface* PythonQtWrapper_QNetworkInterface::new_QNetworkInterface() | ||||
{ | ||||
return new QNetworkInterface(); } | ||||
QNetworkInterface* PythonQtWrapper_QNetworkInterface::new_QNetworkInterface(const QNetworkInterface& other) | ||||
{ | ||||
return new QNetworkInterface(other); } | ||||
florianlink
|
r73 | QList<QHostAddress > PythonQtWrapper_QNetworkInterface::static_QNetworkInterface_allAddresses() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QNetworkInterface::allAddresses()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QNetworkInterface::InterfaceFlags PythonQtWrapper_QNetworkInterface::flags(QNetworkInterface* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->flags()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QNetworkInterface::name(QNetworkInterface* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->name()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QNetworkInterface::hardwareAddress(QNetworkInterface* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->hardwareAddress()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QList<QNetworkAddressEntry > PythonQtWrapper_QNetworkInterface::addressEntries(QNetworkInterface* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->addressEntries()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QNetworkInterface::isValid(QNetworkInterface* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isValid()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QNetworkInterface PythonQtWrapper_QNetworkInterface::static_QNetworkInterface_interfaceFromIndex(int index) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QNetworkInterface::interfaceFromIndex(index)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QList<QNetworkInterface > PythonQtWrapper_QNetworkInterface::static_QNetworkInterface_allInterfaces() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QNetworkInterface::allInterfaces()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QNetworkInterface PythonQtWrapper_QNetworkInterface::static_QNetworkInterface_interfaceFromName(const QString& name) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QNetworkInterface::interfaceFromName(name)); | ||
} | ||||
QString PythonQtWrapper_QNetworkInterface::toString(QNetworkInterface* obj) { | ||||
QString result; | ||||
QDebug d(&result); | ||||
d << *obj; | ||||
return result; | ||||
florianlink
|
r13 | } | ||