mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 14:57:42 +00:00

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 :^)
27 lines
523 B
C++
27 lines
523 B
C++
#pragma once
|
|
|
|
#include <AK/AKString.h>
|
|
#include <AK/JsonObject.h>
|
|
#include <AK/NonnullOwnPtrVector.h>
|
|
#include <AK/Vector.h>
|
|
|
|
class RemoteObjectPropertyModel;
|
|
|
|
class RemoteObject {
|
|
public:
|
|
RemoteObject();
|
|
|
|
RemoteObjectPropertyModel& property_model();
|
|
|
|
RemoteObject* parent { nullptr };
|
|
NonnullOwnPtrVector<RemoteObject> children;
|
|
|
|
String address;
|
|
String parent_address;
|
|
String class_name;
|
|
String name;
|
|
|
|
JsonObject json;
|
|
|
|
NonnullRefPtr<RemoteObjectPropertyModel> m_property_model;
|
|
};
|