X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreauthhandler.h;h=bb0b28b8a2a1bfb31d5e854b1979655bd6db57b5;hp=3f7ddf3c5195a3891cb58f4ec78a1e93d1a0aea9;hb=2dca302472ee44923e164784191891711eff626a;hpb=9d54503555534a2c554f09a33df6afa33d6308ec diff --git a/src/core/coreauthhandler.h b/src/core/coreauthhandler.h index 3f7ddf3c..bb0b28b8 100644 --- a/src/core/coreauthhandler.h +++ b/src/core/coreauthhandler.h @@ -22,6 +22,7 @@ #define COREAUTHHANDLER_H #include "authhandler.h" +#include "peerfactory.h" #include "remotepeer.h" #include "types.h" @@ -42,21 +43,29 @@ private: void handle(const Protocol::SetupData &msg); void handle(const Protocol::Login &msg); + void setPeer(RemotePeer *peer); + void startSsl(); + bool checkClientRegistered(); private slots: - void startSsl(); + void onReadyRead(); + #ifdef HAVE_SSL void onSslErrors(); #endif - // only in compat mode + // only in legacy mode void onProtocolVersionMismatch(int actual, int expected); private: RemotePeer *_peer; + bool _magicReceived; + bool _legacy; bool _clientRegistered; + quint8 _connectionFeatures; + QVector _supportedProtos; }; #endif