diff options
Diffstat (limited to 'src/appointment.cpp')
-rw-r--r-- | src/appointment.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/appointment.cpp b/src/appointment.cpp index ae71459..1edd93c 100644 --- a/src/appointment.cpp +++ b/src/appointment.cpp @@ -27,16 +27,22 @@ namespace datetime { ***** ****/ +bool Alarm::operator==(const Alarm& that) const +{ + return (text==that.text) + && (audio_url==that.audio_url) + && (this->time==that.time); +} + bool Appointment::operator==(const Appointment& that) const { return (type==that.type) && (uid==that.uid) && (color==that.color) && (summary==that.summary) - && (url==that.url) - && (audio_url==that.audio_url) && (begin==that.begin) - && (end==that.end); + && (end==that.end) + && (alarms==that.alarms); } /**** |