};
-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 RegisterClient : public HandshakeMessage
{
- inline RegisterClient(const QString &clientVersion, const QString &buildDate, bool sslSupported = false)
+ inline RegisterClient(const QString &clientVersion, const QString &buildDate, bool sslSupported = false, int32_t features = 0)
: clientVersion(clientVersion)
, buildDate(buildDate)
- , sslSupported(sslSupported) {}
+ , sslSupported(sslSupported)
+ , clientFeatures(features) {}
QString clientVersion;
QString buildDate;
// this is only used by the LegacyProtocol in compat mode
bool sslSupported;
+ int32_t clientFeatures;
};
struct SignalProxyMessage
{
- inline Handler handler() const { return SignalProxy; }
+ inline Handler handler() const { return Handler::SignalProxy; }
};