Warning, file /pim/mailcommon/src/filter/invalidfilters/invalidfilterinfo.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "invalidfilterinfo.h" 0008 using namespace MailCommon; 0009 0010 InvalidFilterInfo::InvalidFilterInfo() = default; 0011 0012 InvalidFilterInfo::InvalidFilterInfo(const QString &name, const QString &information) 0013 : mName(name) 0014 , mInformation(information) 0015 { 0016 } 0017 0018 QString InvalidFilterInfo::information() const 0019 { 0020 return mInformation; 0021 } 0022 0023 QString InvalidFilterInfo::name() const 0024 { 0025 return mName; 0026 } 0027 0028 void InvalidFilterInfo::setName(const QString &name) 0029 { 0030 mName = name; 0031 } 0032 0033 void InvalidFilterInfo::setInformation(const QString &information) 0034 { 0035 mInformation = information; 0036 } 0037 0038 bool InvalidFilterInfo::operator==(const InvalidFilterInfo &other) const 0039 { 0040 return (mName == other.name()) && (mInformation == other.information()); 0041 }