Commit 13365a78 authored by Laurent Montel's avatar Laurent Montel 😁

Start to create warning widget when we don't apply existing identity

parent a4c39c65
......@@ -101,9 +101,11 @@ set(kmailprivate_editor_LIB_SRCS
)
set(kmailprivate_warningwidgets_LIB_SRCS
warningwidgets/externaleditorwarning.cpp
warningwidgets/attachmentmissingwarning.cpp
editor/warningwidgets/externaleditorwarning.cpp
editor/warningwidgets/attachmentmissingwarning.cpp
editor/warningwidgets/incorrectidentityfolderwarning.cpp
)
set(kmailprivate_editor_potentialphishingemail_SRCS
editor/potentialphishingemail/potentialphishingemailwarning.cpp
editor/potentialphishingemail/potentialphishingemailjob.cpp
......
/*
Copyright (C) 2017 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "incorrectidentityfolderwarning.h"
#include <KLocalizedString>
IncorrectIdentityFolderWarning::IncorrectIdentityFolderWarning(QWidget *parent)
: KMessageWidget(parent)
{
setVisible(false);
setCloseButtonVisible(false);
setMessageType(Information);
setText(i18n("Incorrect Identity."));
setWordWrap(true);
connect(this, &IncorrectIdentityFolderWarning::hideAnimationFinished, this, &IncorrectIdentityFolderWarning::slotAnimationFinished);
}
IncorrectIdentityFolderWarning::~IncorrectIdentityFolderWarning()
{
}
void IncorrectIdentityFolderWarning::slotAnimationFinished()
{
//TODO
}
/*
Copyright (C) 2017 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef INCORRECTIDENTITYFOLDERWARNING_H
#define INCORRECTIDENTITYFOLDERWARNING_H
#include <KMessageWidget>
class IncorrectIdentityFolderWarning : public KMessageWidget
{
Q_OBJECT
public:
explicit IncorrectIdentityFolderWarning(QWidget *parent = nullptr);
~IncorrectIdentityFolderWarning();
private:
void slotAnimationFinished();
};
#endif // INCORRECTIDENTITYFOLDERWARNING_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment