Mailcommon

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

KDE's Doxygen guidelines are available online.