20#ifndef ORES_QT_ACCOUNT_CONTROLLER_HPP
21#define ORES_QT_ACCOUNT_CONTROLLER_HPP
26#include <boost/uuid/uuid.hpp>
27#include "ores.qt/EntityController.hpp"
28#include "ores.qt/ClientAccountModel.hpp"
29#include "ores.logging/make_logger.hpp"
30#include "ores.iam.api/domain/account.hpp"
33namespace ores::qt {
class BadgeCache; }
37class DetachableMdiSubWindow;
60 inline static std::string_view logger_name =
61 "ores.qt.account_controller";
63 [[nodiscard]]
static auto& lg() {
65 static auto instance = make_logger(logger_name);
80 QMainWindow* mainWindow,
83 const QString& username,
86 QObject* parent =
nullptr);
125 void onAddNewRequested();
146 void onShowAccountHistory(
const QString& username);
157 void onShowSessionHistory(
const boost::uuids::uuid& accountId,
158 const QString& username);
191 void onNotificationReceived(
const QString& eventType,
const QDateTime& timestamp,
192 const QStringList& entityIds,
const QString& tenantId);
204 void showDetailWindow(
const std::optional<AccountWithLoginInfo>& accountWithLoginInfo);
211 void markAccountListAsStale();
220 QPointer<DetachableMdiSubWindow> accountListWindow_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AccountController.hpp:32
Represents an account for an entity in the system.
Definition account.hpp:34
Controller managing all account-related windows and operations.
Definition AccountController.hpp:56
void closeAllWindows() override
Closes all windows managed by this controller.
Definition AccountController.cpp:174
void reloadListWindow() override
Reloads the list window. Must be implemented by derived classes.
Definition AccountController.cpp:180
~AccountController() override
Destroys the account controller.
Definition AccountController.cpp:93
void showListWindow() override
Shows the account list window.
Definition AccountController.cpp:103
Composite structure combining account with its login status.
Definition ClientAccountModel.hpp:59
Client-side cache of badge definitions and mappings.
Definition BadgeCache.hpp:47
Shared cache for change reasons used across all entity dialogs.
Definition ChangeReasonCache.hpp:48
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:123
Abstract base class for entity controllers.
Definition EntityController.hpp:52