aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/datetime/snap.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/datetime/snap.h b/include/datetime/snap.h
index a493772..ffd3aa0 100644
--- a/include/datetime/snap.h
+++ b/include/datetime/snap.h
@@ -21,6 +21,7 @@
#define INDICATOR_DATETIME_SNAP_H
#include <datetime/appointment.h>
+#include <datetime/settings.h>
#include <memory>
#include <functional>
@@ -35,13 +36,16 @@ namespace datetime {
class Snap
{
public:
- Snap();
+ Snap(const std::shared_ptr<const Settings>& settings);
virtual ~Snap();
typedef std::function<void(const Appointment&)> appointment_func;
void operator()(const Appointment& appointment,
appointment_func show,
appointment_func dismiss);
+
+private:
+ const std::shared_ptr<const Settings> m_settings;
};
} // namespace datetime