Implement serialization/deserialization and persistent storage across services

- Add serialize/deserialize support for core models
- Add file-based load/save functions in management services
- Introduce FileManager, Config, Utility and helper utilities
- Persist observer IDs for notification services
- Resolve object relationships during load (services, bookings, invoices, job cards)
- Add controller-level loadSystemData/saveSystemData
- Load data at app startup and save on shutdown
This commit is contained in:
2026-05-22 12:13:17 +05:30
parent 56c5c2dc70
commit 53713f444b
38 changed files with 1573 additions and 35 deletions
@@ -4,6 +4,7 @@
void UserInterface::run()
{
m_controller.loadSystemData();
bool isMenuActive = true;
while (isMenuActive)
{
@@ -24,6 +25,7 @@ void UserInterface::run()
util::pressEnter();
}
}
m_controller.saveSystemData();
}
bool UserInterface::handleOperation(int choice)