aboutsummaryrefslogtreecommitdiff
path: root/include/datetime
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-12-07 20:38:44 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-12-07 20:38:44 -0600
commit95bc85d108e3564d98f26b7ad17fcc72b2966371 (patch)
treead0d9724caab0b7badf49cd668ff22fce342b4ae /include/datetime
parent56e88207113e57eae7b24a718fa1ab177c6c9367 (diff)
downloadayatana-indicator-datetime-95bc85d108e3564d98f26b7ad17fcc72b2966371.tar.gz
ayatana-indicator-datetime-95bc85d108e3564d98f26b7ad17fcc72b2966371.tar.bz2
ayatana-indicator-datetime-95bc85d108e3564d98f26b7ad17fcc72b2966371.zip
ensure that disabled alarms aren't shown in indicator-datetime and that notifications aren't shown for them.
Diffstat (limited to 'include/datetime')
-rw-r--r--include/datetime/appointment.h5
1 files changed, 4 insertions, 1 deletions
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;