From 007927bf34adcd926d6b7e13fdd486c173cf71d7 Mon Sep 17 00:00:00 2001 From: Joel Thomas Date: Tue, 19 May 2026 16:52:45 +0530 Subject: [PATCH] Implement NotificationManagementService methods - Added concrete sendNotification() implementation declaration - Added attach() and detach() overrides for observer management - Added notify() override for notification dispatch - Removed pure virtual declarations from NotificationManagementService --- .../services/NotificationManagementService.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/services/NotificationManagementService.h b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/services/NotificationManagementService.h index 401f2a8..7dde4f2 100644 --- a/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/services/NotificationManagementService.h +++ b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/services/NotificationManagementService.h @@ -6,7 +6,8 @@ class NotificationManagementService : public Subject { public: - virtual void sendNotification(User* recipient, const std::string& title, const std::string& message) = 0; - virtual void attach(User* user) = 0; - virtual void detach(User* user) = 0; + void sendNotification(User* recipient, const std::string& title, const std::string& message); + void attach(User* user) override; + void detach(User* user) override; + void notify(Notification* notification) override; };