diff -r 8054d9d775fd -r 2759212a27de QTfrontend/ui/widget/roomnameprompt.h --- a/QTfrontend/ui/widget/roomnameprompt.h Fri Oct 11 17:43:13 2013 +0200 +++ b/QTfrontend/ui/widget/roomnameprompt.h Sat Jan 04 23:55:54 2014 +0400 @@ -23,6 +23,7 @@ class QLineEdit; class QLabel; +class QCheckBox; class RoomNamePrompt : public QDialog { @@ -30,16 +31,17 @@ public: RoomNamePrompt(QWidget* parent, const QString & roomName); + QString getRoomName(); + QString getPassword(); - signals: - void roomNameChosen(const QString & roomName); + private: + QLineEdit * leRoomName; + QLabel * label; + QCheckBox * cbSetPassword; + QLineEdit * lePassword; private slots: - void setRoomName(); - - private: - QLineEdit * editBox; - QLabel * label; + void checkBoxToggled(); }; #endif // ROOMNAMEPROMPT_H