mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03:00
412630637a
I didn't convert widgets that don't do any failable tasks currently or are lazy-initialized.
31 lines
580 B
C++
31 lines
580 B
C++
/*
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGUI/Widget.h>
|
|
|
|
namespace SystemMonitor {
|
|
|
|
class ProcessStateWidget final : public GUI::Widget {
|
|
C_OBJECT_ABSTRACT(ProcessStateWidget);
|
|
|
|
public:
|
|
virtual ~ProcessStateWidget() override = default;
|
|
|
|
static ErrorOr<NonnullRefPtr<ProcessStateWidget>> try_create();
|
|
|
|
void set_pid(pid_t);
|
|
|
|
private:
|
|
ProcessStateWidget() = default;
|
|
|
|
RefPtr<GUI::TableView> m_table_view;
|
|
};
|
|
|
|
}
|