diff options
Diffstat (limited to 'Libraries/LibCore/CObject.h')
-rw-r--r-- | Libraries/LibCore/CObject.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Libraries/LibCore/CObject.h b/Libraries/LibCore/CObject.h index c8c6f743c9..f35403d1ef 100644 --- a/Libraries/LibCore/CObject.h +++ b/Libraries/LibCore/CObject.h @@ -7,6 +7,10 @@ #include <AK/Vector.h> #include <AK/Weakable.h> +namespace AK { +class JsonObject; +} + class CEvent; class CChildEvent; class CCustomEvent; @@ -63,6 +67,8 @@ public: bool is_widget() const { return m_widget; } virtual bool is_window() const { return false; } + virtual void save_to(AK::JsonObject&); + static IntrusiveList<CObject, &CObject::m_all_objects_list_node>& all_objects(); protected: |