VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDDropSource_win.h@ 76553

Last change on this file since 76553 was 76553, checked in by vboxsync, 6 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/* $Id: UIDnDDropSource_win.h 76553 2019-01-01 01:45:53Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIDnDDropSource class declaration.
4 */
5
6/*
7 * Copyright (C) 2014-2019 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 ___UIDnDDropSource_win_h___
19#define ___UIDnDDropSource_win_h___
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24/* COM includes: */
25#include "COMEnums.h"
26
27class UIDnDDataObject;
28
29/**
30 * Implementation of IDropSource for drag and drop on the host.
31 */
32class UIDnDDropSource : public IDropSource
33{
34public:
35
36 UIDnDDropSource(QWidget *pParent, UIDnDDataObject *pDataObject);
37 virtual ~UIDnDDropSource(void);
38
39public:
40
41 uint32_t GetCurrentAction(void) const { return m_uCurAction; }
42
43public: /* IUnknown methods. */
44
45 STDMETHOD(QueryInterface)(REFIID iid, void ** ppvObject);
46 STDMETHOD_(ULONG, AddRef)(void);
47 STDMETHOD_(ULONG, Release)(void);
48
49public: /* IDropSource methods. */
50
51 STDMETHOD(QueryContinueDrag)(BOOL fEscapePressed, DWORD dwKeyState);
52 STDMETHOD(GiveFeedback)(DWORD dwEffect);
53
54protected:
55
56 /** Pointer to parent widget. */
57 QWidget *m_pParent;
58 UIDnDDataObject *m_pDataObject;
59 /** The current reference count. */
60 LONG m_cRefCount;
61 /** Current (last) drop effect issued. */
62 DWORD m_dwCurEffect;
63 /** Current drop action to perform in case of a successful drop. */
64 Qt::DropActions m_uCurAction;
65};
66
67#endif /* ___UIDnDDropSource_win_h___ */
68
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