// Copyright (c) 2014, Brad Parker // This file is licensed under the BSD 2-clause license. #ifndef QIPROUTE_NEIGHBOR_H #define QIPROUTE_NEIGHBOR_H #include #include #include "qiproute_global.h" class QIPROUTE_EXPORT Neighbor : public QObject { Q_OBJECT 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 // QIPROUTE_NEIGHBOR_H