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-29 16:07:26 +00:00
|
|
|
//! Screen event receiver interface
|
|
|
|
/*!
|
|
|
|
This interface defines the methods common to most types that receive
|
|
|
|
events for changes to a screen. Note that the methods in this
|
|
|
|
interface are similar to the methods in IServer but have different
|
|
|
|
parameters. This interface is suitable for client-side types.
|
|
|
|
*/
|
2002-07-10 21:22:28 +00:00
|
|
|
class IScreenReceiver : public IInterface {
|
|
|
|
public:
|
2002-07-29 16:07:26 +00:00
|
|
|
//! Notify of error
|
|
|
|
/*!
|
|
|
|
Called when the screen is unexpectedly closing. This implies that
|
|
|
|
the screen is no longer usable and that the program should close
|
|
|
|
the screen and probably terminate.
|
|
|
|
*/
|
2002-07-16 16:52:26 +00:00
|
|
|
virtual void onError() = 0;
|
|
|
|
|
2002-07-29 16:07:26 +00:00
|
|
|
//! Notify of client screen change
|
|
|
|
/*!
|
|
|
|
Called when the client's info has changed. For example, when the
|
|
|
|
screen resolution has changed.
|
|
|
|
*/
|
2002-07-10 21:22:28 +00:00
|
|
|
virtual void onInfoChanged(const CClientInfo&) = 0;
|
|
|
|
|
2002-07-29 16:07:26 +00:00
|
|
|
//! Notify of clipboad grab
|
|
|
|
/*!
|
|
|
|
Called when the clipboard was grabbed by another program and,
|
|
|
|
therefore, we no longer own it. Returns true if the grab was
|
|
|
|
honored, false otherwise.
|
|
|
|
*/
|
2002-07-10 21:22:28 +00:00
|
|
|
virtual bool onGrabClipboard(ClipboardID) = 0;
|
|
|
|
|
2002-07-29 16:07:26 +00:00
|
|
|
//! Notify of new clipboard data
|
|
|
|
/*!
|
|
|
|
Called when the data on the clipboard has changed because some
|
2002-07-30 14:59:36 +00:00
|
|
|
other program has changed it. \c data will have marshalled
|
|
|
|
clipboard data.
|
2002-07-29 16:07:26 +00:00
|
|
|
*/
|
2002-07-10 21:22:28 +00:00
|
|
|
virtual void onClipboardChanged(ClipboardID,
|
|
|
|
const CString& data) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|