#include <sender.h>
|  | 
| enum | AuthMethod { AuthNone, 
AuthPlain, 
AuthLogin
 } | 
|  | 
| enum | SmtpError { ConnectionTimeoutError, 
ResponseTimeoutError, 
SendDataTimeoutError, 
AuthenticationFailedError,
 ServerError, 
ClientError
 }
 | 
|  | 
| enum | ConnectionType { TcpConnection, 
SslConnection, 
TlsConnection
 } | 
|  | 
| enum | PeerVerificationType { VerifyNone, 
VerifyPeer
 } | 
|  | 
◆ AuthMethod
| Valeurs énumérées | 
|---|
| AuthNone |  | 
| AuthPlain |  | 
| AuthLogin |  | 
 
 
◆ ConnectionType
| Valeurs énumérées | 
|---|
| TcpConnection |  | 
| SslConnection |  | 
| TlsConnection |  | 
 
 
◆ PeerVerificationType
| Valeurs énumérées | 
|---|
| VerifyNone |  | 
| VerifyPeer |  | 
 
 
◆ SmtpError
| Valeurs énumérées | 
|---|
| ConnectionTimeoutError |  | 
| ResponseTimeoutError |  | 
| SendDataTimeoutError |  | 
| AuthenticationFailedError |  | 
| ServerError |  | 
| ClientError |  | 
 
 
◆ Sender() [1/2]
  
  | 
        
          | Sender::Sender | ( | QObject * | parent = 0 | ) |  |  | explicit | 
 
SenderPrivate * d_ptr
Definition: sender.h:226
void setConnectionType(ConnectionType ct)
Definition: sender.cpp:126
Definition: sender_p.h:29
 
 
◆ Sender() [2/2]
Références host(), port(), et setConnectionType().
SenderPrivate * d_ptr
Definition: sender.h:226
void setConnectionType(ConnectionType ct)
Definition: sender.cpp:126
Definition: sender_p.h:29
ConnectionType connectionType() const
Definition: sender.cpp:120
QString host() const
Definition: sender.cpp:48
int port() const
Definition: sender.cpp:96
 
 
◆ ~Sender()
Références d_ptr.
SenderPrivate * d_ptr
Definition: sender.h:226
 
 
◆ authMethod()
Returns the authenticaion method of the SMTP server 
 
 
◆ connectionTimeout()
      
        
          | int Sender::connectionTimeout | ( |  | ) | const | 
      
 
Returns the connection timeout when connecting to the SMTP server 
  171     return d->connectionTimeout;
 
 
 
◆ connectionType()
◆ host()
      
        
          | QString Sender::host | ( |  | ) | const | 
      
 
 
◆ ignoreSslErrors() [1/2]
      
        
          | void Sender::ignoreSslErrors | ( |  | ) |  | 
      
 
Références connectionType(), SslConnection, et TlsConnection.
Référencé par ignoreSslErrors().
ConnectionType connectionType() const
Definition: sender.cpp:120
void ignoreSslErrors()
ignoreSslErrors tells the socket to ignore all pending ssl errors if SSL encryption is active...
Definition: sender.cpp:202
 
 
◆ ignoreSslErrors() [2/2]
      
        
          | void Sender::ignoreSslErrors | ( | const QList< QSslError > & | errors | ) |  | 
      
 
- Paramètres
- 
  
    | errors | defines the errors to ignore |  
 
Références connectionType(), ignoreSslErrors(), SslConnection, et TlsConnection.
ConnectionType connectionType() const
Definition: sender.cpp:120
void ignoreSslErrors()
ignoreSslErrors tells the socket to ignore all pending ssl errors if SSL encryption is active...
Definition: sender.cpp:202
 
 
◆ lastError()
      
        
          | QString Sender::lastError | ( |  | ) | const | 
      
 
 
◆ name()
      
        
          | QString Sender::name | ( |  | ) | const | 
      
 
Defines the client's name. This name is sent by the EHLO command. Defaults to the local host name 
Référencé par setName().
 
 
◆ password()
      
        
          | QString Sender::password | ( |  | ) | const | 
      
 
Returns the password that will authenticate on the SMTP server 
Référencé par setPassword().
 
 
◆ peerVerificationType()
- Renvoie
- PeerVerificationType as VerifyNone or VerifyPeer 
  229     return d->peerVerificationType;
 
 
 
◆ port()
      
        
          | int Sender::port | ( |  | ) | const | 
      
 
 
◆ quit()
◆ responseCode()
      
        
          | int Sender::responseCode | ( |  | ) | const | 
      
 
Returns the response code the SMTP server last returned 
  165     return d->responseCode;
 
 
 
◆ responseText()
      
        
          | QByteArray Sender::responseText | ( |  | ) | const | 
      
 
Returns the response text the SMTP server last returned 
  159     return d->responseText;
 
 
 
