summaryrefslogtreecommitdiff
path: root/Applications/SystemMonitor/ProcessTableView.h
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/SystemMonitor/ProcessTableView.h')
-rw-r--r--Applications/SystemMonitor/ProcessTableView.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Applications/SystemMonitor/ProcessTableView.h b/Applications/SystemMonitor/ProcessTableView.h
new file mode 100644
index 0000000000..98d3f3edb1
--- /dev/null
+++ b/Applications/SystemMonitor/ProcessTableView.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <AK/Function.h>
+#include <LibGUI/GTableView.h>
+#include <unistd.h>
+
+class GraphWidget;
+class ProcessModel;
+
+class ProcessTableView final : public GTableView {
+public:
+ ProcessTableView(GraphWidget&, GWidget* parent);
+ virtual ~ProcessTableView() override;
+
+ pid_t selected_pid() const;
+
+ void refresh();
+
+ Function<void(pid_t)> on_process_selected;
+
+private:
+ virtual void model_notification(const GModelNotification&) override;
+};