barrier/client/CClient.h

61 lines
1.1 KiB
C
Raw Normal View History

2001-10-06 18:13:28 +04:00
#ifndef CCLIENT_H
#define CCLIENT_H
#include "CMutex.h"
2001-10-06 18:13:28 +04:00
#include "CString.h"
#include "BasicTypes.h"
class CNetworkAddress;
class IInputStream;
class IOutputStream;
class ISecondaryScreen;
2001-10-06 18:13:28 +04:00
class CClient {
public:
CClient(const CString& clientName);
~CClient();
// manipulators
void run(const CNetworkAddress& serverAddress);
// handle events on client's screen
void onClipboardChanged();
2001-10-06 18:13:28 +04:00
// accessors
private:
void runSession(void*);
// open/close the primary screen
void openSecondaryScreen();
void closeSecondaryScreen();
2001-10-06 18:13:28 +04:00
// 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:
CMutex m_mutex;
2001-10-06 18:13:28 +04:00
CString m_name;
IInputStream* m_input;
2001-10-06 18:13:28 +04:00
IOutputStream* m_output;
ISecondaryScreen* m_screen;
const CNetworkAddress* m_serverAddress;
2001-10-06 18:13:28 +04:00
};
#endif