20#ifndef ORES_QT_QUEUE_MONITOR_MDI_WINDOW_HPP
21#define ORES_QT_QUEUE_MONITOR_MDI_WINDOW_HPP
25#include <QSortFilterProxyModel>
26#include "ores.qt/EntityListMdiWindow.hpp"
27#include "ores.qt/ClientManager.hpp"
28#include "ores.qt/ClientQueueModel.hpp"
29#include "ores.logging/make_logger.hpp"
44 inline static std::string_view logger_name =
45 "ores.qt.queue_monitor_mdi_window";
47 [[nodiscard]]
static auto& lg() {
49 static auto instance = make_logger(logger_name);
55 QWidget* parent =
nullptr);
59 void doReload()
override;
62 void statusChanged(
const QString& message);
63 void errorOccurred(
const QString& error_message);
64 void viewChartRequested(
const QString& queueId,
const QString& queueName);
65 void openDetailsRequested(
const QString& queueId,
const QString& queueName);
66 void createQueueRequested();
67 void deleteQueueRequested(
const QString& queueName);
68 void purgeQueueRequested(
const QString& queueName);
72 return tr(
"Refresh queue metrics");
77 void onLoadError(
const QString& error_message,
const QString& details = {});
78 void onSelectionChanged();
79 void onRowDoubleClicked(
const QModelIndex& index);
89 void setupConnections();
90 void updateActionStates();
92 ClientManager* clientManager_;
94 QTableView* tableView_;
95 ClientQueueModel* model_;
96 QSortFilterProxyModel* proxyModel_;
97 QAction* reloadAction_;
98 QAction* chartAction_;
99 QAction* createAction_;
100 QAction* deleteQueueAction_;
101 QAction* purgeAction_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:29
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:109
Base class for entity list MDI windows providing stale indicator support.
Definition EntityListMdiWindow.hpp:62
MDI window for monitoring and managing message queues.
Definition QueueMonitorMdiWindow.hpp:40
QString normalRefreshTooltip() const override
Get the normal (non-stale) tooltip text for the refresh action.
Definition QueueMonitorMdiWindow.hpp:71