2002-07-09 21:22:31 +00:00
|
|
|
#ifndef ISERVER_H
|
|
|
|
#define ISERVER_H
|
|
|
|
|
2002-07-13 22:00:38 +00:00
|
|
|
#include "IInterface.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-13 22:00:38 +00:00
|
|
|
// the server interface. this provides all the methods necessary for
|
|
|
|
// clients to communicate with the server. note that the methods
|
|
|
|
// in this interface are similar to the methods in IScreenReceiver but
|
|
|
|
// include extra parameters. this interface is suitable for server-side
|
|
|
|
// client proxies. client-side objects should use the IScreenReceiver
|
|
|
|
// interface since the extra parameters are meaningless on the client-side.
|
|
|
|
class IServer : public IInterface {
|
2002-07-09 21:22:31 +00:00
|
|
|
public:
|
|
|
|
// manipulators
|
|
|
|
|
2002-07-16 16:52:26 +00:00
|
|
|
// called if the screen is unexpectedly closing. this implies that
|
|
|
|
// the screen is no longer usable and that the program should
|
|
|
|
// close the screen and possibly terminate.
|
|
|
|
virtual void onError() = 0;
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|