#include <QStringList>
#include <QTimer>
-#ifndef QT_NO_OPENSSL
+#ifdef HAVE_SSL
# include <QSslSocket>
# include <QSslError>
#else
#include "network.h"
#include "signalproxy.h"
-class Network;
-
class IrcServerHandler;
class UserInputHandler;
class CtcpHandler;
void startAutoWhoCycle();
void nickChanged(const QString &newNick, const QString &oldNick); // this signal is inteded to rename query buffers in the storage backend
-#ifndef QT_NO_OPENSSL
+#ifdef HAVE_SSL
void socketEncrypted();
void sslErrors(const QList<QSslError> &errors);
#endif
void fillBucketAndProcessQueue();
private:
-#ifndef QT_NO_OPENSSL
+#ifdef HAVE_SSL
QSslSocket socket;
#else
QTcpSocket socket;
QTimer _socketCloseTimer;
+ /* this flag triggers quitRequested() once the socket is closed
+ * it is needed to determine whether or not the connection needs to be
+ *in the automatic session restore. */
bool _quitRequested;
bool _previousConnectionAttemptFailed;
void writeToSocket(QByteArray s);
-
-
class ParseError : public Exception {
public:
ParseError(QString cmd, QString prefix, QStringList params);