2002-07-09 21:22:31 +00:00
|
|
|
#ifndef ISERVER_H
|
|
|
|
#define ISERVER_H
|
|
|
|
|
2002-07-10 21:22:28 +00:00
|
|
|
#include "IPrimaryScreenReceiver.h"
|
2002-07-09 21:22:31 +00:00
|
|
|
#include "ClipboardTypes.h"
|
|
|
|
#include "CString.h"
|
|
|
|
|
2002-07-10 14:15:17 +00:00
|
|
|
class CClientInfo;
|
|
|
|
|
2002-07-10 21:22:28 +00:00
|
|
|
class IServer : public IPrimaryScreenReceiver {
|
2002-07-09 21:22:31 +00:00
|
|
|
public:
|
|
|
|
// manipulators
|
|
|
|
|
2002-07-10 14:15:17 +00:00
|
|
|
// notify of client info change
|
|
|
|
virtual void onInfoChanged(const CString& clientName,
|
|
|
|
const CClientInfo&) = 0;
|
2002-07-09 21:22:31 +00:00
|
|
|
|
|
|
|
// notify of clipboard grab. returns true if the grab was honored,
|
|
|
|
// false otherwise.
|
2002-07-10 14:15:17 +00:00
|
|
|
virtual bool onGrabClipboard(const CString& clientName,
|
|
|
|
ClipboardID, UInt32 seqNum) = 0;
|
2002-07-09 21:22:31 +00:00
|
|
|
|
|
|
|
// notify of new clipboard data
|
|
|
|
virtual void onClipboardChanged(ClipboardID,
|
|
|
|
UInt32 seqNum, const CString& data) = 0;
|
|
|
|
|
2002-07-10 21:22:28 +00:00
|
|
|
// IPrimaryScreenReceiver overrides
|
|
|
|
virtual void onError() = 0;
|
2002-07-09 21:22:31 +00:00
|
|
|
virtual void onKeyDown(KeyID, KeyModifierMask) = 0;
|
|
|
|
virtual void onKeyUp(KeyID, KeyModifierMask) = 0;
|
|
|
|
virtual void onKeyRepeat(KeyID, KeyModifierMask, SInt32 count) = 0;
|
|
|
|
virtual void onMouseDown(ButtonID) = 0;
|
|
|
|
virtual void onMouseUp(ButtonID) = 0;
|
|
|
|
virtual bool onMouseMovePrimary(SInt32 x, SInt32 y) = 0;
|
|
|
|
virtual void onMouseMoveSecondary(SInt32 dx, SInt32 dy) = 0;
|
|
|
|
virtual void onMouseWheel(SInt32 delta) = 0;
|
|
|
|
virtual void onScreenSaver(bool activated) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|