20#ifndef ORES_QT_FEATURE_FLAG_CONTROLLER_HPP
21#define ORES_QT_FEATURE_FLAG_CONTROLLER_HPP
24#include "ores.qt/EntityController.hpp"
25#include "ores.logging/make_logger.hpp"
26#include "ores.variability/domain/feature_flags.hpp"
30class FeatureFlagMdiWindow;
31class FeatureFlagDetailDialog;
43 inline static std::string_view logger_name =
44 "ores.qt.feature_flag_controller";
46 [[nodiscard]]
static auto& lg() {
48 static auto instance = make_logger(logger_name);
54 QMainWindow* mainWindow,
57 const QString& username,
58 QObject* parent =
nullptr);
67 void onAddNewRequested();
69 void onShowHistory(
const QString& name);
70 void onFeatureFlagSaved(
const QString& name);
71 void onFeatureFlagDeleted(
const QString& name);
72 void onNotificationReceived(
const QString& eventType,
const QDateTime& timestamp,
73 const QStringList& entityIds);
80 bool createMode =
false);
81 void showHistoryWindow(
const QString& name);
82 void refreshListWindow();
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:35
Manages the lifecycle of the network client and IO context.
Definition ClientManager.hpp:90
QMdiSubWindow that can be detached to become a floating window.
Definition DetachableMdiSubWindow.hpp:39
Abstract base class for entity controllers.
Definition EntityController.hpp:50
Controller for feature flag management windows.
Definition FeatureFlagController.hpp:39
void closeAllWindows() override
Closes all windows managed by this controller. Must be implemented by derived classes.
Definition FeatureFlagController.cpp:149
void reloadListWindow() override
Reloads the list window. Must be implemented by derived classes.
Definition FeatureFlagController.cpp:165
void showListWindow() override
Shows the main list window for this entity. Must be implemented by derived classes.
Definition FeatureFlagController.cpp:96
MDI window for displaying and managing feature flags.
Definition FeatureFlagMdiWindow.hpp:41
Represents a feature flag in the domain layer.
Definition feature_flags.hpp:31