diff options
| author | Daniel Collins <solemnwarning@solemnwarning.net> | 2025-04-16 19:07:54 +0100 |
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2025-06-30 19:26:53 +0200 |
| commit | 8dc325fb3fb85d0ab76092db66deaee26145f863 (patch) | |
| tree | ff2d49b27e8a4d4646dc5c2bdc95e0f9930562d6 /krdc/kremoteview.h | |
| parent | eea2e3baf09d75d646cb5647775b06decbe7ec5c (diff) | |
| download | tdenetwork-8dc325fb.tar.gz tdenetwork-8dc325fb.zip | |
Add "Paste" command to krdc (#102).
This adds a "Paste" command to the toolbar which sends the current
clipboard content to the remote host as key presses.
Not implemented for RDP as we appear to defer to rdesktop and I'm not
sure if we can reliably do it there (also krdc RDP isn't working for me
right now).
(cherry picked from commit 123ecc2bd9b3e470a34dd3aa3b0f6b66e74d6c76)
Diffstat (limited to 'krdc/kremoteview.h')
| -rw-r--r-- | krdc/kremoteview.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/krdc/kremoteview.h b/krdc/kremoteview.h index 9510153f..a735ebe0 100644 --- a/krdc/kremoteview.h +++ b/krdc/kremoteview.h @@ -227,6 +227,18 @@ public slots: */ virtual void pressKey(XEvent *k) = 0; + /** + * Checks whether the backend sending a string of characters. + * Default implementation returns false. + */ + virtual bool supportsSendString() const; + + /** + * Sends a string of characters to the remote server as key presses. + * Default implementation does nothing. + */ + virtual void sendString(const TQString &s); + signals: /** * Emitted when the size of the remote screen changes. Also |
