From 6f9a82364b5480ac7b0056b3563776bacf605f62 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 5 Nov 2011 02:13:28 +0200 Subject: Server config requests. ALERT: segfault at runtime! Not fixed yet --- client/SslClient.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'client/SslClient.h') 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 #include +#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: @@ -56,6 +59,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(); -- cgit v1.2.3