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.
26 lines
621 B
26 lines
621 B
// Copyright (c) 2014, Brad Parker
|
|
// This file is licensed under the BSD 2-clause license.
|
|
|
|
#ifndef QIPROUTE_NEIGHBOR_H
|
|
#define QIPROUTE_NEIGHBOR_H
|
|
|
|
#include <QObject>
|
|
#include <QHash>
|
|
#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<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 // QIPROUTE_NEIGHBOR_H
|
|
|