diff --git a/src/smtpclient.cpp b/src/smtpclient.cpp index ffa4e6f..2071d8d 100644 --- a/src/smtpclient.cpp +++ b/src/smtpclient.cpp @@ -144,6 +144,26 @@ QTcpSocket* SmtpClient::getSocket() { return socket; } +int SmtpClient::getConnectionTimeout() const +{ + return connectionTimeout; +} + +void SmtpClient::setConnectionTimeout(int msec) +{ + connectionTimeout = msec; +} + +int SmtpClient::getResponseTimeout() const +{ + return responseTimeout; +} + +void SmtpClient::setResponseTimeout(int msec) +{ + responseTimeout = msec; +} + /* [2] --- */ diff --git a/src/smtpclient.h b/src/smtpclient.h index f2bc161..96ab77a 100644 --- a/src/smtpclient.h +++ b/src/smtpclient.h @@ -92,6 +92,12 @@ public: const QString & getResponseText() const; int getResponseCode() const; + int getConnectionTimeout() const; + void setConnectionTimeout(int msec); + + int getResponseTimeout() const; + void setResponseTimeout(int msec); + QTcpSocket* getSocket();