diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2015-03-31 18:54:04 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2015-03-31 18:54:04 -0500 |
commit | fff19d70649589b81a896e4deb032a7bd4bdca1e (patch) | |
tree | 3b1db77981d5561aaec31c308c69c6dbbf9ded68 /src/appointment.cpp | |
parent | 3c5eda144d9d83be1aef24afaa307999975ec617 (diff) | |
download | ayatana-indicator-datetime-fff19d70649589b81a896e4deb032a7bd4bdca1e.tar.gz ayatana-indicator-datetime-fff19d70649589b81a896e4deb032a7bd4bdca1e.tar.bz2 ayatana-indicator-datetime-fff19d70649589b81a896e4deb032a7bd4bdca1e.zip |
add an Alarm class to represent ical valarm components; change the Appointment class to hold an arbitrary number of Alarms.
Diffstat (limited to 'src/appointment.cpp')
-rw-r--r-- | src/appointment.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/appointment.cpp b/src/appointment.cpp index ae71459..236c5f4 100644 --- a/src/appointment.cpp +++ b/src/appointment.cpp @@ -27,16 +27,23 @@ namespace datetime { ***** ****/ +bool Alarm::operator==(const Alarm& that) const +{ + return (text==that.text) + && (audio_url==that.audio_url) + && (this->time==that.time) + && (duration==that.duration); +} + 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); } /**** |