From 82aa92021583cbeefe6c0a29181680f3ca1e4242 Mon Sep 17 00:00:00 2001 From: Niklas Date: Wed, 24 Aug 2011 13:58:14 +0200 Subject: added to dialogs. one for the critical error case (abot boot dialog), one for the succesful case (choose interface dialog). also added a new function for testing the connectivity via tcpsocket (or http request). --- workspace/LogReceiver/ndgui.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'workspace/LogReceiver/ndgui.h') diff --git a/workspace/LogReceiver/ndgui.h b/workspace/LogReceiver/ndgui.h index a3b1e70..e8b0b85 100644 --- a/workspace/LogReceiver/ndgui.h +++ b/workspace/LogReceiver/ndgui.h @@ -8,6 +8,8 @@ #include "qboxlayout.h" #include "ui_ndgui.h" #include "logreceiver.h" +#include "chooseinterfacedialog.h" +#include "abortbootdialog.h" class ndgui: public QWidget { Q_OBJECT @@ -24,15 +26,26 @@ public slots: void handleUpdateStatusLabel(QString ifName, QString status); void handleAllProcessesFinished(); + void restartSystem(); + void shutDownSystem(); + void continueBoot(QString ifName); + void showLog(); + + void showAbortBootDialog(); + void showChooseInterfaceDialog(); + private: Ui::ndguiClass ui; LogReceiver logReceiver; - QList finalUsableInterfaces; + QStringList finalUsableInterfaces; int numberOfInterfaces; + ChooseInterfaceDialog *cID; + AbortBootDialog *aBD; + /*gui elements*/ QMap progressBars; QMap statusLabels; @@ -42,6 +55,9 @@ private: QVBoxLayout *interfaceGroupBoxLayout; /**/ + + + /*gui functions*/ void buildGui(); void createInterfaceGroupBox(); -- cgit v1.2.3-55-g7522