diff options
author | Robert Tari <robert@tari.in> | 2020-07-11 00:11:05 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2020-07-17 18:02:32 +0200 |
commit | b917e4ce17bc30772792a475af2eb0c64ae9f47b (patch) | |
tree | bfec00a17c4cd117576b6cbe8160f07c1d1a764f /src/appointment.cpp | |
parent | 6eac66d1ca86cbf85204b93f36b3ebe7082498b5 (diff) | |
download | ayatana-indicator-datetime-b917e4ce17bc30772792a475af2eb0c64ae9f47b.tar.gz ayatana-indicator-datetime-b917e4ce17bc30772792a475af2eb0c64ae9f47b.tar.bz2 ayatana-indicator-datetime-b917e4ce17bc30772792a475af2eb0c64ae9f47b.zip |
-Made GCC 10.1.0 friendly
-Fixed to work with ECal 2.0
-Added libaccounts-glib dependency
-Added mate-time-admin handler
Diffstat (limited to 'src/appointment.cpp')
-rw-r--r-- | src/appointment.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/appointment.cpp b/src/appointment.cpp index dca57e6..ebd5a47 100644 --- a/src/appointment.cpp +++ b/src/appointment.cpp @@ -31,7 +31,17 @@ bool Alarm::operator==(const Alarm& that) const { return (text==that.text) && (audio_url==that.audio_url) - && (this->time==that.time); + && (this->time==that.time); +} + +bool Alarm::has_sound() const +{ + return !audio_url.empty(); +} + +bool Alarm::has_text() const +{ + return !text.empty(); } bool Appointment::operator==(const Appointment& that) const |