diff options
author | Manuel Schneider | 2014-05-27 00:37:57 +0200 |
---|---|---|
committer | Manuel Schneider | 2014-05-27 00:37:57 +0200 |
commit | 76c303ebe93100e39c8be781d639c2354ddea35f (patch) | |
tree | 32b8bb8bd5068b6e121d48f26baf1abcf8e21aeb /src/server/net/client.h | |
parent | Drop _activeVncClient. _currentProjectionSource holds this information. (diff) | |
download | pvs2-76c303ebe93100e39c8be781d639c2354ddea35f.tar.gz pvs2-76c303ebe93100e39c8be781d639c2354ddea35f.tar.xz pvs2-76c303ebe93100e39c8be781d639c2354ddea35f.zip |
Drop unused _state. Introduce member _locked to avoid unnecessary messages.
Diffstat (limited to 'src/server/net/client.h')
-rw-r--r-- | src/server/net/client.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/server/net/client.h b/src/server/net/client.h index 14e0f0e..6788284 100644 --- a/src/server/net/client.h +++ b/src/server/net/client.h @@ -23,22 +23,11 @@ class Client : public QObject { Q_OBJECT -public: - - enum class State - { - Authenticating, - Idle, - VncClient, - VncServer, - Locked - }; - +public: explicit Client(QSslSocket* socket); ~Client(); // Getters - inline const State state() const { return _state; } inline const bool isAuthed() const { return _authed == 2; } inline const QString& name() const { return _name; } inline const QString& host() const { return _host; } @@ -64,7 +53,7 @@ public: private: QSslSocket * const _socket; - State _state; + bool _locked; int _authed; // 0 = challenge sent, awaiting reply 1 = challenge ok, client challenge replied, awaiting login, 2 = ESTABLISHED QString _name; QString _host; |