KSMTP
            
 
   11#include "ksmtp_export.h" 
   12#include "sessionuiproxy.h" 
   44    Q_ENUM(EncryptionMode)
 
   55    void setUiProxy(
const SessionUiProxy::Ptr &uiProxy);
 
   56    [[nodiscard]] SessionUiProxy::Ptr uiProxy() 
const;
 
   63    void setUseNetworkProxy(
bool useProxy);
 
   69    [[nodiscard]] 
QString hostName() 
const;
 
   75    [[nodiscard]] quint16 port() 
const;
 
   77    [[nodiscard]] 
State state() 
const;
 
   80    [[nodiscard]] EncryptionMode encryptionMode() 
const;
 
   85    void setEncryptionMode(EncryptionMode mode);
 
   94    [[nodiscard]] 
bool allowsTls() 
const;
 
   99    [[nodiscard]] 
bool allowsDsn() 
const;
 
  104    [[nodiscard]] 
QStringList availableAuthModes() 
const;
 
  111    [[nodiscard]] 
int sizeLimit() 
const;
 
  113    [[nodiscard]] 
int socketTimeout() 
const;
 
  114    void setSocketTimeout(
int ms);
 
  119    void setCustomHostname(
const QString &hostname);
 
  120    [[nodiscard]] 
QString customHostname() 
const;
 
  148    void connectionError(
const QString &error);
 
  151    friend class SessionPrivate;
 
  152    friend class SessionThread;
 
  153    friend class JobPrivate;
 
  155    SessionPrivate *
const d;
 
 
@ Disconnected
The Session is not connected to the server.
 
@ Authenticated
The Session is ready to send email.
 
@ NotAuthenticated
The Session is ready for login.
 
Session(const QString &hostName, quint16 port, QObject *parent=nullptr)
Creates a new SMTP session to the specified host and port.
 
EncryptionMode
Transport encryption for a session.
 
@ Unencrypted
Use no encryption.
 
@ TLS
Use TLS encryption on the socket.
 
@ STARTTLS
Use STARTTLS to upgrade an unencrypted connection to encrypted after the initial handshake.
 
  
 
  This file is part of the KDE documentation.
  Documentation copyright © 1996-2025 The KDE developers.
  Generated on Fri May 2 2025 12:02:04 by
  
doxygen 1.13.2 written
  by 
Dimitri van Heesch, © 1997-2006
  
  KDE's Doxygen guidelines are available online.