matrixion/src/dialogs/JoinRoom.h

37 lines
582 B
C
Raw Normal View History

2021-03-05 02:35:15 +03:00
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QFrame>
2018-09-19 22:42:26 +03:00
class QPushButton;
2017-12-10 16:22:01 +03:00
class TextField;
namespace dialogs {
class JoinRoom : public QFrame
{
Q_OBJECT
public:
JoinRoom(QWidget *parent = nullptr);
signals:
2018-09-19 22:42:26 +03:00
void joinRoom(const QString &room);
2017-12-10 16:22:01 +03:00
protected:
void showEvent(QShowEvent *event) override;
private slots:
void handleInput();
private:
2018-09-19 22:42:26 +03:00
QPushButton *confirmBtn_;
QPushButton *cancelBtn_;
2017-12-10 16:22:01 +03:00
TextField *roomInput_;
};
} // dialogs