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