Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 09d375a1 authored by Laurent Montel's avatar Laurent Montel 😁

Prepare to allow to switch smtp for specific identity

parent 9d59a8a5
......@@ -5,6 +5,7 @@ include_directories(
set(kmail_checkbeforesendeditorplugin_SRCS
checkbeforesendplugin.cpp
checkbeforesendinterface.cpp
checkbeforesendupdatesmtpdialog.cpp
configurewidget/checkbeforesendconfigurewidget.cpp
configurewidget/checkbeforesendconfiguredialog.cpp
duplicateemails/checkduplicateemailsdialog.cpp
......
......@@ -19,3 +19,4 @@ add_kmail_checkbeforesend_unittest(checkduplicateemailsjobtest.cpp "../duplicate
add_kmail_checkbeforesend_unittest(checkattachmentdialogtest.cpp "../sendattachments/checkattachmentdialog.cpp")
add_kmail_checkbeforesend_unittest(checkattachmentjobtest.cpp "../sendattachments/checkattachmentjob.cpp")
add_kmail_checkbeforesend_unittest(checkbeforesendupdatesmtpdialogtest.cpp "../checkbeforesendupdatesmtpdialog.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 "checkbeforesendupdatesmtpdialogtest.h"
#include <QTest>
QTEST_MAIN(CheckBeforeSendUpdateSmtpDialogTest)
CheckBeforeSendUpdateSmtpDialogTest::CheckBeforeSendUpdateSmtpDialogTest(QObject *parent)
: QObject(parent)
{
}
/*
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 CHECKBEFORESENDUPDATESMTPDIALOGTEST_H
#define CHECKBEFORESENDUPDATESMTPDIALOGTEST_H
#include <QObject>
class CheckBeforeSendUpdateSmtpDialogTest : public QObject
{
Q_OBJECT
public:
explicit CheckBeforeSendUpdateSmtpDialogTest(QObject *parent = nullptr);
~CheckBeforeSendUpdateSmtpDialogTest() = default;
};
#endif // CHECKBEFORESENDUPDATESMTPDIALOGTEST_H
/*
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 "checkbeforesendupdatesmtpdialog.h"
#include <KLocalizedString>
#include <QVBoxLayout>
#include <QDialogButtonBox>
CheckBeforeSendUpdateSmtpDialog::CheckBeforeSendUpdateSmtpDialog(QWidget *parent)
: QDialog(parent)
{
}
CheckBeforeSendUpdateSmtpDialog::~CheckBeforeSendUpdateSmtpDialog()
{
}
/*
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 CHECKBEFORESENDUPDATESMTPDIALOG_H
#define CHECKBEFORESENDUPDATESMTPDIALOG_H
#include <QDialog>
class CheckBeforeSendUpdateSmtpDialog : public QDialog
{
Q_OBJECT
public:
explicit CheckBeforeSendUpdateSmtpDialog(QWidget *parent = nullptr);
~CheckBeforeSendUpdateSmtpDialog();
};
#endif // CHECKBEFORESENDUPDATESMTPDIALOG_H
......@@ -46,8 +46,9 @@ void ConfirmAddressSimpleStringListEditor::addNewEntry()
QString ConfirmAddressSimpleStringListEditor::modifyEntry(const QString &text)
{
QString newText;
QPointer<ConfirmAddressEmailEntryDialog> dlg = new ConfirmAddressEmailEntryDialog(this);
QPointer<ConfirmAddressEmailEntryDialog> dlg = new ConfirmAddressEmailEntryDialog(this);
dlg->setWindowTitle(i18n("Change Value"));
dlg->setValue(text);
if (dlg->exec()) {
newText = dlg->emails();
Q_EMIT aboutToAdd(newText);
......
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