1
/*********************************************************
2
* Copyright (C) 2007 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
*********************************************************/
22
* Rpc layer object for DnD version 3.
28
#include <sigc++/trackable.h>
30
#include "dndTransport.hh"
39
public sigc::trackable
42
DnDRpcV3(struct RpcIn *rpcIn);
43
virtual ~DnDRpcV3(void);
47
virtual bool GHDragEnter(const CPClipboard *clip);
48
virtual bool GHUngrabTimeout(void);
51
virtual bool HGDragEnterDone(int32 x, int32 y);
52
virtual bool HGDragStartDone(void);
53
virtual bool HGUpdateFeedback(DND_DROPEFFECT feedback);
54
virtual bool HGDropDone(const char *stagingDirCP, size_t sz);
57
void OnRecvMsg(const uint8 *data, size_t dataSize);
58
bool SendSingleCmd(DnDCommand cmd);
59
bool SendCmdWithClip(DnDCommand cmd, const CPClipboard *clip);
60
void UpdateGuestVersion(uint32 major, uint32 minor);
62
DnDTransport *mTransport;
65
#endif // DND_RPC_V3_HH