From 20073f502f7a5f9af019e8c987ef96c6fac27a55 Mon Sep 17 00:00:00 2001
From: lpt <463045863@qq.com>
Date: 星期二, 29 七月 2025 09:16:56 +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