PythonQtWrapper_QNetworkInterface.h
38 lines
| 1.7 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QNETWORKINTERFACE_H | ||
#define PYTHONQTWRAPPER_QNETWORKINTERFACE_H | ||||
#include <qnetworkinterface.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qhostaddress.h> | ||||
#include <qlist.h> | ||||
#include <qnetworkinterface.h> | ||||
class PythonQtWrapper_QNetworkInterface : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(InterfaceFlag ) | ||||
florianlink
|
r73 | Q_FLAGS(InterfaceFlags ) | ||
florianlink
|
r13 | enum InterfaceFlag{ | ||
IsUp = QNetworkInterface::IsUp, IsRunning = QNetworkInterface::IsRunning, CanBroadcast = QNetworkInterface::CanBroadcast, IsLoopBack = QNetworkInterface::IsLoopBack, IsPointToPoint = QNetworkInterface::IsPointToPoint, CanMulticast = QNetworkInterface::CanMulticast}; | ||||
florianlink
|
r73 | Q_DECLARE_FLAGS(InterfaceFlags, InterfaceFlag) | ||
florianlink
|
r13 | public slots: | ||
QNetworkInterface* new_QNetworkInterface(); | ||||
QNetworkInterface* new_QNetworkInterface(const QNetworkInterface& other); | ||||
void delete_QNetworkInterface(QNetworkInterface* obj) { delete obj; } | ||||
florianlink
|
r24 | QList<QHostAddress > static_QNetworkInterface_allAddresses(); | ||
florianlink
|
r73 | QNetworkInterface::InterfaceFlags flags(QNetworkInterface* theWrappedObject) const; | ||
florianlink
|
r28 | QString name(QNetworkInterface* theWrappedObject) const; | ||
florianlink
|
r24 | QString hardwareAddress(QNetworkInterface* theWrappedObject) const; | ||
florianlink
|
r73 | QList<QNetworkAddressEntry > addressEntries(QNetworkInterface* theWrappedObject) const; | ||
bool isValid(QNetworkInterface* theWrappedObject) const; | ||||
florianlink
|
r28 | QNetworkInterface static_QNetworkInterface_interfaceFromIndex(int index); | ||
florianlink
|
r73 | QList<QNetworkInterface > static_QNetworkInterface_allInterfaces(); | ||
QNetworkInterface static_QNetworkInterface_interfaceFromName(const QString& name); | ||||
QString toString(QNetworkInterface*); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QNETWORKINTERFACE_H | ||||