ProcessStateWidget.h 507 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include <LibGUI/GWidget.h>
  3. class CTimer;
  4. class GLabel;
  5. class ProcessStateWidget final : public GWidget {
  6. C_OBJECT(ProcessStateWidget)
  7. public:
  8. virtual ~ProcessStateWidget() override;
  9. void set_tty_fd(int);
  10. private:
  11. explicit ProcessStateWidget(GWidget* parent);
  12. void refresh();
  13. RefPtr<GLabel> m_pid_label;
  14. RefPtr<GLabel> m_state_label;
  15. RefPtr<GLabel> m_cpu_label;
  16. RefPtr<GLabel> m_memory_label;
  17. RefPtr<CTimer> m_timer;
  18. int m_tty_fd { -1 };
  19. };