-
Notifications
You must be signed in to change notification settings - Fork 1
/
connectiondialog.h
executable file
·48 lines (38 loc) · 1.04 KB
/
connectiondialog.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
48
#ifndef CONNECTIONDIALOG_H
#define CONNECTIONDIALOG_H
#include <QDialog>
class QPushButton;
class QLabel;
class QLineEdit;
class ConnectionDialog : public QDialog {
Q_OBJECT
public:
explicit ConnectionDialog(QWidget *parent = 0);
const QString host() const;
int port() const;
const QString dbname() const;
const QString user() const;
const QString password() const;
void setHost(const QString &str);
void setPort(int port);
void setDBName(const QString &str);
void setUser(const QString &str);
void setPassword(const QString &str);
private slots:
void checkConnection();
private:
QPushButton *buttonOk;
QPushButton *buttonCancel;
QPushButton *buttonCheckConnection;
QLabel *hostLabel;
QLabel *portLabel;
QLabel *dbnameLabel;
QLabel *userLabel;
QLabel *passwordLabel;
QLineEdit *hostEdit;
QLineEdit *portEdit;
QLineEdit *dbnameEdit;
QLineEdit *userEdit;
QLineEdit *passwordEdit;
};
#endif // CONNECTIONDIALOG_H