summaryrefslogtreecommitdiff
path: root/client/SslClient.h
diff options
context:
space:
mode:
authorAlex <b0ris@b0ris-satellite.localdomain>2011-11-05 02:13:28 +0200
committerAlex <b0ris@b0ris-satellite.localdomain>2011-11-05 02:13:28 +0200
commit6f9a82364b5480ac7b0056b3563776bacf605f62 (patch)
tree26cbe3ca78bd2f0c933dcf20ad04c2a618c204b9 /client/SslClient.h
parentb7e0b79e7ce53bf467b1bcb8d60e86fac509f776 (diff)
Server config requests. ALERT: segfault at runtime! Not fixed yet
Diffstat (limited to 'client/SslClient.h')
-rw-r--r--client/SslClient.h13
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();