summaryrefslogtreecommitdiff
path: root/Applications/SystemMonitor/ProcessTableView.h
blob: c193e214f4c81ca4740a976d2914b8bde8e05c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <AK/Function.h>
#include <LibGUI/GTableView.h>
#include <unistd.h>

class GraphWidget;
class ProcessModel;

class ProcessTableView final : public GTableView {
    C_OBJECT(ProcessTableView)
public:
    virtual ~ProcessTableView() override;

    pid_t selected_pid() const;

    void refresh();

    Function<void(pid_t)> on_process_selected;

private:
    ProcessTableView(GraphWidget&, GWidget* parent);
};