#ifndef LOGRECEIVER_H #define LOGRECEIVER_H #include #include #include "ui_logreceiver.h" class QLabel; class QPushButton; class QLocalServer; class QLocalSocket; class LogReceiver: public QDialog { Q_OBJECT public: LogReceiver(QWidget *parent = 0); ~LogReceiver(); private slots: void handleNewConnection(); void handleNewInput(); void handleProcessFinished(int exitCode, QProcess::ExitStatus exitStatus); void handleProcessStarted(); private: Ui::LogReceiverClass ui; QLabel *statusLabel; QPushButton *quitButton; QLocalServer *server; quint16 blockSize; QMap clients; QMap clientProcesses; QString pathToDhcpcdExe; QStringList dhcpcdArguments; void runDHCPCD(QList &interfaces); void getListOfNetworkInterfaces(); }; #endif // LOGRECEIVER_H