deskflow/src/lib/server/ClientProxy1_5.h

38 lines
1.1 KiB
C
Raw Normal View History

/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2013 - 2016 Symless Ltd.
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#pragma once
#include "base/Stopwatch.h"
#include "server/ClientProxy1_4.h"
#include <vector>
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
2025-01-11 02:13:19 +00:00
virtual void sendDragInfo(uint32_t fileCount, const char *info, size_t size);
2025-01-11 00:09:43 +00:00
virtual void fileChunkSending(uint8_t mark, char *data, size_t dataSize);
virtual bool parseMessage(const uint8_t *code);
void fileChunkReceived();
void dragInfoReceived();
private:
IEventQueue *m_events;
};