aboutsummaryrefslogtreecommitdiff
path: root/include/datetime
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-02-04 00:10:17 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-02-04 00:10:17 -0600
commit894c0c625ff1e2f2d031f48f157a3008302cb5a7 (patch)
treeccdfa8520159bb95555368aa9a7439c384e6bb1c /include/datetime
parent7d1ec01369d1c107cd42b0a7501f8cdb3c7e08ac (diff)
downloadayatana-indicator-datetime-894c0c625ff1e2f2d031f48f157a3008302cb5a7.tar.gz
ayatana-indicator-datetime-894c0c625ff1e2f2d031f48f157a3008302cb5a7.tar.bz2
ayatana-indicator-datetime-894c0c625ff1e2f2d031f48f157a3008302cb5a7.zip
pin the planner's upcoming appointments to the live clock time, rather than the calendar's time, so that they always update correctly in real-time
Diffstat (limited to 'include/datetime')
-rw-r--r--include/datetime/planner-eds.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/datetime/planner-eds.h b/include/datetime/planner-eds.h
index f3abce0..a99f611 100644
--- a/include/datetime/planner-eds.h
+++ b/include/datetime/planner-eds.h
@@ -20,9 +20,10 @@
#ifndef INDICATOR_DATETIME_PLANNER_EDS_H
#define INDICATOR_DATETIME_PLANNER_EDS_H
+#include <datetime/clock.h>
#include <datetime/planner.h>
-#include <memory> // unique_ptr
+#include <memory> // shared_ptr, unique_ptr
namespace unity {
namespace indicator {
@@ -34,7 +35,7 @@ namespace datetime {
class PlannerEds: public Planner
{
public:
- PlannerEds();
+ PlannerEds(const std::shared_ptr<Clock>& clock);
virtual ~PlannerEds();
private: