aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-03-31 15:51:29 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commit87d2694ceeadee723573b3866a8bc2e3fb49de58 (patch)
tree7f2665a5ed9b48101b4727865c53a3cba2083c01 /include
parent8edf035eca04cc0e488b363becc19ee5c4aa709d (diff)
downloadayatana-indicator-datetime-87d2694ceeadee723573b3866a8bc2e3fb49de58.tar.gz
ayatana-indicator-datetime-87d2694ceeadee723573b3866a8bc2e3fb49de58.tar.bz2
ayatana-indicator-datetime-87d2694ceeadee723573b3866a8bc2e3fb49de58.zip
Remove type property from Alarm.
Diffstat (limited to 'include')
-rw-r--r--include/datetime/appointment.h11
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;
};
/**