aboutsummaryrefslogtreecommitdiff
path: root/include/datetime/alarm-queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/datetime/alarm-queue.h')
-rw-r--r--include/datetime/alarm-queue.h28
1 files changed, 6 insertions, 22 deletions
diff --git a/include/datetime/alarm-queue.h b/include/datetime/alarm-queue.h
index 5db4ad8..ea51957 100644
--- a/include/datetime/alarm-queue.h
+++ b/include/datetime/alarm-queue.h
@@ -21,8 +21,6 @@
#define INDICATOR_DATETIME_ALARM_QUEUE_H
#include <datetime/appointment.h>
-#include <datetime/clock.h>
-#include <datetime/planner-upcoming.h>
#include <core/signal.h>
@@ -34,6 +32,9 @@ namespace unity {
namespace indicator {
namespace datetime {
+/***
+****
+***/
/**
* \brief Watches the clock and appointments to notify when an
@@ -47,26 +48,9 @@ public:
virtual core::Signal<const Appointment&>& alarm_reached() = 0;
};
-
-/**
- * \brief A #AlarmQueue implementation
- */
-class AlarmQueueImpl: public AlarmQueue
-{
-public:
- AlarmQueueImpl(const std::shared_ptr<Clock>& clock,
- const std::shared_ptr<UpcomingPlanner>& upcoming_planner);
- ~AlarmQueueImpl() =default;
- core::Signal<const Appointment&>& alarm_reached();
-
-private:
- void pulse();
- std::set<std::string> m_triggered;
- const std::shared_ptr<Clock> m_clock;
- const std::shared_ptr<UpcomingPlanner> m_upcoming_planner;
- core::Signal<const Appointment&> m_alarm_reached;
-};
-
+/***
+****
+***/
} // namespace datetime
} // namespace indicator