From 3f4d409f21bbb1f79f149a5ee66dcddaa505ddb1 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 9 Mar 2014 21:08:47 -0500 Subject: decouple the planner's states; need three separate sets: upcoming-now (for alarms in the current time), upcoming-calendar (to show events coming from the selected calendar date), and calendar-month (all the appointments in the month displayed in the menu). --- include/datetime/clock-watcher.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/datetime/clock-watcher.h') diff --git a/include/datetime/clock-watcher.h b/include/datetime/clock-watcher.h index e93b468..90bbb63 100644 --- a/include/datetime/clock-watcher.h +++ b/include/datetime/clock-watcher.h @@ -20,8 +20,9 @@ #ifndef INDICATOR_DATETIME_CLOCK_WATCHER_H #define INDICATOR_DATETIME_CLOCK_WATCHER_H -#include #include +#include +#include #include @@ -53,14 +54,16 @@ public: class ClockWatcherImpl: public ClockWatcher { public: - ClockWatcherImpl(const std::shared_ptr& state); + ClockWatcherImpl(const std::shared_ptr& clock, + const std::shared_ptr& upcoming_planner); ~ClockWatcherImpl() =default; core::Signal& alarm_reached(); private: void pulse(); std::set m_triggered; - std::shared_ptr m_state; + const std::shared_ptr m_clock; + const std::shared_ptr m_upcoming_planner; core::Signal m_alarm_reached; }; -- cgit v1.2.3