Commit c276bf4c authored by Sandro Knauß's avatar Sandro Knauß

Added ImapAclAttribute::operator==

copied from kdepim repo pimcommon/acl/imapaclattribute.*

REVIEW: 123572
parent 334bf52e
......@@ -152,3 +152,10 @@ void ImapAclAttribute::deserialize(const QByteArray &data)
mMyRights = KIMAP::Acl::rightsFromString(parts.at(2));
}
}
bool ImapAclAttribute::operator==(const ImapAclAttribute &other) const
{
return (oldRights() == other.oldRights())
&& (rights() == other.rights())
&& (myRights() == other.myRights());
}
......@@ -46,6 +46,7 @@ public:
QByteArray serialized() const Q_DECL_OVERRIDE;
void deserialize(const QByteArray &data) Q_DECL_OVERRIDE;
bool operator==(const ImapAclAttribute &other) const;
private:
QMap<QByteArray, KIMAP::Acl::Rights> mRights;
QMap<QByteArray, KIMAP::Acl::Rights> mOldRights;
......
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