From f9cc6079b3326976033ecc4f197daa32f2d0a0e6 Mon Sep 17 00:00:00 2001 From: wxd <1209768292@qq.com> Date: 星期一, 28 七月 2025 09:56:21 +0800 Subject: [PATCH] Merge branch 'master' of ssh://115.28.86.8:29418/~admin/天开景运_0405_250719 --- Server/杜国庆/code/BG_Mon_Subsystem/gb_mon_subsystem_mainwindow.h | 29 ++++++++++++++++++++++++----- 1 files changed, 24 insertions(+), 5 deletions(-) diff --git "a/Server/\346\235\234\345\233\275\345\272\206/code/BG_Mon_Subsystem/gb_mon_subsystem_mainwindow.h" "b/Server/\346\235\234\345\233\275\345\272\206/code/BG_Mon_Subsystem/gb_mon_subsystem_mainwindow.h" index f2f1156..ef2156f 100644 --- "a/Server/\346\235\234\345\233\275\345\272\206/code/BG_Mon_Subsystem/gb_mon_subsystem_mainwindow.h" +++ "b/Server/\346\235\234\345\233\275\345\272\206/code/BG_Mon_Subsystem/gb_mon_subsystem_mainwindow.h" @@ -2,21 +2,40 @@ #define GB_MON_SUBSYSTEM_MAINWINDOW_H #include <QMainWindow> +#include <VideoStorageManager> +#include <SystemMonitor> +#include <PerformanceChart> +#include <AlertProcessor> +#include <QThread> namespace Ui { class GB_Mon_Subsystem_MainWindow; } -class GB_Mon_Subsystem_MainWindow : public QMainWindow -{ +class GB_Mon_Subsystem_MainWindow : public QMainWindow { Q_OBJECT - public: - explicit GB_Mon_Subsystem_MainWindow(QWidget *parent = 0); + GB_Mon_Subsystem_MainWindow(QWidget *parent = nullptr); ~GB_Mon_Subsystem_MainWindow(); +private slots: + void updatePerformanceCharts(); + void handleNewAlert(const Alert &alert); + void handleDatabaseError(const QString &error); + private: - Ui::GB_Mon_Subsystem_MainWindow *ui; + void setupThreads(); + void setupConnections(); + + VideoStorageManager *m_videoManager; + SystemMonitor *m_systemMonitor; + PerformanceChart *m_performanceChart; + AlertProcessor *m_alertProcessor; + + QThread *m_storageThread; + QThread *m_monitorThread; }; + + #endif // GB_MON_SUBSYSTEM_MAINWINDOW_H -- Gitblit v1.8.0