mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:32:45 +00:00 
			
		
		
		
	 4f3234148a
			
		
	
	
		4f3234148a
		
	
	
	
	
		
			
			This patch expands the object model of this program quite a bit. We now have a RemoteProcess object that contains a list of remote root RemoteObject objects. The RemoteProcess vends a RemoteObjectGraphModel&, and indices in that model have internal_data() pointing to a corresponding RemoteObject. RemoteObjects in turn vend a RemoteObjectPropertyModel&, which is what we use to show the object properties. This is pretty cool :^)
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			289 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			289 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "RemoteObject.h"
 | |
| #include "RemoteObjectPropertyModel.h"
 | |
| 
 | |
| RemoteObject::RemoteObject()
 | |
|     : m_property_model(RemoteObjectPropertyModel::create(*this))
 | |
| {
 | |
| }
 | |
| 
 | |
| RemoteObjectPropertyModel& RemoteObject::property_model()
 | |
| {
 | |
|     m_property_model->update();
 | |
|     return *m_property_model;
 | |
| }
 |