From e2f32b8f9d4ce0ce8f92d4817273fb9b32cd8ccd Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 15 Sep 2020 21:33:37 +0200 Subject: LibCore: Make Core::Object properties more dynamic Instead of everyone overriding save_to() and set_property() and doing a pretty asymmetric job of implementing the various properties, let's add a bit of structure here. Object properties are now represented by a Core::Property. Properties are registered with a getter and setter (optional) in constructors. I've added some convenience macros for creating and registering properties, but this does still feel a bit bulky. We'll have to iterate on this and see where it goes. --- Libraries/LibCore/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'Libraries/LibCore/CMakeLists.txt') diff --git a/Libraries/LibCore/CMakeLists.txt b/Libraries/LibCore/CMakeLists.txt index bd64c35131..8b1dfd6059 100644 --- a/Libraries/LibCore/CMakeLists.txt +++ b/Libraries/LibCore/CMakeLists.txt @@ -19,6 +19,7 @@ set(SOURCES Notifier.cpp Object.cpp ProcessStatisticsReader.cpp + Property.cpp puff.cpp SocketAddress.cpp Socket.cpp -- cgit v1.2.3