From 95bc85d108e3564d98f26b7ad17fcc72b2966371 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 7 Dec 2014 20:38:44 -0600 Subject: ensure that disabled alarms aren't shown in indicator-datetime and that notifications aren't shown for them. --- include/datetime/appointment.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/datetime') diff --git a/include/datetime/appointment.h b/include/datetime/appointment.h index 2e406a2..ab89c2f 100644 --- a/include/datetime/appointment.h +++ b/include/datetime/appointment.h @@ -35,12 +35,15 @@ namespace datetime { struct Appointment { public: + enum Type { EVENT, UBUNTU_ALARM }; + Type type = EVENT; + bool is_ubuntu_alarm() const { return type == UBUNTU_ALARM; } + std::string color; std::string summary; std::string url; std::string uid; std::string audio_url; - bool has_alarms = false; DateTime begin; DateTime end; -- cgit v1.2.3