From 16f89a80fad790d7e7ca9e94ce8a65b29ff7d82a Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Wed, 4 Mar 2020 07:57:35 +0000 Subject: [PATCH] inputs-channel: Move some methods to protected Signed-off-by: Frediano Ziglio --- server/inputs-channel.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/server/inputs-channel.h b/server/inputs-channel.h index 77ccbba7..890f6e05 100644 --- a/server/inputs-channel.h +++ b/server/inputs-channel.h @@ -30,15 +30,13 @@ class InputsChannelClient; -struct InputsChannel final: public RedChannel +class InputsChannel final: public RedChannel { friend class InputsChannelClient; friend int spice_server_kbd_leds(SpiceKbdInstance *sin, int leds); +public: InputsChannel(RedsState *reds); - ~InputsChannel(); - void on_connect(RedClient *client, RedStream *stream, int migration, - RedChannelCapabilities *caps) override; const VDAgentMouseState *get_mouse_state(); void set_tablet_logical_size(int x_res, int y_res); @@ -67,6 +65,10 @@ private: SpiceTabletInstance *tablet; private: + ~InputsChannel(); + + void on_connect(RedClient *client, RedStream *stream, int migration, + RedChannelCapabilities *caps) override; void sync_locks(uint8_t scan); void activate_modifiers_watch(); void push_keyboard_modifiers(uint8_t modifiers);