diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2016-05-14 12:18:45 -0500 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-29 14:37:39 +0200 |
commit | b639e39dc4a2aa82a40f0a6922577b65ff3dd35f (patch) | |
tree | 416622d85b18d329d7e355e2c65cdf1f299e5712 /include/datetime/snap.h | |
parent | a6422822a9b9a18bae705e56f2b53ee0b61ff1dc (diff) | |
download | ayatana-indicator-datetime-b639e39dc4a2aa82a40f0a6922577b65ff3dd35f.tar.gz ayatana-indicator-datetime-b639e39dc4a2aa82a40f0a6922577b65ff3dd35f.tar.bz2 ayatana-indicator-datetime-b639e39dc4a2aa82a40f0a6922577b65ff3dd35f.zip |
add a new Snap::Response enum for more flexible handling of snap decisions
Diffstat (limited to 'include/datetime/snap.h')
-rw-r--r-- | include/datetime/snap.h | 6 |
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; |