◆ responseTimeout()
      
        
          | int Sender::responseTimeout | ( |  | ) | const | 
      
 
Returns the response timeout when waiting for a message to be processed by the SMTP server 
  183     return d->responseTimeout;
 
 
 
◆ sendMail()
◆ sendMessageTimeout()
      
        
          | int Sender::sendMessageTimeout | ( |  | ) | const | 
      
 
Returns the timeout when waiting for a message data to be sent to the SMTP server 
  194     return d->sendMessageTimeout;
 
 
 
◆ setAuthMethod()
Defines the authenticaion method of the SMTP server 
   87     d->authMethod = method;
 
 
 
◆ setConnectionTimeout()
      
        
          | void Sender::setConnectionTimeout | ( | int | msec | ) |  | 
      
 
Defines the connection timeout when connecting to the SMTP server 
  177     d->connectionTimeout = msec;
 
 
 
◆ setConnectionType()
Defines the connection type of the SMTP server 
Références connectionType(), socketError(), socketReadyRead(), socketStateChanged(), SslConnection, sslErrors(), TcpConnection, et TlsConnection.
Référencé par Sender().
  136         d->socket = 
new QTcpSocket(
this);
   140         d->socket = 
new QSslSocket(
this);
   141         d->setPeerVerificationType(d->peerVerificationType);
   142         connect(static_cast<QSslSocket*>(d->socket), static_cast<
void(QSslSocket::*)(
const QList<QSslError> &)>(&QSslSocket::sslErrors),
this, &
Sender::sslErrors, Qt::DirectConnection);
   145     connect(d->socket, static_cast<
void(QTcpSocket::*)(QTcpSocket::SocketError)>(&QTcpSocket::error),
 
void socketStateChanged(QAbstractSocket::SocketState state)
Definition: sender.cpp:250
void sslErrors(const QList< QSslError > &sslErrorList)
ConnectionType connectionType() const
Definition: sender.cpp:120
void socketError(QAbstractSocket::SocketError error)
Definition: sender.cpp:254
void socketReadyRead()
Definition: sender.cpp:258
 
 
◆ setHost()
      
        
          | void Sender::setHost | ( | const QString & | host | ) |  | 
      
 
Defines the hostname of the SMTP server 
Références host().
QString host() const
Definition: sender.cpp:48
 
 
◆ setName()
      
        
          | void Sender::setName | ( | const QString & | name | ) |  | 
      
 
Defines the client's name. This name is sent by the EHLO command. Defaults to the local host name 
Références name().
QString name() const
Definition: sender.cpp:108
 
 
 
◆ setPassword()
      
        
          | void Sender::setPassword | ( | const QString & | password | ) |  | 
      
 
 
◆ setPeerVerificationType()
- Paramètres
- 
  
    | type | VerifyNone does not try to verify the identity, VerifyPeer does check on server identity |  
 
  223     d->setPeerVerificationType(type);
 
 
 
◆ setPort()
      
        
          | void Sender::setPort | ( | int | port | ) |  | 
      
 
Defines the port of the SMTP server 
Références port().
int port() const
Definition: sender.cpp:96
 
 
 
◆ setResponseTimeout()
      
        
          | void Sender::setResponseTimeout | ( | int | msec | ) |  | 
      
 
Defines the response timeout when waiting for a message to be processed by the SMTP server 
  189     d->responseTimeout = msec;
 
 
 
◆ setSendMessageTimeout()
      
        
          | void Sender::setSendMessageTimeout | ( | int | msec | ) |  | 
      
 
Defines the timeout when waiting for a message data to be sent to the SMTP server 
  199     d->sendMessageTimeout = msec;
 
 
 
◆ setUser()
      
        
          | void Sender::setUser | ( | const QString & | user | ) |  | 
      
 
 
◆ smtpError
  
  | 
        
          | void SimpleMail::Sender::smtpError | ( | SmtpError | e | ) |  |  | signal | 
 
 
◆ socketError
  
  | 
        
          | void Sender::socketError | ( | QAbstractSocket::SocketError | error | ) |  |  | protectedslot | 
 
 
◆ socketReadyRead
  
  | 
        
          | void Sender::socketReadyRead | ( |  | ) |  |  | protectedslot | 
 
 
◆ socketStateChanged
  
  | 
        
          | void Sender::socketStateChanged | ( | QAbstractSocket::SocketState | state | ) |  |  | protectedslot | 
 
 
◆ sslErrors
  
  | 
        
          | void SimpleMail::Sender::sslErrors | ( | const QList< QSslError > & | sslErrorList | ) |  |  | signal | 
 
 
◆ user()
      
        
          | QString Sender::user | ( |  | ) | const | 
      
 
Returns the username that will authenticate on the SMTP server 
Référencé par setUser().
 
 
◆ d_ptr
La documentation de cette classe a été générée à partir des fichiers suivants :