Added getters and setters for connection and response timeouts.
This commit is contained in:
parent
28666c2603
commit
8f6a67664f
@ -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] --- */
|
||||
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user