Mailcommon

invalidfilterinfo.cpp
1 /*
2  SPDX-FileCopyrightText: 2015-2022 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "invalidfilterinfo.h"
8 using namespace MailCommon;
9 
10 InvalidFilterInfo::InvalidFilterInfo() = default;
11 
12 InvalidFilterInfo::InvalidFilterInfo(const QString &name, const QString &information)
13  : mName(name)
14  , mInformation(information)
15 {
16 }
17 
18 QString InvalidFilterInfo::information() const
19 {
20  return mInformation;
21 }
22 
23 QString InvalidFilterInfo::name() const
24 {
25  return mName;
26 }
27 
28 void InvalidFilterInfo::setName(const QString &name)
29 {
30  mName = name;
31 }
32 
33 void InvalidFilterInfo::setInformation(const QString &information)
34 {
35  mInformation = information;
36 }
37 
38 bool InvalidFilterInfo::operator==(const InvalidFilterInfo &other) const
39 {
40  return (mName == other.name()) && (mInformation == other.information());
41 }
QString name(StandardShortcut id)
void information(QWidget *parent, const QString &text, const QString &title=QString(), const QString &dontShowAgainName=QString(), Options options=Notify)
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Oct 1 2022 04:00:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.