#ifndef ARPPINGDIALOG_H #define ARPPINGDIALOG_H #include #include #include #include "arp.h" namespace Ui { class ArpPingDialog; } class ArpPingDialog : public QDialog { Q_OBJECT public: ArpPingDialog(Arp *arp, QWidget *parent = 0); ~ArpPingDialog(); void reset(); static const int second = 1000; public slots: void stop(); private slots: void ping(); signals: void clearMacList(); protected: void changeEvent(QEvent *e); private: Ui::ArpPingDialog *ui; Arp *arp; QTimer *timer; unsigned char ip[IP_ALEN]; unsigned char ipTo[IP_ALEN]; QString mac; private slots: void on_buttonAction_clicked(); }; #endif // ARPPINGDIALOG_H