-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetuptcpdialog.h
47 lines (34 loc) · 869 Bytes
/
setuptcpdialog.h
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
45
46
47
#ifndef SETUPTCPDIALOG_H
#define SETUPTCPDIALOG_H
#include <QDialog>
#include <QTcpSocket>
#include <QDebug>
namespace Ui {
class SetupTcpDialog;
}
class SetupTcpDialog : public QDialog
{
Q_OBJECT
public:
explicit SetupTcpDialog(QWidget *parent = 0);
~SetupTcpDialog();
QString getIpAdress() const;
void setIpAdress(const QString &value);
quint16 getPortNumber() const;
void setPortNumber(const quint16 &value);
private slots:
void on_pushButton_clicked();
void on_checkBox_clicked();
void on_pushButton_2_clicked();
signals:
void newIpAndPort(QString ipAdress, quint16 portNumber);
private:
Ui::SetupTcpDialog *ui;
void setDefaultValue();
void updateIpAndPort();
QString ipAdress;
quint16 portNumber;
QString defaultIpAdress;
quint16 defaultPortNumber;
};
#endif // SETUPTCPDIALOG_H