aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-03-30 16:52:02 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commitdd4265f22ee05aab8dbe6d60f9c7a13f85818466 (patch)
treec01abb0cee8377855c02bf0560d63690db719b9c /include
parent46f3fa5a94d82a5f005039ca8d9df1330bdc4f4c (diff)
downloadayatana-indicator-datetime-dd4265f22ee05aab8dbe6d60f9c7a13f85818466.tar.gz
ayatana-indicator-datetime-dd4265f22ee05aab8dbe6d60f9c7a13f85818466.tar.bz2
ayatana-indicator-datetime-dd4265f22ee05aab8dbe6d60f9c7a13f85818466.zip
Only play a sound alert if the event contains a SOUND reminder.
Diffstat (limited to 'include')
-rw-r--r--include/datetime/appointment.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/datetime/appointment.h b/include/datetime/appointment.h
index 950f4bb..5b4c27e 100644
--- a/include/datetime/appointment.h
+++ b/include/datetime/appointment.h
@@ -34,9 +34,15 @@ namespace datetime {
*/
struct Alarm
{
+ enum Type {
+ EMAIL = 0x001,
+ SOUND = 0x010,
+ TEXT = 0x100
+ };
std::string text;
std::string audio_url;
DateTime time;
+ int type;
bool operator== (const Alarm& that) const;
bool has_sound() const;