Support extended clipboard transfers
Implements support in both client and server for the extended
clipboard format first seen in UltraVNC. Currently only implements
text handling, but that is still an improvement as it extends the
clipboard from ISO 8859-1 to full Unicode.
diff --git a/common/rfb/SConnection.h b/common/rfb/SConnection.h
index 6c80569..db3ab08 100644
--- a/common/rfb/SConnection.h
+++ b/common/rfb/SConnection.h
@@ -82,6 +82,13 @@
virtual void clientCutText(const char* str);
+ virtual void handleClipboardRequest(rdr::U32 flags);
+ virtual void handleClipboardPeek(rdr::U32 flags);
+ virtual void handleClipboardNotify(rdr::U32 flags);
+ virtual void handleClipboardProvide(rdr::U32 flags,
+ const size_t* lengths,
+ const rdr::U8* const* data);
+
virtual void supportsQEMUKeyEvent();
@@ -247,6 +254,7 @@
AccessRights accessRights;
char* clientClipboard;
+ bool hasLocalClipboard;
};
}
#endif