summaryrefslogtreecommitdiffstats
path: root/libkcal/freebusy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcal/freebusy.cpp')
-rw-r--r--libkcal/freebusy.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/libkcal/freebusy.cpp b/libkcal/freebusy.cpp
index 75d0e7db4..2935f4baf 100644
--- a/libkcal/freebusy.cpp
+++ b/libkcal/freebusy.cpp
@@ -222,3 +222,12 @@ void FreeBusy::merge( FreeBusy *freeBusy )
for ( it = periods.begin(); it != periods.end(); ++it )
addPeriod( (*it).start(), (*it).end() );
}
+
+bool FreeBusy::operator==( const FreeBusy &freebusy ) const
+{
+ return
+ static_cast<const IncidenceBase &>( *this ) == static_cast<const IncidenceBase &>( freebusy ) &&
+ dtEnd() == freebusy.dtEnd() &&
+ mCalendar == freebusy.mCalendar &&
+ mBusyPeriods == freebusy.mBusyPeriods;
+}