Files
barrier/synergy/CClient.h
crs b3291bc2b5 fixed timeout bug in CThreadRep::wait() (negative timeout wouldn't
wait forever).  also fixed early return from sleep due to signal.
now forcing client to initialize CThread to ensure global mutex
gets initialized before threads are used.
2001-10-14 18:29:43 +00:00

62 lines
1.0 KiB
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:
void runSession(void*);
// 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;
const CNetworkAddress* m_serverAddress;
};
#endif