From 4a80fdc951b57647ce9404bbbfe306b459c84f57 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 24 Jan 2022 00:41:55 +0100 Subject: Functional login page --- src/MainWindow.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/MainWindow.h') diff --git a/src/MainWindow.h b/src/MainWindow.h index ea919f4d..5a351893 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -20,7 +20,6 @@ class ChatPage; class RegisterPage; -class LoginPage; class WelcomePage; class LoadingIndicator; @@ -65,6 +64,9 @@ public: MxcImageProvider *imageProvider() { return imgProvider; } + //! Show the chat page and start communicating with the given access token. + void showChatPage(); + protected: void closeEvent(QCloseEvent *event); bool event(QEvent *event) override; @@ -76,15 +78,9 @@ private slots: //! Show the welcome page in the main window. void showWelcomePage(); - //! Show the login page in the main window. - void showLoginPage(); - //! Show the register page in the main window. void showRegisterPage(); - //! Show the chat page and start communicating with the given access token. - void showChatPage(); - void showOverlayProgressBar(); void removeOverlayProgressBar(); @@ -96,6 +92,7 @@ signals: void switchToChatPage(); void switchToWelcomePage(); + void switchToLoginPage(QString error); private: void showDialog(QWidget *dialog); @@ -112,8 +109,6 @@ private: //! The initial welcome screen. WelcomePage *welcome_page_; - //! The login screen. - LoginPage *login_page_; //! The register page. RegisterPage *register_page_; //! The main chat area. -- cgit 1.5.1