|bool||isSame (const QVariant &lhs, const QVariant &rhs)|
|bool||isSamePerson (const Person &lhs, const Person &rhs)|
|QVariant||merge (const QVariant &lhs, const QVariant &rhs)|
Utilities for merging reservations or elements of them.
Checks if two Reservation or Trip values refer to the same booking element.
This does not mean being exactly equal, but having matching identifying properties. What this means exactly depends on the data type:
- Flights: booking reference, flight number and departure day match
- Train trip: booking reference, train number and departure day match
- Bus trip: booking ref and/or number and departure time match
- Hotel booking: hotel name, booking reference and checkin day match
For all reservation types, the Reservation::underName property is checked and either needs to be equal or absent in one of the values.