20#ifndef ORES_QT_JOB_INSTANCE_CONTROLLER_HPP
21#define ORES_QT_JOB_INSTANCE_CONTROLLER_HPP
25#include "ores.qt/EntityController.hpp"
26#include "ores.qt/ClientManager.hpp"
27#include "ores.qt/EntityListMdiWindow.hpp"
28#include "ores.logging/make_logger.hpp"
29#include "ores.scheduler.api/messaging/scheduler_protocol.hpp"
33class JobInstanceMdiWindow;
34class DetachableMdiSubWindow;
43 inline static std::string_view logger_name =
44 "ores.qt.job_instance_controller";
45 static constexpr std::string_view event_subject =
46 "scheduler.v1.job-instance-events";
48 [[nodiscard]]
static auto& lg() {
50 static auto instance = make_logger(logger_name);
56 QMainWindow* mainWindow,
59 QObject* parent =
nullptr);
66 void statusMessage(
const QString& message);
67 void errorMessage(
const QString& error);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AccountController.hpp:32
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:123
QMdiSubWindow that can be detached to become a floating window.
Definition DetachableMdiSubWindow.hpp:40
Abstract base class for entity controllers.
Definition EntityController.hpp:52
Base class for entity list MDI windows providing stale indicator support.
Definition EntityListMdiWindow.hpp:63
Controller for the job-instance execution history window.
Definition JobInstanceController.hpp:39
void closeAllWindows() override
Closes all windows managed by this controller. Must be implemented by derived classes.
Definition JobInstanceController.cpp:83
void reloadListWindow() override
Reloads the list window. Must be implemented by derived classes.
Definition JobInstanceController.cpp:92
EntityListMdiWindow * listWindow() const override
Returns the list window for marking as stale on notifications.
Definition JobInstanceController.cpp:96
void showListWindow() override
Shows the main list window for this entity. Must be implemented by derived classes.
Definition JobInstanceController.cpp:45
MDI window showing the global job-instance execution history.
Definition JobInstanceMdiWindow.hpp:43
A job_instance enriched with the parent job's display name.
Definition scheduler_protocol.hpp:122