mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-22 15:45:22 +03:00
900b075e3a
on unix, but client screens don't simulate events other than mouse move. also not supporting clipboard at all yet and the main app is just a temporary framework to test with. must clean up protocol and communication.
30 lines
555 B
C++
30 lines
555 B
C++
#ifndef ISERVER_H
|
|
#define ISERVER_H
|
|
|
|
class IScreen;
|
|
|
|
class IServer {
|
|
public:
|
|
IServer() { }
|
|
virtual ~IServer() { }
|
|
|
|
// manipulators
|
|
|
|
// run the server until terminated
|
|
virtual void run() = 0;
|
|
|
|
// clipboard operations
|
|
virtual void onClipboardChanged(IScreen*) = 0;
|
|
|
|
// enter the given screen, leaving the previous screen. the cursor
|
|
// should be warped to the center of the screen.
|
|
virtual void setActiveScreen(IScreen*) = 0;
|
|
|
|
// accessors
|
|
|
|
// get the screen that was last entered
|
|
virtual IScreen* getActiveScreen() const = 0;
|
|
};
|
|
|
|
#endif
|