summaryrefslogtreecommitdiffstats
path: root/LogReceiver/chooseinterfacedialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'LogReceiver/chooseinterfacedialog.h')
-rw-r--r--LogReceiver/chooseinterfacedialog.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/LogReceiver/chooseinterfacedialog.h b/LogReceiver/chooseinterfacedialog.h
new file mode 100644
index 0000000..48ee038
--- /dev/null
+++ b/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