From 3c429677e0d34c2de3d2270842b28744f91c63dd Mon Sep 17 00:00:00 2001 From: Niklas Date: Mon, 18 Jul 2011 16:57:52 +0200 Subject: made a small gui. Interfac names and progressbars will be added dynamicaly. --- workspace/LogReceiver/logreceiver.h | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'workspace/LogReceiver/logreceiver.h') 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 #include +#include +#include +#include +#include +#include #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 interfacesMap; QMap clients; QMap clientProcesses; QString pathToDhcpcdExe; QStringList dhcpcdArguments; + /**/ + QStringList blackList; + + /*gui elements*/ + QMap progressBars; + QLabel *ndStatusLabel; + QGroupBox *interfaceGroupBox; + QVBoxLayout *mainLayout; + QVBoxLayout *interfaceGroupBoxLayout; + /**/ + void runDHCPCD(QList &interfaces); - void getListOfNetworkInterfaces(); + void runDHCPCD(QString interface); + QList getListOfNetworkInterfaces(); + + /*gui functions*/ + void buildGui(); + void createInterfaceGroupBox(); + void addInterfacesToGroupBox(QMap &interfaces); }; #endif // LOGRECEIVER_H -- cgit v1.2.3-55-g7522