#ifndef LOGRECEIVER_H #define LOGRECEIVER_H #include #include #include #include #include #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(); void handleProgress(int iFaceIndex, int newValue); private: Ui::LogReceiverClass ui; QLabel *statusLabel; QPushButton *quitButton; QLocalServer *server; quint16 blockSize; QMap interfacesMap; QMap indexToIfaceNameMap; QMap clients; QMap clientProcesses; QString pathToDhcpcdExe; QStringList dhcpcdArguments; /*gui elements*/ QMap progressBars; QLabel *ndStatusLabel; QGroupBox *interfaceGroupBox; QVBoxLayout *mainLayout; QVBoxLayout *interfaceGroupBoxLayout; /**/ void runDHCPCD(QList &interfaces); void runDHCPCD(QString interface); QList getListOfNetworkInterfaces(); /*gui functions*/ void buildGui(); void createInterfaceGroupBox(); void addInterfacesToGroupBox(QMap &interfaces); bool checkBlackList(QString i); }; #endif // LOGRECEIVER_H