• Main Page
  • Classes
  • Files
  • File List

CClientProxy1_4.h

00001 /*
00002  * synergy -- mouse and keyboard sharing utility
00003  * Copyright (C) 2012 Bolton Software Ltd.
00004  * Copyright (C) 2011 Chris Schoeneman
00005  * 
00006  * This package is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * found in the file COPYING that should have accompanied this file.
00009  * 
00010  * This package is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017  */
00018 
00019 #pragma once
00020 
00021 #include "CClientProxy1_3.h"
00022 #include "GameDeviceTypes.h"
00023 
00024 class CServer;
00025 
00027 class CClientProxy1_4 : public CClientProxy1_3 {
00028 public:
00029     CClientProxy1_4(const CString& name, synergy::IStream* adoptedStream, CServer* server, IEventQueue* eventQueue);
00030     ~CClientProxy1_4();
00031 
00032     // IClient overrides
00033     virtual void        gameDeviceButtons(GameDeviceID id, GameDeviceButton buttons);
00034     virtual void        gameDeviceSticks(GameDeviceID id, SInt16 x1, SInt16 y1, SInt16 x2, SInt16 y2);
00035     virtual void        gameDeviceTriggers(GameDeviceID id, UInt8 t1, UInt8 t2);
00036     virtual void        gameDeviceTimingReq();
00037     virtual void        keyDown(KeyID key, KeyModifierMask mask, KeyButton button);
00038     virtual void        keyRepeat(KeyID key, KeyModifierMask mask, SInt32 count, KeyButton button);
00039     virtual void        keyUp(KeyID key, KeyModifierMask mask, KeyButton button);
00040 
00042     void                cryptoIv();
00043 
00044 protected:
00045     // CClientProxy overrides
00046     virtual bool        parseMessage(const UInt8* code);
00047 
00048 private:
00049     // message handlers
00050     void                gameDeviceTimingResp();
00051     void                gameDeviceFeedback();
00052 
00053     CServer*            m_server;
00054 };

Generated on Sat May 18 2013 00:00:03 for Synergy by  doxygen 1.7.1