aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-05-14 12:18:45 -0500
committerRobert Tari <robert@tari.in>2021-07-07 02:13:38 +0200
commit8c7997ad86cffd8fb0b1578e2bc632395744d0b8 (patch)
tree8761544970cf36dc41c6fc88aed91a79da49fd1e /include
parent85cb430bd147719fed43f4ccf04b9d22cad33bfc (diff)
downloadayatana-indicator-datetime-8c7997ad86cffd8fb0b1578e2bc632395744d0b8.tar.gz
ayatana-indicator-datetime-8c7997ad86cffd8fb0b1578e2bc632395744d0b8.tar.bz2
ayatana-indicator-datetime-8c7997ad86cffd8fb0b1578e2bc632395744d0b8.zip
add a new Snap::Response enum for more flexible handling of snap decisions
Diffstat (limited to 'include')
-rw-r--r--include/datetime/snap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/datetime/snap.h b/include/datetime/snap.h
index a295d9f..099426b 100644
--- a/include/datetime/snap.h
+++ b/include/datetime/snap.h
@@ -42,11 +42,11 @@ public:
const std::shared_ptr<const Settings>& settings);
virtual ~Snap();
- typedef std::function<void(const Appointment&, const Alarm&)> appointment_func;
+ enum class Response { None, Snooze, ShowApp };
+ typedef std::function<void(const Appointment&, const Alarm&, const Response&)> response_func;
void operator()(const Appointment& appointment,
const Alarm& alarm,
- appointment_func snooze,
- appointment_func ok);
+ response_func on_response);
private:
class Impl;