aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-02-04 13:00:22 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-02-04 13:00:22 -0600
commit61581201f13509fbce9eb05fc90a5da17307c6a3 (patch)
tree75adcfe01936ed16d2958dfdbd657352be23aef5 /include
parent61accb9ce497e1f1cbe8038ac495d66d6a4505ff (diff)
downloadayatana-indicator-datetime-61581201f13509fbce9eb05fc90a5da17307c6a3.tar.gz
ayatana-indicator-datetime-61581201f13509fbce9eb05fc90a5da17307c6a3.tar.bz2
ayatana-indicator-datetime-61581201f13509fbce9eb05fc90a5da17307c6a3.zip
Add audio notitication when the alarm is triggered. Add a manual test to tests/ to trigger a snap decision.
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