aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-03-30 16:52:02 -0300
committerRobert Tari <robert@tari.in>2021-07-05 00:44:12 +0200
commit8c57742f1e42bf8076b38b4509a109a911b811c7 (patch)
treea258e1b123bf05821f61bb7d4977afdf47560822 /include
parent6105ec78d545d11184aae91700fe5aec8b8bde4b (diff)
downloadayatana-indicator-datetime-8c57742f1e42bf8076b38b4509a109a911b811c7.tar.gz
ayatana-indicator-datetime-8c57742f1e42bf8076b38b4509a109a911b811c7.tar.bz2
ayatana-indicator-datetime-8c57742f1e42bf8076b38b4509a109a911b811c7.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;