Added getters and setters for connection and response timeouts.

This commit is contained in:
Tőkés Attila 2012-10-25 18:06:16 +03:00
parent 28666c2603
commit 8f6a67664f
2 changed files with 26 additions and 0 deletions

View File

@ -144,6 +144,26 @@ QTcpSocket* SmtpClient::getSocket() {
return socket; 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] --- */ /* [2] --- */

View File

@ -92,6 +92,12 @@ public:
const QString & getResponseText() const; const QString & getResponseText() const;
int getResponseCode() const; int getResponseCode() const;
int getConnectionTimeout() const;
void setConnectionTimeout(int msec);
int getResponseTimeout() const;
void setResponseTimeout(int msec);
QTcpSocket* getSocket(); QTcpSocket* getSocket();