VirtualBox

source: vbox/trunk/src/VBox/Main/include/GuestDnDSourceImpl.h@ 51476

Last change on this file since 51476 was 51476, checked in by vboxsync, 11 years ago

DnD: API overhaul; now using IDnDTarget + IDnDSource. Renamed DragAndDrop* enumerations to DnD*. Also rewrote some internal code.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1/* $Id: GuestDnDSourceImpl.h 51476 2014-05-30 14:58:02Z vboxsync $ */
2/** @file
3 * VBox Console COM Class implementation - Guest drag'n drop source.
4 */
5
6/*
7 * Copyright (C) 2014 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ____H_GUESTDNDSOURCEIMPL
19#define ____H_GUESTDNDSOURCEIMPL
20
21#include "GuestDnDSourceWrap.h"
22#include "GuestDnDPrivate.h"
23
24class ATL_NO_VTABLE GuestDnDSource :
25 public GuestDnDSourceWrap
26{
27public:
28 /** @name COM and internal init/term/mapping cruft.
29 * @{ */
30 DECLARE_EMPTY_CTOR_DTOR(GuestDnDSource)
31
32 int init(const ComObjPtr<Guest>& pGuest);
33 void uninit(void);
34
35 HRESULT FinalConstruct(void);
36 void FinalRelease(void);
37 /** @} */
38
39private:
40
41 /** Wrapped @name IDnDSource methods.
42 * @{ */
43 HRESULT dragIsPending(ULONG uScreenId, std::vector<com::Utf8Str> &aFormats, std::vector<DnDAction_T> &aAllowedActions, DnDAction_T *aDefaultAction);
44 HRESULT drop(const com::Utf8Str &aFormat, DnDAction_T aAction, ComPtr<IProgress> &aProgress);
45 HRESULT receiveData(std::vector<BYTE> &aData);
46 /** @} */
47
48protected:
49
50 /** @name Attributes.
51 * @{ */
52 /** Pointer to guest implementation. */
53 const ComObjPtr<Guest> m_pGuest;
54 /** @} */
55};
56
57#endif /* !____H_GUESTDNDSOURCEIMPL */
58
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette