Move client attributes out of ServerParams
ServerParams should contain the server state and not information about
client settings or capabilities. Move those things up a level to the
CConnection object.
diff --git a/common/rfb/CConnection.h b/common/rfb/CConnection.h
index a0fa54a..5a3ef91 100644
--- a/common/rfb/CConnection.h
+++ b/common/rfb/CConnection.h
@@ -188,6 +188,13 @@
ModifiablePixelBuffer* getFramebuffer() { return framebuffer; }
+ protected:
+ // Optional capabilities that a subclass is expected to set to true
+ // if supported
+ bool supportsLocalCursor;
+ bool supportsDesktopResize;
+ bool supportsLEDState;
+
private:
// This is a default implementation of fences that automatically
// responds to requests, stating no support for synchronisation.
@@ -224,6 +231,8 @@
rfb::PixelFormat pendingPF;
int preferredEncoding;
+ int compressLevel;
+ int qualityLevel;
bool formatChange;
rfb::PixelFormat nextPF;