Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ClientProxy.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
4 * SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
5 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6 */
7
8#pragma once
9
11
12namespace deskflow {
13class IStream;
14}
15
18{
19public:
23 ClientProxy(const std::string &name, deskflow::IStream *adoptedStream);
24 ClientProxy(ClientProxy const &) = delete;
26 ~ClientProxy() override;
27
28 ClientProxy &operator=(ClientProxy const &) = delete;
30
32
33
35
38 void close(const char *msg) const;
39
41
43
45
48 deskflow::IStream *getStream() const override;
49
51
52 // IScreen
53 void *getEventTarget() const override;
54 bool getClipboard(ClipboardID id, IClipboard *) const override = 0;
55 void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const override = 0;
56 void getCursorPos(int32_t &x, int32_t &y) const override = 0;
57
58 // IClient overrides
59 void enter(int32_t xAbs, int32_t yAbs, uint32_t seqNum, KeyModifierMask mask, bool forScreensaver) override = 0;
60 bool leave() override = 0;
61 void setClipboard(ClipboardID, const IClipboard *) override = 0;
62 void grabClipboard(ClipboardID) override = 0;
63 void setClipboardDirty(ClipboardID, bool) override = 0;
64 void keyDown(KeyID, KeyModifierMask, KeyButton, const std::string &) override = 0;
65 void keyRepeat(KeyID, KeyModifierMask, int32_t count, KeyButton, const std::string &lang) override = 0;
66 void keyUp(KeyID, KeyModifierMask, KeyButton) override = 0;
67 void mouseDown(ButtonID) override = 0;
68 void mouseUp(ButtonID) override = 0;
69 void mouseMove(int32_t xAbs, int32_t yAbs) override = 0;
70 void mouseRelativeMove(int32_t xRel, int32_t yRel) override = 0;
71 void mouseWheel(int32_t xDelta, int32_t yDelta) override = 0;
72 void screensaver(bool activate) override = 0;
73 void resetOptions() override = 0;
74 void setOptions(const OptionsList &options) override = 0;
75 void sendDragInfo(uint32_t fileCount, const char *info, size_t size) override = 0;
76 void fileChunkSending(uint8_t mark, char *data, size_t dataSize) override = 0;
77 void secureInputNotification(const std::string &app) const override = 0;
78
79private:
80 deskflow::IStream *m_stream;
81};
static const struct sockaddr FAR * name
Definition ArchNetworkWinsock.cpp:28
static int void FAR * data
Definition ArchNetworkWinsock.cpp:35
uint8_t ClipboardID
Clipboard ID.
Definition ClipboardTypes.h:16
uint32_t KeyID
Key ID.
Definition KeyTypes.h:21
uint16_t KeyButton
Key Code.
Definition KeyTypes.h:34
uint32_t KeyModifierMask
Modifier key mask.
Definition KeyTypes.h:44
uint8_t ButtonID
Mouse button ID.
Definition MouseTypes.h:16
std::vector< uint32_t > OptionsList
Definition OptionTypes.h:26
int y
Definition ServerConfig.cpp:25
int x
Definition ServerConfig.cpp:24
BaseClientProxy(const std::string &name)
Definition BaseClientProxy.cpp:14
ClientProxy & operator=(ClientProxy const &)=delete
void grabClipboard(ClipboardID) override=0
Grab clipboard.
void close(const char *msg) const
Disconnect.
Definition ClientProxy.cpp:28
void mouseUp(ButtonID) override=0
Notify of mouse release.
void setClipboardDirty(ClipboardID, bool) override=0
Mark clipboard dirty.
ClientProxy(ClientProxy &&)=delete
void keyRepeat(KeyID, KeyModifierMask, int32_t count, KeyButton, const std::string &lang) override=0
Notify of key repeat.
void mouseMove(int32_t xAbs, int32_t yAbs) override=0
Notify of mouse motion.
ClientProxy & operator=(ClientProxy &&)=delete
void getCursorPos(int32_t &x, int32_t &y) const override=0
Get cursor position.
void setClipboard(ClipboardID, const IClipboard *) override=0
Set clipboard.
ClientProxy(const std::string &name, deskflow::IStream *adoptedStream)
Definition ClientProxy.cpp:18
void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const override=0
Get screen shape.
void fileChunkSending(uint8_t mark, char *data, size_t dataSize) override=0
void enter(int32_t xAbs, int32_t yAbs, uint32_t seqNum, KeyModifierMask mask, bool forScreensaver) override=0
Enter screen.
void screensaver(bool activate) override=0
Notify of screen saver change.
void mouseWheel(int32_t xDelta, int32_t yDelta) override=0
Notify of mouse wheel motion.
bool getClipboard(ClipboardID id, IClipboard *) const override=0
Get clipboard.
void secureInputNotification(const std::string &app) const override=0
void keyUp(KeyID, KeyModifierMask, KeyButton) override=0
Notify of key release.
~ClientProxy() override
Definition ClientProxy.cpp:23
void sendDragInfo(uint32_t fileCount, const char *info, size_t size) override=0
void setOptions(const OptionsList &options) override=0
Notify of options changes.
void resetOptions() override=0
Notify of options changes.
void mouseRelativeMove(int32_t xRel, int32_t yRel) override=0
Notify of mouse motion.
void keyDown(KeyID, KeyModifierMask, KeyButton, const std::string &) override=0
Notify of key press.
deskflow::IStream * getStream() const override
Get stream.
Definition ClientProxy.cpp:37
void mouseDown(ButtonID) override=0
Notify of mouse press.
void * getEventTarget() const override
Get event target.
Definition ClientProxy.cpp:42
ClientProxy(ClientProxy const &)=delete
bool leave() override=0
Leave screen.
Clipboard interface.
Definition IClipboard.h:19
Bidirectional stream interface.
Definition IStream.h:22
Definition EventTypes.h:11