2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Allow several accounts in Core::App.

This commit is contained in:
John Preston
2020-06-15 20:25:02 +04:00
parent 815e26eea5
commit 6fc5e22882
36 changed files with 834 additions and 267 deletions

View File

@@ -15,6 +15,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <QtWidgets/QSystemTrayIcon>
namespace Main {
class Session;
class Account;
} // namespace Main
@@ -31,7 +32,7 @@ struct TermsLock;
QImage LoadLogo();
QImage LoadLogoNoMargin();
QIcon CreateIcon(Main::Account *account = nullptr);
QIcon CreateIcon(Main::Session *session = nullptr);
void ConvertIconToBlack(QImage &image);
class MainWindow : public Ui::RpWidget, protected base::Subscriber {
@@ -40,11 +41,11 @@ class MainWindow : public Ui::RpWidget, protected base::Subscriber {
public:
explicit MainWindow(not_null<Controller*> controller);
Window::Controller &controller() const {
[[nodiscard]] Window::Controller &controller() const {
return *_controller;
}
Main::Account &account() const;
Window::SessionController *sessionController() const;
[[nodiscard]] Main::Account &account() const;
[[nodiscard]] Window::SessionController *sessionController() const;
bool hideNoQuit();