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
* @guestDnDCPMgr.hh --
22
* Common layer management object for guest DnD/CP. It is a singleton.
25
#ifndef GUEST_DND_CP_HH
26
#define GUEST_DND_CP_HH
28
#include "guestDnD.hh"
29
#include "guestCopyPaste.hh"
30
#include "guestFileTransfer.hh"
33
#include "vmware/tools/guestrpc.h"
34
#include "vmware/tools/plugin.h"
37
struct DblLnkLst_Links;
43
static GuestDnDCPMgr *GetInstance();
44
static void Destroy();
45
GuestDnDMgr *GetDnDMgr(void);
46
GuestCopyPasteMgr *GetCopyPasteMgr(void);
47
DnDCPTransport *GetTransport(void);
51
void Init(ToolsAppCtx *ctx);
52
void SetCaps(uint32 caps) {mLocalCaps = caps;};
53
uint32 GetCaps() {return mLocalCaps;};
55
/* We're a singleton, so it is a compile time error to call these. */
57
GuestDnDCPMgr(const GuestDnDCPMgr &mgr);
58
GuestDnDCPMgr& operator=(const GuestDnDCPMgr &mgr);
60
static GuestDnDCPMgr *m_instance;
62
GuestCopyPasteMgr *mCPMgr;
63
GuestFileTransfer *mFileTransfer;
64
DnDCPTransport *mTransport;
65
ToolsAppCtx *mToolsAppCtx;
69
#endif // GUEST_DND_CP_HH