#ifndef LIBIP_INTERFACE_H #define LIBIP_INTERFACE_H #include #include "libip_global.h" class LIBIP_EXPORT Interface : public QObject { //Q_OBJECT // no Q_OBJECT macro here because clang linker complains about missing vtable, probably because we aren't using any signals/slots public: Interface(QString interface); ~Interface(); static QStringList list(); QStringList addresses() const; bool hasCarrier(bool *ok = 0); bool hasAdminLink(bool *ok = 0); int setLinkUp(); int setLinkDown(); int addAddress(QString address) const; int deleteAddress(QString address) const; const QString& name() const; private: QString m_interface; int m_index; }; #endif // LIBIP_INTERFACE_H