summaryrefslogtreecommitdiffstats
path: root/workspace/LogReceiver/chooseinterfacedialog.h
blob: 48ee038b427d5629e15fc5cab84115b51e1f498e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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