Add flags member to decoders
Allows us to add attributes later that affect of the decoder
manager deals with the decoders.
diff --git a/common/rfb/Decoder.h b/common/rfb/Decoder.h
index 7286b41..95c1466 100644
--- a/common/rfb/Decoder.h
+++ b/common/rfb/Decoder.h
@@ -28,10 +28,16 @@
class ConnParams;
class ModifiablePixelBuffer;
class Rect;
+ class Region;
+
+ enum DecoderFlags {
+ // A constant for decoders that don't need anything special
+ DecoderPlain = 0,
+ };
class Decoder {
public:
- Decoder();
+ Decoder(enum DecoderFlags flags);
virtual ~Decoder();
// These functions are the main interface to an individual decoder
@@ -58,6 +64,9 @@
public:
static bool supported(int encoding);
static Decoder* createDecoder(int encoding);
+
+ public:
+ const enum DecoderFlags flags;
};
}