X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.h;h=456f847255292e8615903d066bff1db46f0232c2;hb=145a52eb79fed146731f85c23b60f0609e40e785;hp=01d71edc8e8857e6501dcbba80c1bb31d4088454;hpb=8f92b3f08df9f4eb8fd243ccec6aa9d4b563ec23;p=quassel.git diff --git a/src/core/corenetwork.h b/src/core/corenetwork.h index 01d71edc..456f8472 100644 --- a/src/core/corenetwork.h +++ b/src/core/corenetwork.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2019 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -22,15 +22,10 @@ #include +#include +#include #include -#ifdef HAVE_SSL -# include -# include -#else -# include -#endif - #ifdef HAVE_QCA2 # include "cipher.h" #endif @@ -141,7 +136,7 @@ public: * * @returns True if in progress, otherwise false */ - inline bool capNegotiationInProgress() const { return (!_capsQueuedIndividual.empty() || !_capsQueuedBundled.empty()); } + inline bool capsPendingNegotiation() const { return (!_capsQueuedIndividual.empty() || !_capsQueuedBundled.empty()); } /** * Queues a capability to be requested. @@ -476,9 +471,7 @@ private slots: void sendAutoWho(); void startAutoWhoCycle(); -#ifdef HAVE_SSL void onSslErrors(const QList& errors); -#endif /** * Check the message token bucket @@ -513,11 +506,7 @@ private: bool _debugLogRawIrc; ///< If true, include raw IRC socket messages in the debug log qint32 _debugLogRawNetId; ///< Network ID for logging raw IRC socket messages, or -1 for all -#ifdef HAVE_SSL QSslSocket socket; -#else - QTcpSocket socket; -#endif qint64 _socketId{0}; CoreUserInputHandler* _userInputHandler;