2001-10-06 14:13:28 +00:00
|
|
|
#ifndef ISERVERPROTOCOL_H
|
|
|
|
#define ISERVERPROTOCOL_H
|
|
|
|
|
2002-04-27 14:19:53 +00:00
|
|
|
#include "ClipboardTypes.h"
|
2001-10-06 14:13:28 +00:00
|
|
|
#include "KeyTypes.h"
|
|
|
|
#include "MouseTypes.h"
|
|
|
|
#include "IInterface.h"
|
|
|
|
#include "XSynergy.h"
|
|
|
|
#include "XIO.h"
|
|
|
|
|
2001-11-25 18:32:41 +00:00
|
|
|
class IClipboard;
|
|
|
|
|
2001-10-06 14:13:28 +00:00
|
|
|
class IServerProtocol : public IInterface {
|
2002-04-29 14:40:01 +00:00
|
|
|
public:
|
2001-10-06 14:13:28 +00:00
|
|
|
// manipulators
|
|
|
|
|
|
|
|
// process messages from the client and insert the appropriate
|
|
|
|
// events into the server's event queue. return when the client
|
|
|
|
// disconnects.
|
2001-10-14 16:58:01 +00:00
|
|
|
virtual void run() = 0;
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
// send client info query and process reply
|
2001-10-14 16:58:01 +00:00
|
|
|
virtual void queryInfo() = 0;
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
// send various messages to client
|
2001-10-14 16:58:01 +00:00
|
|
|
virtual void sendClose() = 0;
|
2002-04-29 13:31:44 +00:00
|
|
|
virtual void sendEnter(SInt32 xAbs, SInt32 yAbs, UInt32 seqNum) = 0;
|
2001-10-14 16:58:01 +00:00
|
|
|
virtual void sendLeave() = 0;
|
2002-04-27 14:19:53 +00:00
|
|
|
virtual void sendClipboard(ClipboardID, const CString&) = 0;
|
|
|
|
virtual void sendGrabClipboard(ClipboardID) = 0;
|
2001-10-14 16:58:01 +00:00
|
|
|
virtual void sendScreenSaver(bool on) = 0;
|
|
|
|
virtual void sendKeyDown(KeyID, KeyModifierMask) = 0;
|
2001-11-25 18:32:41 +00:00
|
|
|
virtual void sendKeyRepeat(KeyID, KeyModifierMask, SInt32 count) = 0;
|
2001-10-14 16:58:01 +00:00
|
|
|
virtual void sendKeyUp(KeyID, KeyModifierMask) = 0;
|
|
|
|
virtual void sendMouseDown(ButtonID) = 0;
|
|
|
|
virtual void sendMouseUp(ButtonID) = 0;
|
|
|
|
virtual void sendMouseMove(SInt32 xAbs, SInt32 yAbs) = 0;
|
|
|
|
virtual void sendMouseWheel(SInt32 delta) = 0;
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
// accessors
|
|
|
|
|
2002-04-29 14:40:01 +00:00
|
|
|
protected:
|
2001-10-06 14:13:28 +00:00
|
|
|
// manipulators
|
|
|
|
|
2001-10-14 16:58:01 +00:00
|
|
|
virtual void recvInfo() = 0;
|
2001-11-25 18:32:41 +00:00
|
|
|
virtual void recvClipboard() = 0;
|
|
|
|
virtual void recvGrabClipboard() = 0;
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
// accessors
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|