servatrice/cockatrice/src/dlg_connect.h
2009-06-19 21:19:02 +02:00

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