2019-02-28 10:57:09 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Function.h>
|
2019-05-28 11:53:16 +02:00
|
|
|
#include <LibGUI/GTableView.h>
|
2019-02-28 10:57:09 +01:00
|
|
|
#include <unistd.h>
|
|
|
|
|
|
2019-05-06 03:21:23 +02:00
|
|
|
class GraphWidget;
|
2019-03-23 01:42:49 +01:00
|
|
|
class ProcessModel;
|
2019-02-28 10:57:09 +01:00
|
|
|
|
|
|
|
|
class ProcessTableView final : public GTableView {
|
2019-09-21 18:17:23 +02:00
|
|
|
C_OBJECT(ProcessTableView)
|
2019-02-28 10:57:09 +01:00
|
|
|
public:
|
|
|
|
|
virtual ~ProcessTableView() override;
|
|
|
|
|
|
|
|
|
|
pid_t selected_pid() const;
|
|
|
|
|
|
2019-04-18 04:38:31 +02:00
|
|
|
void refresh();
|
2019-02-28 21:30:17 +01:00
|
|
|
|
2019-07-27 09:37:26 +02:00
|
|
|
Function<void(pid_t)> on_process_selected;
|
2019-09-21 18:17:23 +02:00
|
|
|
|
|
|
|
|
private:
|
2019-10-02 20:26:19 +02:00
|
|
|
explicit ProcessTableView(GWidget* parent = nullptr);
|
2019-02-28 10:57:09 +01:00
|
|
|
};
|