26 lines
668 B
C++
26 lines
668 B
C++
#ifndef DLG_CONNECT_H
|
|
#define DLG_CONNECT_H
|
|
|
|
#include <QDialog>
|
|
#include <QLineEdit>
|
|
|
|
class QLabel;
|
|
class QPushButton;
|
|
|
|
class DlgConnect : public QDialog {
|
|
Q_OBJECT
|
|
public:
|
|
DlgConnect(QWidget *parent = 0);
|
|
QString getHost() const { return hostEdit->text(); }
|
|
int getPort() const { return portEdit->text().toInt(); }
|
|
QString getPlayerName() const { return playernameEdit->text(); }
|
|
QString getPassword() const { return passwordEdit->text(); }
|
|
private slots:
|
|
void actOk();
|
|
private:
|
|
QLabel *hostLabel, *portLabel, *playernameLabel, *passwordLabel;
|
|
QLineEdit *hostEdit, *portEdit, *playernameEdit, *passwordEdit;
|
|
QPushButton *okButton, *cancelButton;
|
|
};
|
|
|
|
#endif
|