mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-23 02:51:42 +03:00
23f948d55a
yet but they compile and *should* work as is.
59 lines
989 B
C++
59 lines
989 B
C++
#ifndef CCLIENT_H
|
|
#define CCLIENT_H
|
|
|
|
#include "CString.h"
|
|
#include "BasicTypes.h"
|
|
|
|
class CNetworkAddress;
|
|
class IInputStream;
|
|
class IOutputStream;
|
|
class ISecondaryScreen;
|
|
|
|
class CClient {
|
|
public:
|
|
CClient(const CString& clientName);
|
|
~CClient();
|
|
|
|
// manipulators
|
|
|
|
void run(const CNetworkAddress& serverAddress);
|
|
|
|
// accessors
|
|
|
|
|
|
private:
|
|
// message handlers
|
|
void onEnter();
|
|
void onLeave();
|
|
void onGrabClipboard();
|
|
void onScreenSaver();
|
|
void onQueryInfo();
|
|
void onQueryClipboard();
|
|
void onSetClipboard();
|
|
void onKeyDown();
|
|
void onKeyRepeat();
|
|
void onKeyUp();
|
|
void onMouseDown();
|
|
void onMouseUp();
|
|
void onMouseMove();
|
|
void onMouseWheel();
|
|
|
|
private:
|
|
class CScreenCleaner {
|
|
public:
|
|
CScreenCleaner(CClient*, ISecondaryScreen*);
|
|
~CScreenCleaner();
|
|
|
|
private:
|
|
ISecondaryScreen* m_screen;
|
|
};
|
|
|
|
private:
|
|
CString m_name;
|
|
IInputStream* m_input;
|
|
IOutputStream* m_output;
|
|
ISecondaryScreen* m_screen;
|
|
};
|
|
|
|
#endif
|