2001-10-06 18:13:28 +04:00
|
|
|
#ifndef ISERVERPROTOCOL_H
|
|
|
|
#define ISERVERPROTOCOL_H
|
|
|
|
|
|
|
|
#include "KeyTypes.h"
|
|
|
|
#include "MouseTypes.h"
|
|
|
|
#include "IInterface.h"
|
|
|
|
#include "XSynergy.h"
|
|
|
|
#include "XIO.h"
|
|
|
|
|
|
|
|
class IServerProtocol : public IInterface {
|
|
|
|
public:
|
|
|
|
// 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 20:58:01 +04:00
|
|
|
virtual void run() = 0;
|
2001-10-06 18:13:28 +04:00
|
|
|
|
|
|
|
// send client info query and process reply
|
2001-10-14 20:58:01 +04:00
|
|
|
virtual void queryInfo() = 0;
|
2001-10-06 18:13:28 +04:00
|
|
|
|
|
|
|
// send various messages to client
|
2001-10-14 20:58:01 +04:00
|
|
|
virtual void sendClose() = 0;
|
|
|
|
virtual void sendEnter(SInt32 xAbs, SInt32 yAbs) = 0;
|
|
|
|
virtual void sendLeave() = 0;
|
|
|
|
virtual void sendGrabClipboard() = 0;
|
|
|
|
virtual void sendQueryClipboard() = 0;
|
|
|
|
virtual void sendScreenSaver(bool on) = 0;
|
|
|
|
virtual void sendKeyDown(KeyID, KeyModifierMask) = 0;
|
|
|
|
virtual void sendKeyRepeat(KeyID, KeyModifierMask) = 0;
|
|
|
|
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 18:13:28 +04:00
|
|
|
|
|
|
|
// accessors
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// manipulators
|
|
|
|
|
2001-10-14 20:58:01 +04:00
|
|
|
virtual void recvInfo() = 0;
|
2001-10-06 18:13:28 +04:00
|
|
|
|
|
|
|
// accessors
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|