2013-07-16 19:02:30 +00:00
|
|
|
/*
|
2024-09-17 19:00:25 +00:00
|
|
|
* Deskflow -- mouse and keyboard sharing utility
|
2016-09-07 14:24:00 +00:00
|
|
|
* Copyright (C) 2013-2016 Symless Ltd.
|
2024-07-02 19:07:06 +00:00
|
|
|
*
|
2013-07-16 19:02:30 +00:00
|
|
|
* This package is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
2015-05-03 02:33:52 +00:00
|
|
|
* found in the file LICENSE that should have accompanied this file.
|
2024-07-02 19:07:06 +00:00
|
|
|
*
|
2013-07-16 19:02:30 +00:00
|
|
|
* This package is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2014-02-28 12:36:45 +00:00
|
|
|
#include "base/Stopwatch.h"
|
2015-05-15 21:26:57 +00:00
|
|
|
#include "common/stdvector.h"
|
2024-07-02 19:07:06 +00:00
|
|
|
#include "server/ClientProxy1_4.h"
|
2013-07-16 19:02:30 +00:00
|
|
|
|
2014-11-11 13:51:47 +00:00
|
|
|
class Server;
|
2013-07-16 19:02:30 +00:00
|
|
|
class IEventQueue;
|
|
|
|
|
|
|
|
|
|
//! Proxy for client implementing protocol version 1.5
|
2024-10-17 18:04:35 +00:00
|
|
|
class ClientProxy1_5 : public ClientProxy1_4
|
|
|
|
|
{
|
2013-07-16 19:02:30 +00:00
|
|
|
public:
|
2025-01-06 00:55:07 +00:00
|
|
|
ClientProxy1_5(const std::string &name, deskflow::IStream *adoptedStream, Server *server, IEventQueue *events);
|
2024-07-02 19:07:06 +00:00
|
|
|
ClientProxy1_5(ClientProxy1_5 const &) = delete;
|
|
|
|
|
ClientProxy1_5(ClientProxy1_5 &&) = delete;
|
|
|
|
|
~ClientProxy1_5();
|
2013-07-16 19:02:30 +00:00
|
|
|
|
2024-07-02 19:07:06 +00:00
|
|
|
ClientProxy1_5 &operator=(ClientProxy1_5 const &) = delete;
|
|
|
|
|
ClientProxy1_5 &operator=(ClientProxy1_5 &&) = delete;
|
2020-11-03 10:52:56 +00:00
|
|
|
|
2024-07-02 19:07:06 +00:00
|
|
|
virtual void sendDragInfo(UInt32 fileCount, const char *info, size_t size);
|
|
|
|
|
virtual void fileChunkSending(UInt8 mark, char *data, size_t dataSize);
|
|
|
|
|
virtual bool parseMessage(const UInt8 *code);
|
|
|
|
|
void fileChunkReceived();
|
|
|
|
|
void dragInfoReceived();
|
2013-07-24 16:41:12 +00:00
|
|
|
|
|
|
|
|
private:
|
2024-07-02 19:07:06 +00:00
|
|
|
IEventQueue *m_events;
|
2013-07-16 19:02:30 +00:00
|
|
|
};
|