2002-07-10 21:22:28 +00:00
|
|
|
#ifndef ISCREENRECEIVER_H
|
|
|
|
#define ISCREENRECEIVER_H
|
|
|
|
|
|
|
|
#include "IInterface.h"
|
|
|
|
#include "ClipboardTypes.h"
|
|
|
|
#include "ProtocolTypes.h"
|
|
|
|
#include "CString.h"
|
|
|
|
|
2002-07-13 22:00:38 +00:00
|
|
|
// the interface for types that receive screen resize and clipboard
|
|
|
|
// notifications (indirectly) from the system.
|
2002-07-10 21:22:28 +00:00
|
|
|
class IScreenReceiver : public IInterface {
|
|
|
|
public:
|
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 21:22:28 +00:00
|
|
|
// notify of client info change
|
|
|
|
virtual void onInfoChanged(const CClientInfo&) = 0;
|
|
|
|
|
|
|
|
// notify of clipboard grab. returns true if the grab was honored,
|
|
|
|
// false otherwise.
|
|
|
|
virtual bool onGrabClipboard(ClipboardID) = 0;
|
|
|
|
|
|
|
|
// notify of new clipboard data
|
|
|
|
virtual void onClipboardChanged(ClipboardID,
|
|
|
|
const CString& data) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|