Commit 0fba5c13 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing operator

parent 2df1a9be
Pipeline #74163 canceled with stage
...@@ -70,6 +70,11 @@ ConfirmBeforeDeletingRule::RuleType ConfirmBeforeDeletingRule::stringToRuleType( ...@@ -70,6 +70,11 @@ ConfirmBeforeDeletingRule::RuleType ConfirmBeforeDeletingRule::stringToRuleType(
return Unknown; return Unknown;
} }
bool ConfirmBeforeDeletingRule::operator==(const ConfirmBeforeDeletingRule &other) const
{
return mPattern == other.pattern() && mRuleType == other.ruleType();
}
QString ConfirmBeforeDeletingRule::ruleTypeToString(ConfirmBeforeDeletingRule::RuleType r) QString ConfirmBeforeDeletingRule::ruleTypeToString(ConfirmBeforeDeletingRule::RuleType r)
{ {
QString tmp; QString tmp;
......
...@@ -42,6 +42,8 @@ public: ...@@ -42,6 +42,8 @@ public:
static Q_REQUIRED_RESULT QString ruleTypeToString(ConfirmBeforeDeletingRule::RuleType r); static Q_REQUIRED_RESULT QString ruleTypeToString(ConfirmBeforeDeletingRule::RuleType r);
static Q_REQUIRED_RESULT ConfirmBeforeDeletingRule::RuleType stringToRuleType(const QString &str); static Q_REQUIRED_RESULT ConfirmBeforeDeletingRule::RuleType stringToRuleType(const QString &str);
Q_REQUIRED_RESULT bool operator==(const ConfirmBeforeDeletingRule &other) const;
private: private:
void generateConfirmMessageInfo(const KMime::Message::Ptr &msg, QString &checkFoundInfo) const; void generateConfirmMessageInfo(const KMime::Message::Ptr &msg, QString &checkFoundInfo) const;
QString mPattern; QString mPattern;
......
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