X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Fprotocol.h;h=bf6c401e339f1bde84a66629708cbcb70322c1bf;hb=30fa961d1aca319b52071ad9d6e4527ea2638fb7;hp=d9d1049010d074b4cc19865d77b350de08061b23;hpb=d6f3eedebc7f9619b04dffc5f48faa792950fdcd;p=quassel.git diff --git a/src/common/protocol.h b/src/common/protocol.h index d9d10490..bf6c401e 100644 --- a/src/common/protocol.h +++ b/src/common/protocol.h @@ -42,7 +42,7 @@ enum Feature { }; -enum Handler { +enum class Handler { SignalProxy, AuthHandler }; @@ -51,7 +51,7 @@ enum Handler { /*** Handshake, handled by AuthHandler ***/ struct HandshakeMessage { - inline Handler handler() const { return AuthHandler; } + inline Handler handler() const { return Handler::AuthHandler; } }; @@ -81,20 +81,20 @@ struct ClientDenied : public HandshakeMessage struct ClientRegistered : public HandshakeMessage { - inline ClientRegistered(quint32 coreFeatures, bool coreConfigured, const QVariantList &backendInfo, bool sslSupported, const QVariantList &authBackendInfo) + inline ClientRegistered(quint32 coreFeatures, bool coreConfigured, const QVariantList &backendInfo, bool sslSupported, const QVariantList &authenticatorInfo) : coreFeatures(coreFeatures) , coreConfigured(coreConfigured) , backendInfo(backendInfo) - , authBackendInfo(authBackendInfo) + , authenticatorInfo(authenticatorInfo) , sslSupported(sslSupported) {} quint32 coreFeatures; bool coreConfigured; - // The authBackendInfo should be optional! + // The authenticatorInfo should be optional! QVariantList backendInfo; // TODO: abstract this better - QVariantList authBackendInfo; + QVariantList authenticatorInfo; // this is only used by the LegacyProtocol in compat mode bool sslSupported; @@ -179,7 +179,7 @@ struct SessionState : public HandshakeMessage struct SignalProxyMessage { - inline Handler handler() const { return SignalProxy; } + inline Handler handler() const { return Handler::SignalProxy; } };