aboutsummaryrefslogtreecommitdiff
path: root/src/appointment.cpp
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-07-11 00:11:05 +0200
committerRobert Tari <robert@tari.in>2020-07-17 18:02:32 +0200
commitb917e4ce17bc30772792a475af2eb0c64ae9f47b (patch)
treebfec00a17c4cd117576b6cbe8160f07c1d1a764f /src/appointment.cpp
parent6eac66d1ca86cbf85204b93f36b3ebe7082498b5 (diff)
downloadayatana-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.cpp12
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