diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2016-03-31 15:51:29 -0300 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-07-05 01:41:04 +0200 |
commit | b1031b1de834f246bba806cd51bfbb22f5c15b16 (patch) | |
tree | 721bedfc5523c1f124c32e850bdb3354928ec011 /include/datetime | |
parent | 7965d5b411db00de44f5c43dffac935e70347ec6 (diff) | |
download | ayatana-indicator-datetime-b1031b1de834f246bba806cd51bfbb22f5c15b16.tar.gz ayatana-indicator-datetime-b1031b1de834f246bba806cd51bfbb22f5c15b16.tar.bz2 ayatana-indicator-datetime-b1031b1de834f246bba806cd51bfbb22f5c15b16.zip |
Remove type property from Alarm.
Diffstat (limited to 'include/datetime')
-rw-r--r-- | include/datetime/appointment.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/datetime/appointment.h b/include/datetime/appointment.h index ae9e8ff..faf8a18 100644 --- a/include/datetime/appointment.h +++ b/include/datetime/appointment.h @@ -34,20 +34,13 @@ namespace datetime { */ struct Alarm { - enum Type { - None = 0, - EMAIL = 0x001, - SOUND = 0x010, - TEXT = 0x100 - }; - int type; std::string text; std::string audio_url; DateTime time; bool operator== (const Alarm& that) const; - Alarm(); - Alarm(int type_, const std::string &text_, const std::string& audio_url_, const DateTime &time_); + bool has_sound() const; + bool has_text() const; }; /** |