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.
|
|
|
#ifndef INTERFACE_H
|
|
|
|
#define INTERFACE_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class Q_DECL_EXPORT Interface : public QObject {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
Interface(QString interface);
|
|
|
|
static QStringList list();
|
|
|
|
QStringList addresses() const;
|
|
|
|
bool hasCarrier();
|
|
|
|
void addAddress(QString address) const;
|
|
|
|
void deleteAddress(QString address) const;
|
|
|
|
const QString& name() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString m_interface;
|
|
|
|
int m_index;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INTERFACE_H
|