代码拉取完成,页面将自动刷新
From 04c75fead86336069593203cc33eadd63767f77a Mon Sep 17 00:00:00 2001
From: Robert Altnoeder <robert.altnoeder@linbit.com>
Date: Thu, 15 Feb 2024 16:23:49 +0100
Subject: [PATCH 063/100] DRBDmon: DisplayController: Add peer volume details &
actions displays
---
user/drbdmon/terminal/DisplayController.cpp | 12 ++++++++++++
user/drbdmon/terminal/DisplayController.h | 2 ++
2 files changed, 14 insertions(+)
diff --git a/user/drbdmon/terminal/DisplayController.cpp b/user/drbdmon/terminal/DisplayController.cpp
index 9bce92d0..26f67790 100644
--- a/user/drbdmon/terminal/DisplayController.cpp
+++ b/user/drbdmon/terminal/DisplayController.cpp
@@ -13,6 +13,8 @@
#include <terminal/MDspConnectionDetail.h>
#include <terminal/MDspConnectionActions.h>
#include <terminal/MDspPeerVolumes.h>
+#include <terminal/MDspPeerVolumeDetail.h>
+#include <terminal/MDspPeerVolumeActions.h>
#include <terminal/MDspTaskQueue.h>
#include <terminal/MDspTaskDetail.h>
#include <terminal/MDspHelpIndex.h>
@@ -152,6 +154,12 @@ DisplayController::DisplayController(
peer_volume_view_mgr = std::unique_ptr<ModularDisplay>(
dynamic_cast<ModularDisplay*> (new MDspPeerVolumes(dsp_comp_hub))
);
+ peer_volume_detail_mgr = std::unique_ptr<ModularDisplay>(
+ dynamic_cast<ModularDisplay*> (new MDspPeerVolumeDetail(dsp_comp_hub))
+ );
+ peer_volume_actions_mgr = std::unique_ptr<ModularDisplay>(
+ dynamic_cast<ModularDisplay*> (new MDspPeerVolumeActions(dsp_comp_hub))
+ );
active_tasks_mgr = std::unique_ptr<ModularDisplay>(
dynamic_cast<ModularDisplay*> (
new MDspTaskQueue(
@@ -697,6 +705,7 @@ void DisplayController::get_display(
dsp_obj = peer_volume_view_mgr.get();
break;
case DisplayId::display_page::PEER_VLM_DETAIL:
+ dsp_obj = peer_volume_detail_mgr.get();
break;
case DisplayId::display_page::MAIN_MENU:
dsp_obj = main_menu_mgr.get();
@@ -739,6 +748,9 @@ void DisplayController::get_display(
case DisplayId::display_page::CON_ACTIONS:
dsp_obj = connection_actions_mgr.get();
break;
+ case DisplayId::display_page::PEER_VLM_ACTIONS:
+ dsp_obj = peer_volume_actions_mgr.get();
+ break;
case DisplayId::display_page::PGM_INFO:
dsp_obj = pgm_info_mgr.get();
break;
diff --git a/user/drbdmon/terminal/DisplayController.h b/user/drbdmon/terminal/DisplayController.h
index 294b22b5..6c758ba2 100644
--- a/user/drbdmon/terminal/DisplayController.h
+++ b/user/drbdmon/terminal/DisplayController.h
@@ -121,6 +121,8 @@ class DisplayController : public GenericDisplay, public DisplaySelector
std::unique_ptr<ModularDisplay> connection_detail_mgr;
std::unique_ptr<ModularDisplay> connection_actions_mgr;
std::unique_ptr<ModularDisplay> peer_volume_view_mgr;
+ std::unique_ptr<ModularDisplay> peer_volume_detail_mgr;
+ std::unique_ptr<ModularDisplay> peer_volume_actions_mgr;
std::unique_ptr<ModularDisplay> active_tasks_mgr;
std::unique_ptr<ModularDisplay> pending_tasks_mgr;
std::unique_ptr<ModularDisplay> suspended_tasks_mgr;
--
2.33.1.windows.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。