KSmtp::SessionUiProxy

Search for usage in LXR

KSmtp::SessionUiProxy Class Referenceabstract

#include <sessionuiproxy.h>

Public Types

using Ptr = QSharedPointer<SessionUiProxy>
 

Public Member Functions

virtual bool ignoreSslError (const KSslErrorUiData &errorData)=0
 

Detailed Description

Interface to display communication errors and wait for user feedback.

Definition at line 20 of file sessionuiproxy.h.

Member Typedef Documentation

◆ Ptr

Member Function Documentation

◆ ignoreSslError()

virtual bool KSmtp::SessionUiProxy::ignoreSslError ( const KSslErrorUiData & errorData)
pure virtual

Show an SSL error and ask the user whether it should be ignored or not.

The recommended KDE UI is the following:

#include <kio/ksslui.h>
class UiProxy: public SessionUiProxy {
public:
bool ignoreSslError(const KSslErrorUiData& errorData) {
return true;
} else {
return false;
}
}
};
[...]
Session session(server, port);
UiProxy *proxy = new UiProxy();
session.setUiProxy(proxy);
Interface to display communication errors and wait for user feedback.
virtual bool ignoreSslError(const KSslErrorUiData &errorData)=0
Show an SSL error and ask the user whether it should be ignored or not.
bool KIOWIDGETS_EXPORT askIgnoreSslErrors(const KSslErrorUiData &uiData, RulesStorage storedRules=RecallAndStoreRules)
Parameters
errorDatacontains details about the error.
Returns
true if the error can be ignored

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:14:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.