From a1c2d5df7e2d0eca36f194363fc0f23db6a38ea1 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 7 May 2022 09:37:11 +0300 Subject: Autocommit at 07.05.2022 @ 09:37 --- src/Services/EventService.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/Services/EventService.h') diff --git a/src/Services/EventService.h b/src/Services/EventService.h index f0dd5b3..35be080 100644 --- a/src/Services/EventService.h +++ b/src/Services/EventService.h @@ -3,21 +3,23 @@ #include "../Generic/List/OrderedList.hpp" #include "../Generic/Date/Date.h" - #include "../Models/Event.h" +#include "HallService.h" #include "StatusCode.h" class EventService { OrderedList events; unsigned indSoonestUpcoming; + const HallService* hs; + void updateSoonestUpcoming(); unsigned indexOfEvent(const Date& date); unsigned indexOfEvent(const char* name, const Date& date); public: - EventService(); - EventService(const Event* events, unsigned eventCount); + EventService(const HallService* hs); + EventService(const HallService* hs, const Event* events, unsigned eventCount); StatusCode createEvent(int hallNumber, const String& name, const Date& date); StatusCode cancelEvent(const char* name, const Date& date); -- cgit v1.3.1-26-gb76a