mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-18 16:31:44 +03:00
f48a5fe387
screens into CPrimaryScreen and merged common code from secondary screens into CSecondaryScreen. changed is-a relationship to a has-a between the primary and secondary screen classes and the generic platform dependent screen class to avoid multiple inheritance of implementation. also standardized the interface for those generic screen classes. adding a platform now involves implementing simpler interfaces: IScreen for the generic screen, IScreenEventHandler and some methods of CPrimaryScreen for the primary screen, and IScreenEventHandler and some methods of CSecondaryScreen for the secondary screen. did X11 platform but not win32 platform.
26 lines
673 B
C++
26 lines
673 B
C++
#ifndef ISCREENRECEIVER_H
|
|
#define ISCREENRECEIVER_H
|
|
|
|
#include "IInterface.h"
|
|
#include "ClipboardTypes.h"
|
|
#include "ProtocolTypes.h"
|
|
#include "CString.h"
|
|
|
|
// the interface for types that receive screen resize and clipboard
|
|
// notifications (indirectly) from the system.
|
|
class IScreenReceiver : public IInterface {
|
|
public:
|
|
// 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
|