20#ifndef ORES_QT_ACCOUNT_CONTROLLER_HPP
21#define ORES_QT_ACCOUNT_CONTROLLER_HPP
27#include "ores.qt/EntityController.hpp"
28#include "ores.qt/ClientAccountModel.hpp"
29#include "ores.utility/log/make_logger.hpp"
30#include "ores.accounts/domain/account.hpp"
34class DetachableMdiSubWindow;
57 inline static std::string_view logger_name =
58 "ores.qt.account_controller";
60 [[nodiscard]]
static auto& lg() {
62 static auto instance = make_logger(logger_name);
79 QMainWindow* mainWindow,
82 const QString& username,
83 QList<DetachableMdiSubWindow*>& allDetachableWindows,
84 QObject* parent =
nullptr);
121 void onAddNewRequested();
142 void onShowAccountHistory(
const QString& username);
153 void onNotificationReceived(
const QString& eventType,
const QDateTime& timestamp);
165 void showDetailWindow(
const std::optional<AccountWithLoginInfo>& accountWithLoginInfo);
172 void markAccountListAsStale();
181 QList<DetachableMdiSubWindow*>& allDetachableWindows_;
190 QPointer<DetachableMdiSubWindow> accountListWindow_;
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:35
Implements logging for ORE Studio.
Definition lifecycle_manager.hpp:30
Controller managing all account-related windows and operations.
Definition AccountController.hpp:53
void closeAllWindows() override
Closes all windows managed by this controller.
Definition AccountController.cpp:163
~AccountController() override
Destroys the account controller.
Definition AccountController.cpp:81
void showListWindow() override
Shows the account list window.
Definition AccountController.cpp:91
Composite structure combining account with its login status.
Definition ClientAccountModel.hpp:57
Manages the lifecycle of the network client and IO context.
Definition ClientManager.hpp:56
Abstract base class for entity controllers.
Definition EntityController.hpp:43