From 8f6a67664f99a81ddd24afd111230579151c2461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C5=91k=C3=A9s=20Attila?= Date: Thu, 25 Oct 2012 18:06:16 +0300 Subject: [PATCH] Added getters and setters for connection and response timeouts. --- src/smtpclient.cpp | 20 ++++++++++++++++++++ src/smtpclient.h | 6 ++++++ 2 files changed, 26 insertions(+) diff --git a/src/smtpclient.cpp b/src/smtpclient.cpp index 75a717c..203cc61 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();