X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreauthhandler.h;h=a16ca1def52638eede111936f27ffe793f95f47e;hp=3f7ddf3c5195a3891cb58f4ec78a1e93d1a0aea9;hb=e56629542168c203cac8504085fc96c7f7b73d90;hpb=9d54503555534a2c554f09a33df6afa33d6308ec diff --git a/src/core/coreauthhandler.h b/src/core/coreauthhandler.h index 3f7ddf3c..a16ca1de 100644 --- a/src/core/coreauthhandler.h +++ b/src/core/coreauthhandler.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2015 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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