File indexing completed on 2024-10-27 04:50:59

0001 /*
0002    SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "kmail_private_export.h"
0010 #include <KMessageWidget>
0011 
0012 class KMAILTESTS_TESTS_EXPORT IncorrectIdentityFolderWarning : public KMessageWidget
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit IncorrectIdentityFolderWarning(QWidget *parent = nullptr);
0017     ~IncorrectIdentityFolderWarning() override;
0018 
0019     void mailTransportIsInvalid();
0020     void fccIsInvalid();
0021     void identityInvalid();
0022     void dictionaryInvalid();
0023     void clearFccInvalid();
0024 
0025 private:
0026     void addNewLine(QString &str);
0027     void updateText();
0028     void slotHideAnnimationFinished();
0029     bool mMailTransportIsInvalid = false;
0030     bool mFccIsInvalid = false;
0031     bool mIdentityIsInvalid = false;
0032     bool mDictionaryIsInvalid = false;
0033 };