20#ifndef ORES_QT_CURRENCY_CONTROLLER_HPP
21#define ORES_QT_CURRENCY_CONTROLLER_HPP
25#include "ores.qt/EntityController.hpp"
26#include "ores.refdata/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);
124 void onAddNewRequested();
146 void onShowCurrencyHistory(
const QString& isoCode);
180 void onNotificationReceived(
const QString& eventType,
const QDateTime& timestamp,
181 const QStringList& entityIds);
201 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:35
Shared cache for change reasons used across all entity dialogs.
Definition ChangeReasonCache.hpp:47
Manages the lifecycle of the network client and IO context.
Definition ClientManager.hpp:90
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:189
void reloadListWindow() override
Reloads the list window. Must be implemented by derived classes.
Definition CurrencyController.cpp:200
~CurrencyController() override
Destroys the currency controller.
Definition CurrencyController.cpp:93
void showListWindow() override
Shows the currency list window.
Definition CurrencyController.cpp:103
Abstract base class for entity controllers.
Definition EntityController.hpp:50
Cache for dynamically loaded images (flags, icons) from the server.
Definition ImageCache.hpp:52
Represents a currency with its metadata and formatting rules.
Definition currency.hpp:33