diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-04-11 17:45:47 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-04-11 17:45:47 +0300 |
commit | 6468faa39eda494d83310bec4a557d29bf037f8a (patch) | |
tree | c4a2632730c99500871fbc3a8f5d746585507089 /include/MainWindow.h | |
parent | 0770f6e6b5099602def4966174ece8789996a78c (diff) |
Use only a MatrixClient as a shared pointer
Diffstat (limited to 'include/MainWindow.h')
-rw-r--r-- | include/MainWindow.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/MainWindow.h b/include/MainWindow.h index dbbda3f2..89d1df45 100644 --- a/include/MainWindow.h +++ b/include/MainWindow.h @@ -19,6 +19,7 @@ #define MAINWINDOW_H #include <QMainWindow> +#include <QSharedPointer> #include "ChatPage.h" #include "LoginPage.h" @@ -53,12 +54,6 @@ public slots: // Show the chat page and start communicating with the given access token. void showChatPage(QString user_id, QString home_server, QString token); - // Performs the actual login. - void matrixLogin(const QString &username, const QString &password, const QString &home_server); - - // Performs the actual registration. - void matrixRegister(const QString &username, const QString &password, const QString &server); - private: // The UI component of the main window. Ui::MainWindow *ui_; @@ -78,7 +73,8 @@ private: // The main chat area. ChatPage *chat_page_; - MatrixClient *matrix_client_; + // Matrix Client API provider. + QSharedPointer<MatrixClient> client_; }; #endif // MAINWINDOW_H |