20#ifndef ORES_QT_COUNTRY_CONTROLLER_HPP
21#define ORES_QT_COUNTRY_CONTROLLER_HPP
25#include "ores.qt/EntityController.hpp"
26#include "ores.refdata/domain/country.hpp"
27#include "ores.logging/make_logger.hpp"
31class DetachableMdiSubWindow;
33class ChangeReasonCache;
42 inline static std::string_view logger_name =
43 "ores.qt.country_controller";
45 [[nodiscard]]
static auto& lg() {
47 static auto instance = make_logger(logger_name);
53 QMainWindow* mainWindow,
58 const QString& username,
59 QObject* parent =
nullptr);
68 void onAddNewRequested();
70 void onShowCountryHistory(
const QString& alpha2Code);
73 void onNotificationReceived(
const QString& eventType,
const QDateTime& timestamp,
74 const QStringList& entityIds);
79 QPointer<DetachableMdiSubWindow> countryListWindow_;
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 country-related windows and operations.
Definition CountryController.hpp:38
void closeAllWindows() override
Closes all windows managed by this controller. Must be implemented by derived classes.
Definition CountryController.cpp:180
void reloadListWindow() override
Reloads the list window. Must be implemented by derived classes.
Definition CountryController.cpp:186
void showListWindow() override
Shows the main list window for this entity. Must be implemented by derived classes.
Definition CountryController.cpp:99
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 country using ISO 3166-1 standard codes.
Definition country.hpp:33