save/restore login information

This commit is contained in:
Max-Wilhelm Bruker 2009-06-19 21:19:02 +02:00
parent a246a8d561
commit be9ac2e061
3 changed files with 36 additions and 34 deletions

View file

@ -2,19 +2,21 @@
#define DLG_CONNECT_H
#include <QDialog>
#include <QLineEdit>
class QLabel;
class QLineEdit;
class QPushButton;
class DlgConnect : public QDialog {
Q_OBJECT
public:
DlgConnect(QWidget *parent = 0);
QString getHost();
int getPort();
QString getPlayerName();
QString getPassword();
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;