diff options
Diffstat (limited to 'workspace/LogReceiver/logreceiver.h')
| -rw-r--r-- | workspace/LogReceiver/logreceiver.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/workspace/LogReceiver/logreceiver.h b/workspace/LogReceiver/logreceiver.h index 0c9df48..2457933 100644 --- a/workspace/LogReceiver/logreceiver.h +++ b/workspace/LogReceiver/logreceiver.h @@ -3,6 +3,11 @@ #include <QDialog> #include <QtGui/QWidget> +#include <qprocess.h> +#include <qnetworkinterface.h> +#include <qprogressbar.h> +#include <qboxlayout.h> +#include <qgroupbox.h> #include "ui_logreceiver.h" class QLabel; @@ -22,6 +27,7 @@ private slots: void handleNewInput(); void handleProcessFinished(int exitCode, QProcess::ExitStatus exitStatus); void handleProcessStarted(); + void handleProgress(int iFaceIndex, int newValue); private: Ui::LogReceiverClass ui; @@ -29,13 +35,31 @@ private: QPushButton *quitButton; QLocalServer *server; quint16 blockSize; + QMap<int, QNetworkInterface > interfacesMap; QMap<QLocalSocket *, QLocalSocket *> clients; QMap<Q_PID, QProcess * > clientProcesses; QString pathToDhcpcdExe; QStringList dhcpcdArguments; + /**/ + QStringList blackList; + + /*gui elements*/ + QMap<int , QProgressBar *> progressBars; + QLabel *ndStatusLabel; + QGroupBox *interfaceGroupBox; + QVBoxLayout *mainLayout; + QVBoxLayout *interfaceGroupBoxLayout; + /**/ + void runDHCPCD(QList<QNetworkInterface> &interfaces); - void getListOfNetworkInterfaces(); + void runDHCPCD(QString interface); + QList<QNetworkInterface> getListOfNetworkInterfaces(); + + /*gui functions*/ + void buildGui(); + void createInterfaceGroupBox(); + void addInterfacesToGroupBox(QMap<int, QNetworkInterface > &interfaces); }; #endif // LOGRECEIVER_H |
