commit
7eb9071b50
7 changed files with 42 additions and 23 deletions
|
|
@ -14,6 +14,7 @@
|
|||
#include "MainWindow.h"
|
||||
#include "UserSettingsPage.h"
|
||||
#include "Utils.h"
|
||||
#include "WebRTCSession.h"
|
||||
|
||||
Nheko::Nheko()
|
||||
{
|
||||
|
|
@ -83,9 +84,9 @@ Nheko::showUserSettingsPage() const
|
|||
}
|
||||
|
||||
void
|
||||
Nheko::openLogoutDialog() const
|
||||
Nheko::logout() const
|
||||
{
|
||||
MainWindow::instance()->openLogoutDialog();
|
||||
ChatPage::instance()->initiateLogout();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public:
|
|||
Q_INVOKABLE void openLink(QString link) const;
|
||||
Q_INVOKABLE void setStatusMessage(QString msg) const;
|
||||
Q_INVOKABLE void showUserSettingsPage() const;
|
||||
Q_INVOKABLE void openLogoutDialog() const;
|
||||
Q_INVOKABLE void logout() const;
|
||||
Q_INVOKABLE void openCreateRoomDialog() const;
|
||||
Q_INVOKABLE void openJoinRoomDialog() const;
|
||||
Q_INVOKABLE void reparent(QWindow *win) const;
|
||||
|
|
@ -60,6 +60,8 @@ signals:
|
|||
void colorsChanged();
|
||||
void profileChanged();
|
||||
|
||||
void openLogoutDialog();
|
||||
|
||||
private:
|
||||
QScopedPointer<UserProfile> currentUser_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue