Commit 648f83f5 authored by Laurent Montel's avatar Laurent Montel 😁

Add operator()==

parent 4d4c6be3
......@@ -56,6 +56,12 @@ PluginEditorCheckBeforeSendParams &PluginEditorCheckBeforeSendParams::operator=(
return *this;
}
bool PluginEditorCheckBeforeSendParams::operator ==(const PluginEditorCheckBeforeSendParams &other) const
{
return (d->subject == other.subject()) &&
(d->identity = other.identity()) &&
(d->isHtml = other.isHtmlMail());
}
void PluginEditorCheckBeforeSendParams::setSubject(const QString &subject)
{
......
......@@ -42,6 +42,7 @@ public:
void setHtmlMail(bool html);
PluginEditorCheckBeforeSendParams &operator =(const PluginEditorCheckBeforeSendParams &other);
bool operator ==(const PluginEditorCheckBeforeSendParams &other) const;
private:
PluginEditorCheckBeforeSendParamsPrivate *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