diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2016-03-31 10:55:01 -0300 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-29 14:37:39 +0200 |
commit | ed2c8341c2fbf527e99cd6b56f6ae637ea6c76a8 (patch) | |
tree | fe195134b4d2384348094134c74685b1a54c25c3 /include/datetime/appointment.h | |
parent | 406aa751ab0a66c909a7ce60345aed42cda8f147 (diff) | |
download | ayatana-indicator-datetime-ed2c8341c2fbf527e99cd6b56f6ae637ea6c76a8.tar.gz ayatana-indicator-datetime-ed2c8341c2fbf527e99cd6b56f6ae637ea6c76a8.tar.bz2 ayatana-indicator-datetime-ed2c8341c2fbf527e99cd6b56f6ae637ea6c76a8.zip |
Update tests.
Diffstat (limited to 'include/datetime/appointment.h')
-rw-r--r-- | include/datetime/appointment.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/datetime/appointment.h b/include/datetime/appointment.h index 2c225fc..ae9e8ff 100644 --- a/include/datetime/appointment.h +++ b/include/datetime/appointment.h @@ -35,21 +35,21 @@ 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; - int type : SOUND; bool operator== (const Alarm& that) const; - bool has_sound() const; - bool has_text() const; + Alarm(); + Alarm(int type_, const std::string &text_, const std::string& audio_url_, const DateTime &time_); }; - /** * \brief An instance of an appointment; e.g. a calendar event or clock-app alarm * |