source: trunk/synergy/lib/server/CClientProxy1_3.h

Last change on this file was 2749, checked in by bird, 19 years ago

synergy v1.3.1 sources (zip).

File size: 1.3 KB
Line 
1/*
2 * synergy -- mouse and keyboard sharing utility
3 * Copyright (C) 2006 Chris Schoeneman
4 *
5 * This package is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * found in the file COPYING that should have accompanied this file.
8 *
9 * This package is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#ifndef CCLIENTPROXY1_3_H
16#define CCLIENTPROXY1_3_H
17
18#include "CClientProxy1_2.h"
19
20//! Proxy for client implementing protocol version 1.3
21class CClientProxy1_3 : public CClientProxy1_2 {
22public:
23 CClientProxy1_3(const CString& name, IStream* adoptedStream);
24 ~CClientProxy1_3();
25
26 // IClient overrides
27 virtual void mouseWheel(SInt32 xDelta, SInt32 yDelta);
28
29protected:
30 // CClientProxy overrides
31 virtual bool parseMessage(const UInt8* code);
32 virtual void resetHeartbeatRate();
33 virtual void setHeartbeatRate(double rate, double alarm);
34 virtual void resetHeartbeatTimer();
35 virtual void addHeartbeatTimer();
36 virtual void removeHeartbeatTimer();
37
38private:
39 void handleKeepAlive(const CEvent&, void*);
40
41
42private:
43 double m_keepAliveRate;
44 CEventQueueTimer* m_keepAliveTimer;
45};
46
47#endif
Note: See TracBrowser for help on using the repository browser.