2021-04-11 11:24:59 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
2022-02-10 19:28:48 +00:00
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
2021-04-11 11:24:59 +00:00
|
|
|
*
|
2021-04-22 08:24:48 +00:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-04-11 11:24:59 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibGUI/Widget.h>
|
|
|
|
|
2022-03-24 12:30:52 +00:00
|
|
|
namespace SystemMonitor {
|
|
|
|
|
2021-04-11 11:24:59 +00:00
|
|
|
class ProcessStateWidget final : public GUI::Widget {
|
|
|
|
C_OBJECT(ProcessStateWidget);
|
|
|
|
|
|
|
|
public:
|
2022-02-10 19:28:48 +00:00
|
|
|
virtual ~ProcessStateWidget() override = default;
|
2021-04-11 11:24:59 +00:00
|
|
|
|
2022-03-24 12:30:52 +00:00
|
|
|
void set_pid(pid_t);
|
|
|
|
|
2021-04-11 11:24:59 +00:00
|
|
|
private:
|
2022-03-24 12:30:52 +00:00
|
|
|
ProcessStateWidget();
|
2021-04-11 11:24:59 +00:00
|
|
|
RefPtr<GUI::TableView> m_table_view;
|
|
|
|
};
|
2022-03-24 12:30:52 +00:00
|
|
|
|
|
|
|
}
|