summaryrefslogtreecommitdiffstats
path: root/workspace/LogReceiver/chooseinterfacedialog.h
diff options
context:
space:
mode:
authorNiklas2011-08-24 13:58:14 +0200
committerNiklas2011-08-24 13:58:14 +0200
commit82aa92021583cbeefe6c0a29181680f3ca1e4242 (patch)
tree567a26262e61a858433d7f5feb524a96509afa74 /workspace/LogReceiver/chooseinterfacedialog.h
parentadded a additional status label and some signals (diff)
downloadfbgui-82aa92021583cbeefe6c0a29181680f3ca1e4242.tar.gz
fbgui-82aa92021583cbeefe6c0a29181680f3ca1e4242.tar.xz
fbgui-82aa92021583cbeefe6c0a29181680f3ca1e4242.zip
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).
Diffstat (limited to 'workspace/LogReceiver/chooseinterfacedialog.h')
-rw-r--r--workspace/LogReceiver/chooseinterfacedialog.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/workspace/LogReceiver/chooseinterfacedialog.h b/workspace/LogReceiver/chooseinterfacedialog.h
new file mode 100644
index 0000000..48ee038
--- /dev/null
+++ b/workspace/LogReceiver/chooseinterfacedialog.h
@@ -0,0 +1,44 @@
+#ifndef CHOOSEINTERFACEDIALOG_H
+#define CHOOSEINTERFACEDIALOG_H
+
+#include <QDialog>
+#include "qboxlayout.h"
+#include "qgroupbox.h"
+#include "qcombobox.h"
+#include "qlabel.h"
+
+class ChooseInterfaceDialog : public QDialog
+{
+ Q_OBJECT
+public:
+ explicit ChooseInterfaceDialog(QStringList &interfaces, QWidget *parent = 0);
+private slots:
+ void continueButtonClicked();
+ void shutDownButtonClicked();
+ void restartButtonClicked();
+ void timerLabelUpdate();
+
+private:
+ QVBoxLayout *mainLayout;
+ QGroupBox *contentGroupBox;
+ QGroupBox *buttonGroupBox;
+ QComboBox *comboBox;
+ QLabel *timerLabel;
+ QTimer *timer;
+ int oneMinuteCountdown;
+
+ void createContentGroupBox(QStringList &interfaces);
+ void createButtonGroupBox();
+ void createTimer();
+
+signals:
+ void continueSignal(QString ifName);
+ void shutDownSignal();
+ void restartSignal();
+
+
+public slots:
+
+};
+
+#endif // CHOOSEINTERFACEDIALOG_H