From b917e4ce17bc30772792a475af2eb0c64ae9f47b Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Sat, 11 Jul 2020 00:11:05 +0200 Subject: -Made GCC 10.1.0 friendly -Fixed to work with ECal 2.0 -Added libaccounts-glib dependency -Added mate-time-admin handler --- src/appointment.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/appointment.cpp') 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 -- cgit v1.2.3