};
-enum Handler {
+enum class Handler {
SignalProxy,
AuthHandler
};
/*** Handshake, handled by AuthHandler ***/
struct HandshakeMessage {
- inline Handler handler() const { return AuthHandler; }
+ inline Handler handler() const { return Handler::AuthHandler; }
};
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;
struct SignalProxyMessage
{
- inline Handler handler() const { return SignalProxy; }
+ inline Handler handler() const { return Handler::SignalProxy; }
};