File indexing completed on 2024-12-22 05:01:14

0001 /*
0002    SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <KMessageWidget>
0010 
0011 namespace KMail
0012 {
0013 class SearchPatternWarning : public KMessageWidget
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit SearchPatternWarning(QWidget *parent = nullptr);
0018     ~SearchPatternWarning() override;
0019 
0020     void showWarningPattern(const QStringList &lstError);
0021     void hideWarningPattern();
0022 
0023 private:
0024     void setError(const QStringList &lstError);
0025 };
0026 }