|
|
@ -74,14 +74,6 @@ namespace rfb {
|
|
|
|
|
|
|
|
|
|
|
|
virtual void setEncodings(int nEncodings, const rdr::S32* encodings);
|
|
|
|
virtual void setEncodings(int nEncodings, const rdr::S32* encodings);
|
|
|
|
|
|
|
|
|
|
|
|
virtual void clientCutText(const char* str, int len);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 clearBinaryClipboard();
|
|
|
|
virtual void clearBinaryClipboard();
|
|
|
|
virtual void addBinaryClipboard(const char mime[], const rdr::U8 *data,
|
|
|
|
virtual void addBinaryClipboard(const char mime[], const rdr::U8 *data,
|
|
|
|
const rdr::U32 len);
|
|
|
|
const rdr::U32 len);
|
|
|
@ -131,25 +123,11 @@ namespace rfb {
|
|
|
|
virtual void enableContinuousUpdates(bool enable,
|
|
|
|
virtual void enableContinuousUpdates(bool enable,
|
|
|
|
int x, int y, int w, int h);
|
|
|
|
int x, int y, int w, int h);
|
|
|
|
|
|
|
|
|
|
|
|
// handleClipboardRequest() is called whenever the client requests
|
|
|
|
|
|
|
|
// the server to send over its clipboard data. It will only be
|
|
|
|
|
|
|
|
// called after the server has first announced a clipboard change
|
|
|
|
|
|
|
|
// via announceClipboard().
|
|
|
|
|
|
|
|
virtual void handleClipboardRequest();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// handleClipboardAnnounce() is called to indicate a change in the
|
|
|
|
// handleClipboardAnnounce() is called to indicate a change in the
|
|
|
|
// clipboard on the client. Call requestClipboard() to access the
|
|
|
|
// clipboard on the client. Call requestClipboard() to access the
|
|
|
|
// actual data.
|
|
|
|
// actual data.
|
|
|
|
virtual void handleClipboardAnnounce(bool available);
|
|
|
|
virtual void handleClipboardAnnounce(bool available);
|
|
|
|
|
|
|
|
|
|
|
|
// handleClipboardData() is called when the client has sent over
|
|
|
|
|
|
|
|
// the clipboard data as a result of a previous call to
|
|
|
|
|
|
|
|
// requestClipboard(). Note that this function might never be
|
|
|
|
|
|
|
|
// called if the clipboard data was no longer available when the
|
|
|
|
|
|
|
|
// client received the request.
|
|
|
|
|
|
|
|
virtual void handleClipboardData(const char* data, int len);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual void add_changed_all() {}
|
|
|
|
virtual void add_changed_all() {}
|
|
|
|
|
|
|
|
|
|
|
|
// setAccessRights() allows a security package to limit the access rights
|
|
|
|
// setAccessRights() allows a security package to limit the access rights
|
|
|
@ -170,22 +148,11 @@ namespace rfb {
|
|
|
|
|
|
|
|
|
|
|
|
// Other methods
|
|
|
|
// Other methods
|
|
|
|
|
|
|
|
|
|
|
|
// requestClipboard() will result in a request to the client to
|
|
|
|
|
|
|
|
// transfer its clipboard data. A call to handleClipboardData()
|
|
|
|
|
|
|
|
// will be made once the data is available.
|
|
|
|
|
|
|
|
virtual void requestClipboard();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// announceClipboard() informs the client of changes to the
|
|
|
|
// announceClipboard() informs the client of changes to the
|
|
|
|
// clipboard on the server. The client may later request the
|
|
|
|
// clipboard on the server. The client may later request the
|
|
|
|
// clipboard data via handleClipboardRequest().
|
|
|
|
// clipboard data via handleClipboardRequest().
|
|
|
|
virtual void announceClipboard(bool available);
|
|
|
|
virtual void announceClipboard(bool available);
|
|
|
|
|
|
|
|
|
|
|
|
// sendClipboardData() transfers the clipboard data to the client
|
|
|
|
|
|
|
|
// and should be called whenever the client has requested the
|
|
|
|
|
|
|
|
// clipboard via handleClipboardRequest().
|
|
|
|
|
|
|
|
virtual void sendClipboardData(const char* data, int len);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// authenticated() returns true if the client has authenticated
|
|
|
|
// authenticated() returns true if the client has authenticated
|
|
|
|
// successfully.
|
|
|
|
// successfully.
|
|
|
|
bool authenticated() { return (state_ == RFBSTATE_INITIALISATION ||
|
|
|
|
bool authenticated() { return (state_ == RFBSTATE_INITIALISATION ||
|
|
|
|