summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-06-07 08:17:28 +0200
committerMontel Laurent <[email protected]>2016-06-07 08:17:28 +0200
commit648f83f54dc8fe4029900307e0b6b4f094b72710 (patch)
tree4b6763a70e3c130faa8e2a7a853db50acff6dfc8
parent4d4c6be38f4ac8df72090bb06ae21cc251230c43 (diff)
Add operator()==
-rw-r--r--messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendparams.cpp6
-rw-r--r--messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendparams.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendparams.cpp b/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendparams.cpp
index dabaa40..6360a5a 100644
--- a/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendparams.cpp
+++ b/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendparams.cpp
@@ -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)
{
diff --git a/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendparams.h b/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendparams.h
index 30eb621..5739c90 100644
--- a/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendparams.h
+++ b/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendparams.h
@@ -42,6 +42,7 @@ public:
void setHtmlMail(bool html);
PluginEditorCheckBeforeSendParams &operator =(const PluginEditorCheckBeforeSendParams &other);
+ bool operator ==(const PluginEditorCheckBeforeSendParams &other) const;
private:
PluginEditorCheckBeforeSendParamsPrivate *const d;
};