#ifndef _SESSIONNAMEWINDOW_H_ #define _SESSIONNAMEWINDOW_H_ #include namespace Ui { class SessionName; } class SessionNameWindow : public QDialog { Q_OBJECT private: Ui::SessionName *ui; public: SessionNameWindow(QWidget *parent = 0); ~SessionNameWindow(); void show(const QString& name); protected: void closeEvent(QCloseEvent *e); private slots: void onOkClicked(); void onGenerateRandomName(); void onDigitDelete(); void onDigitTyped(int); signals: void updateSessionName(); }; #endif