barrier/client/CClient.h

56 lines
997 B
C
Raw Normal View History

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