diff options
Diffstat (limited to 'client/SslClient.h')
-rw-r--r-- | client/SslClient.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/client/SslClient.h b/client/SslClient.h index 3b8f0bb..3a00de5 100644 --- a/client/SslClient.h +++ b/client/SslClient.h @@ -4,6 +4,9 @@ #include <QAbstractSocket> #include <QObject> +#include "client.h" + +using std::string; class QByteArray; class QSslSocket; @@ -23,7 +26,7 @@ class QString; * -# 0x04 - request static proxy list * -# 0x08 - request firewall host list */ -class SslClient: QObject +class SslClient: public QObject { Q_OBJECT public: @@ -57,6 +60,12 @@ public: SslClient(); /** + * @brief setup ssl socket ans it's type, certificates and key + * @param addr server address or hostname to connect to + */ + SslClient(string &addr); + + /** * @brief setup ssl socket ans it's type, certificates and key * @param addr server address or hostname to connect to */ @@ -79,7 +88,7 @@ signals: * particular request * @param type of request this reply corresponds to */ - void ReplyRecieved(RequestType &type, QByteArray &confdata); + void ReplyRecieved(SslClient::RequestType &type, QByteArray &confdata); private slots: void Connected(); void Disconnected(); |