diff options
author | Arnon Gilboa <agilboa@redhat.com> | 2010-07-19 10:29:47 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-07-19 10:30:19 +0300 |
commit | ce03f5449d68b2f0201dce409a81280300120069 (patch) | |
tree | 62f0877b9fd7f695253aa26f0ed046e873efbe66 /client/platform.h | |
parent | 4f8545ed628fbb89a893297c5fdf276511284b33 (diff) | |
download | spice-ce03f5449d68b2f0201dce409a81280300120069.tar.gz spice-ce03f5449d68b2f0201dce409a81280300120069.tar.xz spice-ce03f5449d68b2f0201dce409a81280300120069.zip |
client: add clipboard support
* windows - untested
* linux - small strings both ways, large implemented differently:
* client to guest - support INCR
* guest to client - we supply a single possibly very large property
* requires server changes in next patch to work with spice-vmc
Diffstat (limited to 'client/platform.h')
-rw-r--r-- | client/platform.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/client/platform.h b/client/platform.h index d2fdd484..6288380a 100644 --- a/client/platform.h +++ b/client/platform.h @@ -117,6 +117,17 @@ public: class DisplayModeListener; static void set_display_mode_listner(DisplayModeListener* listener); + + class ClipboardListener; + static void set_clipboard_listener(ClipboardListener* listener); + + enum { + CLIPBOARD_UTF8_TEXT = 1, + }; + + static bool set_clipboard_data(uint32_t type, const uint8_t* data, int32_t size); + static bool get_clipboard_data(uint32_t type, uint8_t* data, int32_t size); + static int32_t get_clipboard_data_size(uint32_t type); }; class Platform::EventListener { @@ -127,6 +138,12 @@ public: virtual void on_monitors_change() = 0; }; +class Platform::ClipboardListener { +public: + virtual ~ClipboardListener() {} + virtual void on_clipboard_change() = 0; +}; + class Platform::RecordClient { public: virtual ~RecordClient() {} |