mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:42:43 +00:00 
			
		
		
		
	 bff5b71467
			
		
	
	
		bff5b71467
		
	
	
	
	
		
			
			I don't want to use GEvent here since these need to be synchronous and mixing sync and async GEvents would be stupid.
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			575 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			575 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <LibGUI/GTableView.h>
 | |
| #include <AK/Function.h>
 | |
| #include <unistd.h>
 | |
| 
 | |
| class ProcessTableModel;
 | |
| 
 | |
| class ProcessTableView final : public GTableView {
 | |
| public:
 | |
|     explicit ProcessTableView(GWidget* parent);
 | |
|     virtual ~ProcessTableView() override;
 | |
| 
 | |
|     pid_t selected_pid() const;
 | |
| 
 | |
|     Function<void(String)> on_status_message;
 | |
| 
 | |
| protected:
 | |
|     virtual void model_notification(const GModelNotification&) override;
 | |
| 
 | |
| private:
 | |
|     virtual void timer_event(GTimerEvent&) override;
 | |
| 
 | |
|     ProcessTableModel& model();
 | |
|     const ProcessTableModel& model() const;
 | |
| };
 | |
| 
 |