Changeset View
Changeset View
Standalone View
Standalone View
src/kmailtransport/plugins/smtp/sessionuiproxy.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | Copyright (c) 2017 Daniel Vrátil <dvratil@kde.org> | ||||
3 | | ||||
4 | This program is free software; you can redistribute it and/or modify it | ||||
5 | under the terms of the GNU General Public License, version 2, as | ||||
6 | published by the Free Software Foundation. | ||||
7 | | ||||
8 | This program is distributed in the hope that it will be useful, but | ||||
9 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
11 | General Public License for more details. | ||||
12 | | ||||
13 | You should have received a copy of the GNU General Public License along | ||||
14 | with this program; if not, write to the Free Software Foundation, Inc., | ||||
15 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||||
16 | */ | ||||
17 | | ||||
18 | #ifndef SESSIONUIPROXY_H_ | ||||
19 | #define SESSIONUIPROXY_H_ | ||||
20 | | ||||
21 | #include <KSMTP/SessionUiProxy> | ||||
22 | #include <kio/sslui.h> | ||||
23 | | ||||
24 | class SmtpSessionUiProxy : public KSmtp::SessionUiProxy | ||||
25 | { | ||||
26 | public: | ||||
27 | bool ignoreSslError(const KSslErrorUiData &errorData) override | ||||
28 | { | ||||
29 | return KIO::SslUi::askIgnoreSslErrors(errorData, KIO::SslUi::RecallAndStoreRules); | ||||
30 | } | ||||
31 | }; | ||||
32 | | ||||
33 | #endif |