20#ifndef ORES_QT_CURRENCY_CONTROLLER_HPP
21#define ORES_QT_CURRENCY_CONTROLLER_HPP
25#include "ores.qt/EntityController.hpp"
26#include "ores.refdata.api/domain/currency.hpp"
27#include "ores.logging/make_logger.hpp"
31class DetachableMdiSubWindow;
33class ChangeReasonCache;
57 inline static std::string_view logger_name =
58 "ores.qt.currency_controller";
60 [[nodiscard]]
static auto& lg() {
62 static auto instance = make_logger(logger_name);
79 QMainWindow* mainWindow,
84 const QString& username,
85 QObject* parent =
nullptr);
118 void showRoundingTypesRequested();
119 void showMonetaryNaturesRequested();
120 void showMarketTiersRequested();
129 void onAddNewRequested();
151 void onShowCurrencyHistory(
const QString& isoCode);
185 void onNotificationReceived(
const QString& eventType,
const QDateTime& timestamp,
186 const QStringList& entityIds,
const QString& tenantId);
206 QPointer<DetachableMdiSubWindow> currencyListWindow_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:29
Shared cache for change reasons used across all entity dialogs.
Definition ChangeReasonCache.hpp:47
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:109
Controller managing all currency-related windows and operations.
Definition CurrencyController.hpp:53
void closeAllWindows() override
Closes all windows managed by this controller.
Definition CurrencyController.cpp:194
void reloadListWindow() override
Reloads the list window. Must be implemented by derived classes.
Definition CurrencyController.cpp:205
~CurrencyController() override
Destroys the currency controller.
Definition CurrencyController.cpp:90
void showListWindow() override
Shows the currency list window.
Definition CurrencyController.cpp:100
Abstract base class for entity controllers.
Definition EntityController.hpp:50
Cache for dynamically loaded images (flags, icons) from the server.
Definition ImageCache.hpp:53
Represents a currency with its metadata and formatting rules.
Definition currency.hpp:34