Commit e469be71 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add ==operator

parent d440a082
Pipeline #83146 canceled with stage
......@@ -122,6 +122,11 @@ bool AddressAttribute::deliveryStatusNotification() const
return d->mDSN;
}
bool AddressAttribute::operator==(const AddressAttribute &other) const
{
return d->mDSN == other.deliveryStatusNotification() && d->mBcc == other.bcc() && d->mTo == other.to() && d->mCc == other.cc() && d->mFrom == other.from();
}
void AddressAttribute::setDeliveryStatusNotification(bool b)
{
d->mDSN = b;
......
......@@ -89,6 +89,8 @@ public:
void setDeliveryStatusNotification(bool b);
Q_REQUIRED_RESULT bool deliveryStatusNotification() const;
bool operator==(const AddressAttribute &other) const;
private:
class Private;
Private *const d;
......
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