aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/datetime/snap.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/datetime/snap.h b/include/datetime/snap.h
index 584d895..a493772 100644
--- a/include/datetime/snap.h
+++ b/include/datetime/snap.h
@@ -23,6 +23,7 @@
#include <datetime/appointment.h>
#include <memory>
+#include <functional>
namespace unity {
namespace indicator {
@@ -36,7 +37,11 @@ class Snap
public:
Snap();
virtual ~Snap();
- void operator()(const Appointment&);
+
+ typedef std::function<void(const Appointment&)> appointment_func;
+ void operator()(const Appointment& appointment,
+ appointment_func show,
+ appointment_func dismiss);
};
} // namespace datetime