summaryrefslogtreecommitdiff
path: root/Applications/SystemMonitor/ProcessMemoryMapWidget.h
blob: aebf7f15af6c4d5c2f3e5b4acd0265a63adb6b93 (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 <LibGUI/GWidget.h>

class CTimer;
class GJsonArrayModel;
class GTableView;

class ProcessMemoryMapWidget final : public GWidget {
    C_OBJECT(ProcessMemoryMapWidget);
public:
    virtual ~ProcessMemoryMapWidget() override;

    void set_pid(pid_t);
    void refresh();

private:
    explicit ProcessMemoryMapWidget(GWidget* parent);
    RefPtr<GTableView> m_table_view;
    RefPtr<GJsonArrayModel> m_json_model;
    pid_t m_pid { -1 };
    RefPtr<CTimer> m_timer;
};