##// END OF EJS Templates
- added hasOwner method to manage ownership more nicely...
- added hasOwner method to manage ownership more nicely - added force flag to make delete() work - added check for hasOwner git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@51 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

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