deskflow/src/lib/server/ClientProxy1_5.h

48 lines
1.6 KiB
C
Raw Normal View History

/*
* Deskflow -- mouse and keyboard sharing utility
2016-09-07 14:24:00 +00:00
* Copyright (C) 2013-2016 Symless Ltd.
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* found in the file LICENSE that should have accompanied this file.
*
* 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
#include "base/Stopwatch.h"
#include "common/stdvector.h"
#include "server/ClientProxy1_4.h"
2014-11-11 13:51:47 +00:00
class Server;
class IEventQueue;
//! Proxy for client implementing protocol version 1.5
class ClientProxy1_5 : public ClientProxy1_4
{
public:
ClientProxy1_5(const std::string &name, deskflow::IStream *adoptedStream, Server *server, IEventQueue *events);
ClientProxy1_5(ClientProxy1_5 const &) = delete;
ClientProxy1_5(ClientProxy1_5 &&) = delete;
~ClientProxy1_5();
ClientProxy1_5 &operator=(ClientProxy1_5 const &) = delete;
ClientProxy1_5 &operator=(ClientProxy1_5 &&) = delete;
2020-11-03 10:52:56 +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();
private:
IEventQueue *m_events;
};