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
* @file copyPasteDnDImpl.h
22
* Interface for concrete classes that implement the DnD, Copy paste plugin
23
* abstraction. Implementing DnD/CP for a new guest platform involves creating
24
* a class that inherits CopyPasteDnDImpl.
27
#ifndef __COPYPASTEDNDIMPL_H__
28
#define __COPYPASTEDNDIMPL_H__
32
#include "vmware/tools/plugin.h"
35
class CopyPasteDnDImpl
38
virtual ~CopyPasteDnDImpl() {};
39
virtual gboolean Init(ToolsAppCtx *ctx) = 0;
40
virtual void PointerInit() = 0;
41
virtual gboolean RegisterCP() = 0;
42
virtual void UnregisterCP() = 0;
43
virtual gboolean RegisterDnD() = 0;
44
virtual void UnregisterDnD() = 0;
45
virtual void CopyPasteVersionChanged(const int version) = 0;
46
virtual void DnDVersionChanged(const int version) = 0;
47
virtual void SetCopyPasteAllowed(bool allowed) = 0;
48
virtual void SetDnDAllowed(bool allowed) = 0;
49
virtual uint32 GetCaps() = 0;
52
#endif // __COPYPASTEDNDIMPL_H__