summaryrefslogtreecommitdiffstats
path: root/libkcal/period.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcal/period.cpp')
-rw-r--r--libkcal/period.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libkcal/period.cpp b/libkcal/period.cpp
index be07d7d3..ff944ee9 100644
--- a/libkcal/period.cpp
+++ b/libkcal/period.cpp
@@ -51,6 +51,14 @@ bool Period::operator<( const Period& other )
return start() < other.start();
}
+bool Period::operator==( const Period &other ) const
+{
+ return
+ mStart == other.mStart &&
+ mEnd == other.mEnd &&
+ mHasDuration == other.mHasDuration;
+}
+
TQDateTime Period::start() const
{
return mStart;