#ifndef LIBIP_NEIGHBOR_H #define LIBIP_NEIGHBOR_H #include #include #include "libip_global.h" class LIBIP_EXPORT Neighbor : 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: Neighbor(QString interface = QString()); ~Neighbor(); QString macOfIP(QString ip, bool *ok = 0) const; QHash list(bool *ok = 0); static QHash list(QString interface = QString(), bool *ok = 0); const QString& name() const; private: QString m_interface; }; #endif // LIBIP_NEIGHBOR_H