#pragma once #include class QPushButton; class TextField; namespace dialogs { class JoinRoom : public QFrame { Q_OBJECT public: JoinRoom(QWidget *parent = nullptr); signals: void joinRoom(const QString &room); protected: void showEvent(QShowEvent *event) override; private slots: void handleInput(); private: QPushButton *confirmBtn_; QPushButton *cancelBtn_; TextField *roomInput_; }; } // dialogs