1
/*********************************************************
2
* Copyright (C) 2010 VMware, Inc. All rights reserved.
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License as published
6
* by the Free Software Foundation version 2.1 and no later version.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
* or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
11
* License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program; if not, write to the Free Software Foundation, Inc.,
15
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17
*********************************************************/
20
* @fileTransferRpc.hh --
22
* File transfer roc object for DnD/CopyPaste.
25
#ifndef FILE_TRANSFER_RPC_HH
26
#define FILE_TRANSFER_RPC_HH
28
#include <sigc++/connection.h>
29
#include "dndCPLibExport.hh"
33
#include "vm_basic_types.h"
36
class LIB_EXPORT FileTransferRpc
40
virtual ~FileTransferRpc(void) {};
42
sigc::signal<void, uint32, const uint8 *, size_t> HgfsPacketReceived;
43
sigc::signal<void, uint32, const uint8 *, size_t> HgfsReplyReceived;
45
virtual void Init(void) = 0;
46
virtual bool SendHgfsPacket(uint32 sessionId,
48
uint32 packetSize) = 0;
49
virtual bool SendHgfsReply(uint32 sessionId,
51
uint32 packetSize) = 0;
54
#endif // FILE_TRANSFER_RPC_HH