KIMAP::SessionUiProxy Class Reference

Interface to display communication errors and wait for user feedback. More...

#include <sessionuiproxy.h>

List of all members.

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 32 of file sessionuiproxy.h.


Member Function Documentation

virtual bool KIMAP::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/ksslcertificatemanager.h>
 class UiProxy: public SessionUiProxy {
   public:
     bool ignoreSslError(const KSslErrorUiData& errorData) {
       if (KSslCertificateManager::askIgnoreSslErrors(errorData)) {
         return true;
       } else {
        return false;
       }
     }
 };
 [...]
 Session session(server, port);
 UiProxy *proxy = new UiProxy();
 session.setUiProxy(proxy);
Parameters:
errorData contains details about the error.
Returns:
true if the error can be ignored

The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys