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