You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
645 B

#ifndef LIBIP_NEIGHBOR_H
#define LIBIP_NEIGHBOR_H
#include <QObject>
#include <QHash>
#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<QString, QString> list(bool *ok = 0);
static QHash<QString, QString> list(QString interface = QString(), bool *ok = 0);
const QString& name() const;
private:
QString m_interface;
};
#endif // LIBIP_NEIGHBOR_H