Commit a6f1f714 authored by David Jarvie's avatar David Jarvie
Browse files

Add a comparison category for compare()

parent 36e213b4
......@@ -3638,8 +3638,12 @@ bool KAEventPrivate::compare(const KAEventPrivate& other, KAEvent::Comparison co
}
}
if (comparison & KAEvent::Compare::ICalendar) {
if (mCreatedDateTime != other.mCreatedDateTime
|| mCustomProperties != other.mCustomProperties) {
if (mCustomProperties != other.mCustomProperties) {
return false;
}
}
if (comparison & KAEvent::Compare::Created) {
if (mCreatedDateTime != other.mCreatedDateTime) {
return false;
}
}
......
......@@ -1289,9 +1289,10 @@ public:
/** Data categories for compare(). */
enum class Compare {
Id = 0x01, //!< the event ID
ICalendar = 0x02, //!< iCalendar data stored in VEVENT in the calendar file
UserSettable = 0x04, //!< user settable data, e.g. resource ID
CurrentState = 0x08 //!< changeable data which records the current state of the event
ICalendar = 0x02, //!< extra custom properties for the event in the iCalendar file
Created = 0x04, //!< the event creation timestamp
UserSettable = 0x08, //!< user settable data: resource ID, item ID
CurrentState = 0x10 //!< changeable data which records the current state of the event
};
Q_DECLARE_FLAGS(Comparison, Compare)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment